This repository contains a Rock, Paper, Scissors game implemented in Python with a SQLite database backend. The game tracks player scores and game results using SQLAlchemy for ORM (Object-Relational Mapping) and PrettyTable for displaying results in a tabular format.
- Track player scores and game results.
- Print leaderboard and previous game results.
- Play different game modes (Single Round, Best of Three, Best of Five, Best of Seven).
- Ensure the database schema is up-to-date.
- Add new players or update existing player scores.
- Display results in a readable table format using PrettyTable.
- Python 3.x
- SQLite
- SQLAlchemy
- prettytable
-
Clone the repository:
git clone https://github.com/ialirezaesrafili/rock-scissors-paper.git
-
Install required Python packages:
pip install -r requirements.txt
The game uses a SQLite database named game.sqlite
stored in the same directory as the script.
To start the game, run the main.py
script:
python main.py