This repository contains a collection of mini-games implemented in various programming languages, including both English and Chinese (Traditional/Simplified) games. The purpose of this repository is to provide examples of simple game implementations and to serve as a learning resource for those interested in game development.
- 3D Effect Game (
3d_game.py
) - 3D visual effects game - Breakout (
breakout.py
) - Classic brick-breaking game - Crossword Puzzle Generator (
crossword_puzzle_generator.py
) - Generate crossword puzzles - OpenGL 3D Game (
opengl_python_game.py
) - 3D game using OpenGL - Pacman (
pacman.py
) - Classic Pac-Man style game - Ping Pong (
ping_pong.py
) - Table tennis game - Snake (
snake.py
) - Classic snake game
- ่ฒช้ฃ่ (
่ฒช้ฃ่.py
) - Snake game in Chinese - ๅ
ญๅญๆฃ (
ๅ ญๅญๆฃ.py
) - Connect Six game - ไบๅญๆฃ (
ไบๅญๆฃ.py
) - Gomoku/Five in a Row - ๅๅญๆฃ (
ๅๅญๆฃ.py
) - Connect Four - ๅๅๅๅ (
ๅๅๅๅ.py
) - Tic-Tac-Toe - ๆๅฐ้ท (
ๆๅฐ้ท.py
) - Minesweeper - ๆธ็จ (
ๆธ็จ.py
) - Sudoku - ใใใใฐใ (
ใใใใฐใ.py
) - Sokoban (Japanese) - ่จ็ฎๆฉ (
่จ็ฎๆฉ.py
) - Calculator
- Arrow Key Beep (
arrow-key.cs
) - C# console game - Logic Gates Simulator (
logic_gates.html
) - HTML/CSS logic simulator - NAND Gate (
NAND.html
) - NAND gate simulator - Tetris (
tetris-game (1).html
) - HTML/JavaScript Tetris - 15 Puzzle (
16/Schylling 15 Puzzel.py
) - Sliding puzzle game
Check the Releases section for pre-built executables for Windows, macOS, and Linux.
-
Clone the repository:
git clone https://github.com/ewdlop/Mini-Games.git cd Mini-Games
-
Install dependencies:
pip install -r requirements.txt
-
Run any game:
python pacman.py python ่ฒช้ฃ่.py python ่จ็ฎๆฉ.py
This repository includes GitHub Actions workflows that automatically build executables for Windows, macOS, and Linux when version tags are pushed:
- Windows:
main-windows.yml
- Builds.exe
files using PyInstaller - Ubuntu:
main-ubuntu.yml
- Builds Linux executables - macOS:
main-macos.yml
- Builds macOS executables
You can also build executables manually using the provided scripts:
.\build-chinese-games.ps1
build-chinese-games.bat
pip install pyinstaller
pyinstaller --onefile --noconsole your_game.py
Mini-Games/
โโโ English Games/
โ โโโ pacman.py
โ โโโ ping_pong.py
โ โโโ breakout.py
โ โโโ ...
โโโ Chinese/Japanese Games/
โ โโโ ่ฒช้ฃ่.py (Snake)
โ โโโ ๅ
ญๅญๆฃ.py (Connect Six)
โ โโโ ่จ็ฎๆฉ.py (Calculator)
โ โโโ ...
โโโ Web Games/
โ โโโ logic_gates.html
โ โโโ tetris-game.html
โ โโโ ...
โโโ Build Scripts/
โ โโโ build-chinese-games.ps1
โ โโโ build-chinese-games.bat
โ โโโ requirements.txt
โโโ Release Executables/
โ โโโ release/
โโโ CI/CD Workflows/
โโโ .github/workflows/
- ๅ ญๅญๆฃ (Connect Six) - Advanced connect game
- ไบๅญๆฃ (Gomoku) - Five in a row
- ๅๅญๆฃ (Connect Four) - Classic connect four
- ๆธ็จ (Sudoku) - Number puzzle game
- ๆๅฐ้ท (Minesweeper) - Mine detection game
- ใใใใฐใ (Sokoban) - Box pushing puzzle
- ่ฒช้ฃ่ (Snake) - Classic snake game
- Pacman - Maze chase game
- Breakout - Brick breaking game
- ่จ็ฎๆฉ (Calculator) - Graphical calculator
- Crossword Puzzle Generator - Create crossword puzzles
- Python 3.7+
- pygame
- numpy (for some games)
- tkinter (usually included with Python)
- Modern web browser with HTML5 support
- .NET Framework or .NET Core
- Visual Studio or compatible C# compiler
-
Install Python dependencies:
pip install pygame numpy
-
For development with all dependencies:
pip install -r requirements.txt
-
Run games directly:
python [game_name].py
Contributions are welcome! If you have a mini-game you'd like to add or improvements to existing games, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes and commit them with descriptive messages
- Push your changes to your forked repository
- Create a pull request to merge your changes into the main repository
Please ensure your code follows the existing style and includes comments where necessary.
- Code Style: Follow PEP 8 for Python code
- Documentation: Include docstrings and comments
- Testing: Test your games thoroughly before submitting
- Localization: Consider adding games in different languages
- Dependencies: Keep external dependencies minimal
Pre-built executables are automatically generated for each release and are available in the Releases section. The automated build system creates executables for:
- Windows (.exe files)
- macOS (macOS executables)
- Linux (Linux executables)
This project is licensed under the MIT License - see the LICENSE file for details.
Please review our Security Policy for information about reporting security vulnerabilities.
For detailed build instructions and troubleshooting, see BUILD_GUIDE.md.
- Python 3.7+
- PyInstaller for creating executables
- Required packages listed in
requirements.txt
The repository uses GitHub Actions for continuous integration:
- Linting: Code quality checks with Pylint
- Security: CodeQL security analysis
- Multi-platform builds: Windows, macOS, and Linux executable generation
- ่ฒช้ฃ่ - A beautifully implemented snake game with Chinese UI
- ๅ ญๅญๆฃ - Strategic Connect Six game
- ๆธ็จ - Sudoku puzzle with intuitive interface
- Pacman - Full-featured Pac-Man implementation
- Breakout - Classic brick-breaking gameplay
- Ping Pong - Two-player table tennis
Made with โค๏ธ by the Mini-Games community