Heads or Tails Game
This game is meant for two or more players. In this game, the players take turns flipping a coin. Before the coin is flipped, players should guess if the coin will land headsup or tailsup. If a player guesses correctly, then that player is awarded a point. If a player guesses incorrectly, then that player will lose a point. The first player to score five points is the winner.
Write a program that simulates the game being played by two players. Use the Coin class that you wrote as an assignment in Chapter 5 (Programming Challenge 20) to simulate the coin. Write a Player class to simulate the players.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.