rahul-nanwani/blackjack21

[FEATURE] Players should "see" dealer's first card that's face-up

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.

In Blackjack, players get to see the dealer's first card, which affects decision-making (plays into risk levels of cards player has in hand). Currently, the setup is for players & dealer to play completely independently, then compare results to determine win.

Describe the solution you'd like

When player making decisions (hit, stand, etc), they can see dealer's first card

Could just have dealer play before players and only show results to players after they play their hand. Need to consider, though, if there are any "naturals" (i.e. blackjack or 21)

The way I understand the game flow is shown in screenshot in "Additional Context" below. Flow chart I created from info here: https://bicyclecards.com/how-to-play/blackjack/

Describe alternatives you've considered

Rahul's initial suggestion from our conversation:

after initialising the Table you can use dealer.hand property which will return a list of the cards of the dealer and then you can continue with the players’ choices.

Additional context

Screen Shot 2022-10-02 at 3 04 17 PM

To match other examples, this will need to be implemented as a page in the wiki

(update: added the examples to /examples dir in the repo...see PR below)