This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:discrete:fall2023:projects:bjm0 [2023/10/26 20:29] – [GAMEPLAY] wgates1 | notes:discrete:fall2023:projects:bjm0 [2023/11/02 01:53] (current) – [Ace Logic] cfoster8 | ||
---|---|---|---|
Line 94: | Line 94: | ||
+ | ====Dealer Strategy==== | ||
+ | The dealer in blackjack always hits until hitting at least 17, and goes after the player does. A simple way of doing this is to out a check for if the player stands or busts towards the end of the loop, and set a flag if they do. | ||
+ | if(stand == true || playerbust == true){} | ||
+ | |||
+ | Next you need a check to see if the dealer' | ||
=====CHANCES===== | =====CHANCES===== | ||