Skip to content

Instantly share code, notes, and snippets.

@GeoffPurdy
Last active August 29, 2015 14:06
Show Gist options
  • Save GeoffPurdy/df8365fa3325eaf1fb45 to your computer and use it in GitHub Desktop.
Save GeoffPurdy/df8365fa3325eaf1fb45 to your computer and use it in GitHub Desktop.
#My understanding of the game of blackjack is tenuous at best
#And I do not expect to master Blackjack before class tomorrow.
#Thus I will err on the side of simplicity at the risk of oversimplification
Required items:
One to eight decks of playing cards
Two or more Participants
One dealer
One or more non-dealer players (with implicit limit on number of players?)
Value for betting
Card decks are combined and randomized and ordering of deck is not observable to any participants
Dealer distributes two cards to each player left to right (dealt cards partially/fully observable to all participants?)
Players place "bets" based on observable state of game (betting rules?)
State of all players' hands is revealed to all participants
Players play against dealer only, not other players; other players games effect state of game but not current hand
Ace has a value of 1 or 11 at the option of the player (I am unclear if the dealer has such an option)
If any single player's two cards total 21, the game is over and the participant with 21 collects player + dealer bets
Else By turns, players may optionally request additional cards with the goal of winning (high score && <=21)
Any player whose total exceeds 21 is out of the game and forfeits any bets
At some point, players may optionally double their bets. (I don't understand this - when or how)
While the dealer's cards total <17 dealer must obtain additional cards
If the dealer total >21 all remaining? players win
Participant with the highest total <=21 wins and collects bets between the player and dealer
In ties 21 composed of two cards beats 21 composed of >2 cards, else bets are returned and the game proceedes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment