Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Psuedo-Code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,39 @@ To start a round, the dealer deals two face-up cards for the player and a face-u
After looking over both hands, the player bets a certain amount of money based on his odds of winning.

While the player's hand is under 22:

The player can now call for either a hit or stand.

If the player stands:

The player keeps his hand as is.
The dealer flips their face-down card.
While the dealer's hand is under 22:
The dealer continually draws.

If the dealer's hand is over 15:

The dealer stops drawing.

If the dealer's hand is greater than the player's:

The dealer wins and take the player's bet.

elseif the dealer's hand is tied with the player's:

The game is a tie, no money is won or lost.
else:
The player wins and gains double what they bet.

If the dealer's hand is greater than 21:

The player wins and gains double what they bet.

If the player hits:

The player gets another card.

If the player's hand is over 21:

The dealer wins and take the player's bet.