subject
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)

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
question
Engineering, 04.07.2019 18:20
For each of the following process: a) sketch the p-v diagram, b)sketch t-s diagram, c) sketch t-v diagram, d) sketch the boundary work on one of the diagrams (a, b or c) and e) sketch the reversible heat transfer on one of the diagrams (a, b or c): 1- isobaric process from compressed liquid to superheated vapor 2- isothermal process from compressed liquid to superheated vapor 3- isentropic process from compressed liquid to superheated vapor
Answers: 3
question
Engineering, 04.07.2019 19:10
How to increase the thermal officiency of an ideal simple rankino cycle? among these methods, which one is the best and why?
Answers: 2
You know the right answer?
Rock-paper-scissors is a hand game that is usually played by two people. a player is going to form o...
Questions
question
Arts, 12.03.2021 03:50
question
Social Studies, 12.03.2021 03:50
question
Social Studies, 12.03.2021 03:50
question
Mathematics, 12.03.2021 03:50
question
Social Studies, 12.03.2021 03:50
question
Mathematics, 12.03.2021 03:50
Questions on the website: 13722361