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
    from sg_games import snake
    snake_game()

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.4.tar.gz (10.2 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.4-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sg_games-0.1.4.tar.gz
  • Upload date:
  • Size: 10.2 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.4.tar.gz
Algorithm Hash digest
SHA256 d1ffe3548e0b1690556cb2ed6bc9e3c7f0d1e260d65cdbb6dff4b89a03fbe830
MD5 e185c9d9f99e461982a92dfdd9ca4989
BLAKE2b-256 ae7026024d97278c1505dc08138ca837d3098f26a3612372b2ca55188e15afeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sg_games-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 514b0a3868e524a61ad42be27c2f1253275e6b2d10f804a1bdc594bf5fb68369
MD5 cc5ea914167b3e52641e0178eb472425
BLAKE2b-256 7ddc21366a097796348bc7cb8326a3a1485b7d595f1745093d5669c141e1dd3a

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