This project is a Python-based implementation of the popular game "Rock, Paper, Scissors". It provides the opportunity to play the game against a computer, which makes its moves based on random choice. The project is a meaningful exercise for students who already grasp the Python basics and want to dive into something more challenging and hands-on.
rock-paper-scissors/
│
├── src/
│ ├── main.py - the main game class
│
└── README.md
- Python 3.7+
To run the project:
python src/main.py- This project is built around a main class,
RockPaperScissors, which encapsulates the game's functionalities. - For the computer's choice, consider using the
randommodule of python.
Upon the successful completion of this project, students will have gained:
- A better understanding of Python classes and object-oriented programming (OOP).
- Experience with Python’s
randommodule. - A deeper understanding of game loop and user interaction.
- Experience with troubleshooting and problem-solving their own code.
