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.2.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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sg_games-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8e95d0be5fd3a7bc0ee0cb450ba965806bdb0ed4fbca5b14af0e727a0e77ab98
MD5 1fbd6e29596bfb29ad661e3439909e37
BLAKE2b-256 3c9d513b14cc6651424d2919de877de4ad7c0eb4408d27aed36e6ce248cf5634

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sg_games-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c32475749dd105eac71ec239870dd59d9f09fa6bc1b2725fba7e186aa8e376d9
MD5 8b79db9cae1dbbd3426000ec93435b77
BLAKE2b-256 6c31d378c264c0c5359825fa7efda3479cdcb1a878ae0ea01502d2303e20a68e

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