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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sg_games-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 785a5bfca862b4ce211352e867e9d3bb9d3505d9355b1cf04361812300541f1f
MD5 f451d47962f3fc687935f12e5c6ab67b
BLAKE2b-256 722f858a0a87aff13f2bffa1a87bbc0f3364acd9b9a95e263b5f501101e43a0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sg_games-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 de7d646794e2d876c9da63b6b7ea6bf0bf98039ed48a26517affdeea88093ffd
MD5 36b271e822c0b4e59d3dc37c15b8646c
BLAKE2b-256 33ac91e4c3e2f23fef1d1a58584daed22e499c07572e396f03d12e278cba22e4

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