A fun and minimal command-line Rock-Paper-Scissors game written in C.
Paper Cut is a lightweight Rock-Paper-Scissors game built in pure C (ISO C99).
It’s designed to demonstrate modular programming, input validation, and fun CLI interactions.
“A tiny project with a big smile — the joy of old-school C in a few kilobytes!”
This release marks the base version (v1.0.0).
The format is based on Keep a Changelog 1.1.0 and this project adheres to Semantic Versioning 2.0.0.
- 🎮 Play classic Rock–Paper–Scissors directly in your terminal
- 💬 Friendly prompts with input validation
- 🔁 Replay without restarting
- 💻 Works seamlessly on Windows, Linux, and macOS
- 🧩 Written in portable, clean C99 code
| Property | Value |
|---|---|
| Language | C (ISO C99) |
| Compiler | GCC / Clang |
| Source Size | ~2 KB |
| Executable Size | ~137 KB |
| Platform | Cross-platform |
| Version | 1.0.0 (Base Release) |
| Codename | First Slash |
# Clone the repository
git clone https://github.com/dipsana/paper-cut.git
cd paper-cut
# Compile (GCC)
gcc paper_cut.c -o paper_cut
# Or with Clang
clang paper_cut.c -o paper_cut./paper_cutEnter 'r' for rock, 'p' for paper and 's' for scissors
r
You chose 'r' and computer chose 'r'. It's a draw!
Do you want to play again? (y/n): y
Enter 'r' for rock, 'p' for paper and 's' for scissors
s
You chose 's' and computer chose 'p'. Congrats, you won!
Do you want to play again? (y/n): n
Come back anytime to relive the fun! :)
/
├─ 📁 bin
│ └─ 📄 paper_cut.exe
├─ 📁 docs
│ └─ 📄 SRS.pdf
├─ 📁 src
│ └─ 📄 main.c
├─ 📄 CHANGELOG.md
├─ 📄 LICENSE
└─ 📄 README.md
- 🌐 Multiplayer Mode: Play locally or online
- 🖥️ GUI Version: SDL or GTK-based graphical edition
- 📊 Statistics: Track wins/losses across sessions
- 🎨 Colored Terminal Output: Improved visual feedback
This project is licensed under the MIT License. You’re free to use, modify, and share it under the same terms.
If you liked this project, consider giving it a ⭐ on GitHub — it helps a lot! You can also support my free creations through donations or by sharing my repositories.