Engineering
Engineering, 02.11.2019 04:31, Prettygirlyaya

Rock-paper-scissors is a hand game that is usually played by two people. a player is going to form one of the three shapes: rock, paper and scissors, by hand. the rules of the game are as follows: i. ii. iii. rock beats scissors but loses to paper. paper loses to scissors. if the players form the same shape, the game is a draw. you are asked to simulate this game for two players. each player gets to play, i. e. form one of the three shapes. this shape should be compared with the shape of their co-player to determine the winner. your program should do the following: 1. ask for the names of player1 and player2. 2. ask to see whether they want to play, upon a positive (you can use two options menu here) you should report the result of that round of game. the following could be an example: enter the name of the player one: jack enter the name of the player two: john choose an option: 1. play the game 2.exit option: jack plays paper john plays rock jack wins the game obviously, after the match results, your app should show the menu again to players decide if they want to play again or if they want to exit the app. when the user(s) chooses to exit the game, your program should output the stats report of all games rounds and the players individual stats as follows: a) number of wins and losses for each player. b) total number of game round played and draws matches (static counting)

answer
Answers: 2

Similar questions

Do you know the correct answer?
Rock-paper-scissors is a hand game that is usually played by two people. a player is going to form o...

Questions in other subjects:

Konu
Engineering, 14.11.2021 22:20
Konu
German, 14.11.2021 22:20
Konu
Mathematics, 14.11.2021 22:20