- Write A Program That Plays A Game Of Paper Scissors Rock Where A Human Player Can Play Against A Computer Player Th 1 (213.54 KiB) Viewed 19 times
Write a program that plays a game of "Paper, Scissors, Rock” where a human player can play against a computer player. Th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a program that plays a game of "Paper, Scissors, Rock” where a human player can play against a computer player. Th
Write a program that plays a game of "Paper, Scissors, Rock” where a human player can play against a computer player. The game rules are as follows: Scissors beats paper; ● Paper beats rock; Rock beats scissors; If both players choose the same, then a tie occurs. After completing a round, the human player must be able to choose to play again or not. If they wish to play again, another round should start; otherwise the program should terminate. Have the program keep a tally of the number of rounds played, the number of times the human player wins, the number of times the computer player wins, and the number of ties. Display these details when the program terminates. Follow good programming standards for whitespace, naming and commenting. Test your program to ensure the implementation is robust.