Skip to main content

A small games package

Project description

SG Games Collection

SG Games Collection is a Python package that provides a set of classic games implemented with Tkinter. Play games like Brick Breaker, Flappy Bird, Ping-Pong, Snake, and TicTacToe from a simple command-line interface.

Features

  • Brick Breaker
  • Flappy Bird
  • Ping Pong
  • Snake
  • TicTacToe

Run each game from the terminal using convenient command-line flags.


Installation

You can install sg-games from PyPI using pip.

Step 1: Install Python 3 (if not already installed)

Check your Python version:

    python3 --version

Step 2: Ensure Tkinter is Installed

- Ubuntu / Debian

    sudo apt update
    sudo apt install python3-tk

- Fedora

    sudo dnf install python3-tkinter

- Arch Linux / Manjaro

    sudo pacman -S tk

Verify Tkinter Installation

    python3 -m tkinter

Step 3: Install SG games

    pip install sg-games

Usage

Run the games from your terminal using the following flags:

    sg-games --help

Output:

usage: sg-games [-h] [--brick_breaker] [--flappy_bird] [--ping_pong] [--snake] [--xox]

SG Games Collection

options:
  -h, --help       show this help message and exit
  --brick_breaker  Launch Brick Breaker game
  --flappy_bird    Launch Flappy Bird game
  --ping_pong      Launch Ping Pong game
  --snake          Launch Snake game
  --xox            Launch TicTacToe

Examples

  • Launch Brick Breaker
    sg-games --brick_breaker
  • Launch Snake
    sg-games --snake

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your improvements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sg_games-0.1.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sg_games-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file sg_games-0.1.1.tar.gz.

File metadata

  • Download URL: sg_games-0.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sg_games-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5c8eaffdef37a6f501a9efbb1596853f9c5b8c8cc3748ebcd31b17ea58bd7f22
MD5 8075f56fdf0b286c8456c74f6d4d2f05
BLAKE2b-256 5e9099d2722cda82665fea14282a6eb411b06f58aa0f1db25f8f9ea6bb2e6ef5

See more details on using hashes here.

File details

Details for the file sg_games-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sg_games-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sg_games-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d09e5ab44492b65e2ac63d9d381cb9d8210f64d6e51ec36d2b88f724dddef457
MD5 881a154c40dbb6b2cba7ff42afe14876
BLAKE2b-256 3339a2d478daa6f1992731d6dd34df7b1e62f254e76d4298379eccf28debc1b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page