This project is a terminal-based Rock-Paper-Scissors game built using Python.
It uses ASCII art, clean input handling, and proper game logic to determine who wins each round.
The user selects Rock, Paper, or Scissors, the computer randomly selects its choice, and the program displays the winner with visual output.
Most beginners build simple RPS games without visuals.
This version adds:
- ASCII art
- cleaner logic
- replay loop
- variable mapping system
so it becomes more fun and better structured for learning.
It’s perfect as a beginner-friendly Python mini project and a starter portfolio piece.
| Technology | Usage |
|---|---|
| 🐍 Python | Core programming language |
| 🎨 ASCII Art | Enhanced visual gameplay |
| 🎲 random | Generates computer choice |
| 💻 CLI / Terminal | User interaction |
- ✊✋✌️ ASCII Art Style RPS
- 🤖 Smart Computer Choice (randomized)
- 🧠 Clean Win Logic using name mapping
- 🔁 Replay System (play again without restarting)
- 🚫 Input Validation
- 🧹 Screen Clearing for clean UI (
os.system("clear"))
You need:
- Python 3.8+
- Terminal (MacOS, Linux, Windows PowerShell/CMD)
Clone repository:
git clone https://github.com/ZygmaCore/rock_paper_scissors.git
cd rock_paper_scissors(Optional) Create virtual environment:
python -m venv .venv
# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activateRun the game:
python main.pySample gameplay:
Please Press ENTER To Play the Game!
What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors.
PLAYER CHOSE:
[ASCII ART]
COMPUTER CHOSE:
[ASCII ART]
YOU WIN
Contributions are always welcome!
- Fork the project
- Create a branch (
git checkout -b feature-name) - Commit your changes
- Push to your branch
- Open a pull request
This project is licensed under the MIT License.
See the LICENSE file for full details.
Author Contact:
🌐 https://alhikam.me
🐙 https://github.com/ZygmaCore

