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, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
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
Chemistry, 18.09.2021 06:40
question
Mathematics, 18.09.2021 06:40
question
History, 18.09.2021 06:50
question
Chemistry, 18.09.2021 06:50
Questions on the website: 13722367