Question: * This game is meant for two or more players. In the game, the * players take turns flipping a coin. Before the coin is
* This game is meant for two or more players. In the game, the * players take turns flipping a coin. Before the coin is flipped, the * players should guess if the coin will land face up or face down. * If a player guesses correctly, then that player is awarded a point. If the player guess * incorrectly, than that player will lose a point. The first player to score five points wins. * * Write a program that simulates the game being played by two players. Use coin class to simulate * the coin and a player class to simulate the players.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
