Skip to content

This "Rock, Paper, Scissors" game is a Python console app using SQLAlchemy for ORM

Notifications You must be signed in to change notification settings

ialirezaesrafili/rock-scissors-paper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game with Database Integration

Overview

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.

Features

  • 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.

Setup

Prerequisites

  • Python 3.x
  • SQLite
  • SQLAlchemy
  • prettytable

Installation

  1. Clone the repository:

    git clone https://github.com/ialirezaesrafili/rock-scissors-paper.git
  2. Install required Python packages:

    pip install -r requirements.txt

Configuration

The game uses a SQLite database named game.sqlite stored in the same directory as the script.

Usage

To start the game, run the main.py script:

python main.py

About

This "Rock, Paper, Scissors" game is a Python console app using SQLAlchemy for ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages