This is a game called Blackjack developed using JavaScript, HTML and CSS only.
Please visit my LinkedIn profile page here.
- User interface changes based on screen size dynamically.
- By default, the CSS file configured for desktop is applied.
- However, if the player's screen width is less than 700 pixels, the CSS file configured for mobile is applied.
- The goal of the Blackjack game is to beat the dealer's hand without going over 21 points.
- Jack, Queen, and King are worth 10. Aces are worth 1 or 11, whichever makes a better hand.
- Each player starts with two cards, and one of the dealer's cards stays hidden until the end.
- To 'Hit' is to ask for another card. To 'Stand' is to hold your total and end your turn.
- If you go over 21 points, you bust, and the dealer wins regardless of the dealer's hand.
- If you are dealt 21 from the start (Ace & 10), you have hit the Blackjack.
- I have implemented the same game in Angular hosted on my website https://www.unconventionalcreator.com/youceecode/blackjack