Question: Microsoft Visual C# 2015 In the game Rock Paper Scissors, two players simultaneously choose one of three options: rock, paper, or scissors. If both players

Microsoft Visual C# 2015

In the game Rock Paper Scissors, two players simultaneously choose one of three options: rock, paper, or scissors. If both players choose the same option, then the result is a tie. However, if they choose differently, the winner is determined as follows:

- Rock beats scissors, because a rock can break a pair of scissors.

- Scissors beats paper, because scissors can cut paper.

- Paper beats rock, because a piece of paper can cover a rock.

Design a GUI form for a game in which the computer randomly chooses rock, paper, or scissors. Do not require the user to enter a character (r, p, s) but instead just let them click on an appropriate PictureBox control - be creative with the interface including the output! Make it look like a fun game & use color.

Computers Choice your program must auto-generate the computers choice by generating a random number between 1 and 3. To do this, review the code described in exercise 7.

Change the Picture Boxes Cursor property to Hand so the user knows that they are clickable.

The outputted result should show the Users answer, the Computers answer, and declare a Winner.

Sample code for the random number generator below:

__________________________________________________

Random ranNumberGenerator = new Random();

int randomNumber;

randomNumber = ranNumberGenerator.Next(mix,max);

__________________________________________________

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!