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 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
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
Computers and Technology, 18.05.2021 21:30
question
Mathematics, 18.05.2021 21:30
Questions on the website: 13722360