- Run the program
- Click start game
- Show dealer hand, one card face up, one card face down
- Ask player to place bet
- Show player their cards and sum
- Ask player if they want to hit Y or N
- If play chooses Y proceed to next step, if player chooses N proceed to step 9.
- Deal player another card and show them the new sum, if over 21 proceed to step 11, otherwise go back to step 6.
- Dealer starts to play, if the sum of the dealers cards is more than 21 after finished proceed to step 12, once the dealer is done drawing cards proceed to step 10.
- If player’s cards sum is more than dealer’s cards sum but less than 21 player has won and they receive the amount they bet at beginning, otherwise proceed to step 13.
- Player has busted, lost the amount that they bet.
- Dealer has busted.
- Dealer has won, player loses the amount they bet.