Skip to content

Update Psuedo-Code.txt #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
19 changes: 10 additions & 9 deletions Psuedo-Code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Daniel Honrales
Blackjack


The game begins with two people: a dealer and a player.
The objective of the game is to have a hand of higher value than the other without going over 21.
Number cards are worth their value, face cards are worth 10, and Aces are interchangeably 1 or 11.
To start a round, the dealer deals two face-up cards for the player and a face-up card and a face-down card for himself.
After looking over both hands, the player bets a certain amount of money based on his odds of winning.
1. The game begins with two people: a dealer and a player.
2. The objective of the game is to have a hand of higher value than the other without going over 21.
3. Number cards are worth their value, face cards are worth 10, and Aces are interchangeably 1 or 11.
4. To start a round, the dealer deals two face-up cards for the player and a face-up card and a face-down card for himself.
5. 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.
Expand All @@ -16,14 +16,15 @@ While the player's hand is under 22:
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:
else ...
If the dealer's hand is over 15:
The dealer stops drawing.
else ...
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:
else if 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.
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.

Expand Down