Skip to content

Update Psuedo-Code.txt #1

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
6 changes: 3 additions & 3 deletions Psuedo-Code.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ 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.
Number cards are worth their value, face cards are worth 10, and Aces are worth 11 until a player goes over 21, and then the Ace is worth 1.
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.
After looking over both hands, the player bets a certain amount of money based on his intuition of 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,7 +16,7 @@ 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:
If the dealer's hand is over 17:
The dealer stops drawing.
If the dealer's hand is greater than the player's:
The dealer wins and take the player's bet.
Expand Down