Rock-Paper-Scissors Game in C#

Rock-Paper-Scissors Game

Here I am going to present a famous game named “Rock-Paper-Scissors” developed in C#. A sample code is also attached.

Rule

Rock-paper-scissors is a hand game usually played by two people, where players simultaneously form one of three shapes with an outstretched hand. The "rock" beats scissors, the "scissors" beat paper and the "paper" beats rock; if both players throw the same shape, the game is tied.

Rule

For more details on this game, you may refer to following link:

Rock-paper-scissors

This game is implemented using C#. It is played between a User and Computer. On each round, this lets the user select his choice out of Rock, paper and Scissors. Once user selects his choice, now computer randomly picks its choice and then program decides who won that round. This program also keeps on storing all the previous game results. Following are the some screen shots in various stages of the game running.

Screenshot at Startup

Screenshot at startup

Scenario 1: When Rock breaks Scissors
 
Rock breaks Scissors

Scenario 2: When Scissors cuts Paper
 
Scissors cuts Paper

Scenario 3: When Paper covers Rock
 
Paper covers Rock 

X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now