An open API service indexing awesome lists of open source software.

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.

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.

![image](https://github.com/user-attachments/assets/65133f75-87f9-4a39-88e4-511b8cd0cec2)

#### ** 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.