https://github.com/gaprogman/rockpaperscissors
Basic "Rock, Paper, Scissors, Lizard, Spock" game implemented in C#
https://github.com/gaprogman/rockpaperscissors
Last synced: 2 months ago
JSON representation
Basic "Rock, Paper, Scissors, Lizard, Spock" game implemented in C#
- Host: GitHub
- URL: https://github.com/gaprogman/rockpaperscissors
- Owner: GaProgMan
- License: gpl-2.0
- Created: 2014-02-08T16:45:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T19:47:15.000Z (almost 7 years ago)
- Last Synced: 2025-01-15T23:18:59.110Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 469 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RockPaperScissors
=================
## Support This Project
If you have found this project helpful, either as a library that you use or as a learning tool, please consider buying me a coffee:
Short Description
-----------------
Basic "Rock, Paper, Scissors, Lizard, Spock" game implemented in C#.
The rules for "Rock, Paper, Scissors, Lizard, Spock" can be viewed on wikipedia at this link: http://en.wikipedia.org/wiki/Rock-paper-scissors-lizard-Spock
A pictorial version of the rules can be seen in the following image (via wikipedia)

Game Loop
---------
* The user is asked to pick their move from a list of available moves.
* A "random" number between 1 and 5 is generated, these map to Rock, Paper, Scissors, Lizard or Spock (respectively)
* The number is used to represent the CPU move
* Both the user and CPU moves are used to generate the outcome of the round
* The outcome of the round is dumped to the console
* The details from the round are added to a list of rounds
The game continues until the user/player closes the main game form.
Compiled Binary Download
------------------------
I have prepared a pre-compiled x86 binary for Microsoft Windows within a compressed zip file at the following link: http://gaprogman.com/CompiledBinaries/RockPaperScissors.zip
It was compiled using Microsoft Visual Studio 2013 (version 12.0.21005.1 REL) against .NET version 4.5.50938. In order to run this binary, you may need to upgrade the version of the .NET framework that your computer is running.
