rockpaperscissor 4function rand no generating

September 28, 2011 at 02:00:30
Specs: Windows 7
. When the program begins, a random number in the range of 1 through 3 is generated.
If the number is 1 , then the computer has chosen rock. if the number is 2,
then the computer has chosen paper. If the number is 3, then the computer has
chosen scissors. (Don't disp lay the computer's choice yet.)
2. The user enters his or her choice of "rock", "paper", or "scissors" at the keyboard.
(You can use a menu if you prefer. )
3. The computer's choice is displayed.
4. A winner is selected according to the following rules:
• If one player chooses rock and the other player chooses scissors, then rock
wins. (The rock smashes the scissors.)
• If one player chooses scissors and the other player chooses paper, then scissors
wins. (Scissors cuts paper.)
• If one player chooses paper and the other player chooses rock, then paper
wins. (Paper wraps rock.)
• If both players make the same choice, the game must be played again to
determine the winner.

See More: rockpaperscissor 4function rand no generating

Report •

#1
September 28, 2011 at 02:15:19
Problem number 1, you have not asked a question

Problem number 2, you have not shown that you have attempted to do this yourself

problem number 3, this looks like homework. if you do not do your homework yourself how are you planning on learning anything?

Problem number 4, maybe if you read your books or got some help from your teacher, you will learn this for yourself and be able to do this yourself.

Give it a try, if you get stuck, show us your code and where you are having problems.


Report •
Related Solutions


Ask Question