This is a web browser game where the player attempts to beat the dealer by getting a sum as close to 21 as possible, without going over 21.
Launch the game: https://adbshiau.github.io/blackjack/
-
JavaScript
-
HTML
-
CSS
- The game begins after the player places a bet with the following values to choose from: $5, $10, $20.
- The player and dealer are given 2 cards each. Dealer's second card will be face down. Card values:
- Ace - 11 for starting cards, turns into 1 once dealt with additional cards
- Face cards - 10
- Any other card - its pip value
- The player can either choose to "Hit" to be given another card or "Stand" to reveal the dealer's cards.
- The dealer should at least have a total of 17 to "Stand". Otherwise, dealer must continue to take cards until total is 17 or more.
- If player's sum goes over 21 or is less than dealer's sum, player lost and loses the bet.
- If player's sum is more than dealer's sum, player's bet doubles and is added to the bank.
- The game keeps going until player's bank runs out.
- Mobile device design update
- Larger bet denomination ($50 & $100)
- Option to play with multiple players
- Button to play again when bank runs out
- Splitting pairs
- High score board
Sound effects from https://www.zapsplat.com/
- Multimedia button click 12
- Playing card single deal on table 1
- Short handling of poker chips 3
- A handful of coins place into a persons hand 9
- Game sound, coin error, glitch 1
- Cartoon high pitched voice says, loser
Card deck from https://replit.com/@jim_clark/Use-CSS-Card-Library