12
Answers

help required in rock,paper,scissors game development ?

Ask a question
SUNIL GUTTA

SUNIL GUTTA

10y
21.4k
1
Hi

Well i done all the coding in C# but finally there is  a case i need code in VB :( .. i am just familiar with only basics .. anyone help me with this requirement .. 

Create an application that lets the user play the game of "Rock, Paper, Scissors" against the computer. The program should work as follows:

1. The winner of the game is the one who has the won the most of three matches.
2. 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, the computer has chosen scissors. (Don't display the computer's choice yet!)

3. The user clicks a button to select his or her choice of rock, paper, or
scissors.
4. The computers choice is displayed.
5. The winner is selected according to the following rules:
a. If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes
scissors.)
b. If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.)
c. If one player chooses paper and the other player chooses rock, then paper wins. (Paper covers rock.)
d. If both players make the same choice, the game must be played again to determine the player.
6. Display the result of the match (in either a text box or dialog box).
7.Display the result of the game when 3 matches have been played (either in a message or a dialog box).
8.The game should have a "Play Again" button that resets the entire game.


Rock, Scissors, Paper Rubix

ItemPoints
GUI Appearance and tab order - 10
Loop 3 times - 15
Increment wins - 10
Random Function - 15
Nested IF or Switch Statement - 15
Click Event to Display Computer's Choice - 10
Message to display Winner of Match - 5
Message to display Winner of Game - 5
Reset Game - 15
Total - 100

Cheers & ty for help ..


Answers (12)