Try to get as close to 21 as possible without going over.
Cards:
Total: 0
Cards:
Total: 0
Players can enter nothing when entering their name.
Can you code the program to:
In TwentyOne, card number 1 is a magic card.
If a player draws card number 1, then another card is drawn automatically before the player is asked to draw another card.
Code this adaptation.
You may have noticed that the winning logic is wrong.
For example, if player1 busts and player2 doesn't, then player2 is the winner.
If you test this scenrio, the program says Nobody won! which is not correct.
Can you fix this logic error so that the game plays as expected?
iterateauto-indent variablecompile sum machine code count-controlled loop integer pseudocodesyntax