JavaScript Playground
Welcome to my JavaScript playground. This is where I come to to try out/practice new concepts relating to JavaScript. If I ever find myself wondering if or how I can do something, the answer is most likely here. This is strictly a place for me to play around, so forgive me if the aesthetics of this page are nauseating.
Blackjack
Rules
- Click 'Deal' to shuffle deck and deal starting cards.
- Click 'Hit' to receive another card or 'Hold' if you think you have a winning hand.
- Objective is to have cards total as close to 21 as possible without going over.
- Aces can be 1 or 11 points (value is determined automatically by the game based on players score).
- All other face cards are 10 points, and numerical cards are worth their face value.
- Dealer will hit if their card total is less than 17. Dealer will stand with a total of 17 or above.
- For my own sanity, hands will be limited to 5 cards max.
Dealer Hands Won
0
Dealer's hand
0
Player's hand
0
Player Hands Won
0