https://github.com/fullstackgenerator/rps-game
A console version of Rock-Paper-Scissors, input validation, and color-coded results.
https://github.com/fullstackgenerator/rps-game
csharp terminal
Last synced: about 1 year ago
JSON representation
A console version of Rock-Paper-Scissors, input validation, and color-coded results.
- Host: GitHub
- URL: https://github.com/fullstackgenerator/rps-game
- Owner: fullstackgenerator
- Created: 2024-08-10T17:02:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-11T15:07:38.000Z (about 1 year ago)
- Last Synced: 2025-03-11T16:23:24.410Z (about 1 year ago)
- Topics: csharp, terminal
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### **Rock-Paper-Scissors - Console style**
This C# console application implements the classic Rock-Paper-Scissors game. The game ensures valid user input using a `while` loop and employs the `Random` class to generate the computer’s choice. A simple `if` statement determines the winner, and ties result in an automatic rematch. The program also enhances user experience with structured input handling and a clean, interactive flow.

#### ** Includes:**
- Interactive gameplay with a computer opponent.
- Randomized AI moves using the `Random` class.
- Input validation to ensure correct user entries.
- Looping structure to allow multiple rounds of play.