Skip to content

Instantly share code, notes, and snippets.

@GeoffPurdy
Created September 16, 2014 00:26

Revisions

  1. GeoffPurdy created this gist Sep 16, 2014.
    23 changes: 23 additions & 0 deletions blackjack.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@

    #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
    One dealer
    Two or more non-dealer players (with implicit limit on num players?)

    Card decks are combined and randomized and ordering of deck is not observable to any participants
    Dealer distributes two cards to each player (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 players
    If any single player cards total 21,
    the game is over and the player with 21 collects all 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)
    The dealer may (optionally?) obtain additional cards (I don't understand this either)
    Participant with the highest total <=21 wins and collects all bets
    (I don't understand how ties are handled)