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
- ClickABall
- PegSolitare
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sg_games-0.1.5.tar.gz.
File metadata
- Download URL: sg_games-0.1.5.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4079bc1ad4b5e51e250b99d56521d8b59dea618d70d4fea15533ad8aa860e926
|
|
| MD5 |
09ec2b74c472266a94d634089fb9535d
|
|
| BLAKE2b-256 |
0275e8e2e4674e9832d9d7c4c0072aaab9aed984527b233d66df79cd658fa344
|
File details
Details for the file sg_games-0.1.5-py3-none-any.whl.
File metadata
- Download URL: sg_games-0.1.5-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8fc9a7c7b43f9d379fa75154ed699b08698268b85f60c12bca050949280323
|
|
| MD5 |
1738f3888a9a465af6f198fdac8cb39d
|
|
| BLAKE2b-256 |
b9b0e2054fff4599108d55286c7d4a47516549141269d62a2c7eaa4d356e65e8
|