HOME
Betting on a coin toss game
Construct a program that asks you to bet on the outcome of a coin toss.
- The player starts with a “Pot” of 100 coins
- They can bet any amount that they have in the pot.
- If they guess correctly then they win the amount they bet which is added to the pot.
- If incorrect they lose that money from the pot.
- The game keeps playing until there is no money in the pot.
- Show Game over on the screen if pot is less than or equal to zero
Construct a pseudocode answer by drag&dropping and reordering lines from the
left to the right.
New instance
Get feedback