RockPaperScissors

From GaProgMan's Wiki
Jump to: navigation, search

RockPaperScissors is an open source Windows Forms game written in C#, to simulate a pseudo-random Rock, Paper, Scissors, Lizard, Spock game

RockPaperScissors
Original author(s) Jamie
Developer(s) Jamie
Development status Completed
Written in C#, .NET 3.5
Operating system Microsoft Windows
Available in English
License GPLv2
Website www.github.com/GaProgMan/RockPaperScissors

Project Description

A full write up of the project description can be found at Jamie's blog here

Source Postmortem

The application uses C# and Dot Net 3 and is run as a Windows forms application.

Process

  • 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

Source

The latest version of the source code can be found at Jamie's GitHub repository for the project: www.github.com/GaProgMan/RockPaperScissors