Skip to content

Rock, Paper, Scissors game where the user competes against the computer. The game follows the classic rules: Rock (✊) beats Scissors (✂️) Scissors (✂️) beats Paper (📄) Paper (📄) beats Rock (✊)

License

Notifications You must be signed in to change notification settings

SohamMahajan788/Rock_Paper_Scissors_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Name - Rock, Paper, Scissors Game ✊📄✂️

🎮 About the Game

  • This is a simple Rock, Paper, Scissors game built using Python. The player competes against the computer, which randomly selects an option. The game determines the winner based on standard Rock-Paper-Scissors rules.

🔥 Features

  1. Randomised Computer Moves using Python's random module 🎲
  2. Interactive CLI Experience with ASCII art for each choice 🎨
  3. Colored Output for results using ANSI escape codes 🔴🟢🟡
  4. Simple and Beginner-Friendly implementation 💡

🛠 Technologies Used -Python 🐍

  • Random module (random.randint()) for generating computer choices
  • ANSI Escape Codes for colored terminal output

🚀 How to Play

  • Run the Python script.
  • Enter 0 for Rock ✊, 1 for Paper 📄, or 2 for Scissors ✂️.
  • The computer will randomly select its move.
  • The winner will be displayed on the screen!

📌 Rules

  • Rock beats Scissors ✊ > ✂️
  • Scissors beat Paper ✂️ > 📄
  • Paper beats Rock 📄 > ✊
  • Same choices lead to a Draw 🤝

🎯 Challenge Purpose

  • This project was created as part of my #100DaysOfCode challenge to learn: ✔️ Python Lists 📜✔️ If-Elif-Else Statements 🤖✔️ Randomisation 🎲

Enjoy the game and happy coding! 🚀


🔗 Follow My Coding Journey:

LinkedIn: https://www.linkedin.com/in/sohammahajan788

Twitter (X): https://x.com/SohamMahajan788

GitHub: https://github.com/SohamMahajan788


🔗 Contribution

  • Feel free to fork this project and improve upon it! 🚀

🌟 Star This Repo If you like this project, consider starring it on GitHub!

📚 Created by Soham Mahajan

About

Rock, Paper, Scissors game where the user competes against the computer. The game follows the classic rules: Rock (✊) beats Scissors (✂️) Scissors (✂️) beats Paper (📄) Paper (📄) beats Rock (✊)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages