Skip to content

ewdlop/Mini-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

52 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Mini-Games

Pylint CodeQL Build Windows Build Ubuntu Build macOS

Description

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.

๐ŸŽฎ Games Included

Python Games (English)

  1. 3D Effect Game (3d_game.py) - 3D visual effects game
  2. Breakout (breakout.py) - Classic brick-breaking game
  3. Crossword Puzzle Generator (crossword_puzzle_generator.py) - Generate crossword puzzles
  4. OpenGL 3D Game (opengl_python_game.py) - 3D game using OpenGL
  5. Pacman (pacman.py) - Classic Pac-Man style game
  6. Ping Pong (ping_pong.py) - Table tennis game
  7. Snake (snake.py) - Classic snake game

Python Games (Chinese/Japanese)

  1. ่ฒช้ฃŸ่›‡ (่ฒช้ฃŸ่›‡.py) - Snake game in Chinese
  2. ๅ…ญๅญๆฃ‹ (ๅ…ญๅญๆฃ‹.py) - Connect Six game
  3. ไบ”ๅญๆฃ‹ (ไบ”ๅญๆฃ‹.py) - Gomoku/Five in a Row
  4. ๅ››ๅญๆฃ‹ (ๅ››ๅญๆฃ‹.py) - Connect Four
  5. ๅœˆๅœˆๅ‰ๅ‰ (ๅœˆๅœˆๅ‰ๅ‰.py) - Tic-Tac-Toe
  6. ๆŽƒๅœฐ้›ท (ๆŽƒๅœฐ้›ท.py) - Minesweeper
  7. ๆ•ธ็จ (ๆ•ธ็จ.py) - Sudoku
  8. ใใ†ใ“ใฐใ‚“ (ใใ†ใ“ใฐใ‚“.py) - Sokoban (Japanese)
  9. ่จˆ็ฎ—ๆฉŸ (่จˆ็ฎ—ๆฉŸ.py) - Calculator

Other Games

  1. Arrow Key Beep (arrow-key.cs) - C# console game
  2. Logic Gates Simulator (logic_gates.html) - HTML/CSS logic simulator
  3. NAND Gate (NAND.html) - NAND gate simulator
  4. Tetris (tetris-game (1).html) - HTML/JavaScript Tetris
  5. 15 Puzzle (16/Schylling 15 Puzzel.py) - Sliding puzzle game

๐Ÿš€ Quick Start

Download Pre-built Executables

Check the Releases section for pre-built executables for Windows, macOS, and Linux.

Run from Source

  1. Clone the repository:

    git clone https://github.com/ewdlop/Mini-Games.git
    cd Mini-Games
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run any game:

    python pacman.py
    python ่ฒช้ฃŸ่›‡.py
    python ่จˆ็ฎ—ๆฉŸ.py

๐Ÿ”ง Building Executables

Automated Builds

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

Manual Build

You can also build executables manually using the provided scripts:

Windows PowerShell

.\build-chinese-games.ps1

Windows Batch

build-chinese-games.bat

Using PyInstaller Directly

pip install pyinstaller
pyinstaller --onefile --noconsole your_game.py

๐Ÿ“ Repository Structure

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/

๐ŸŽฏ Game Categories

Strategy Games

  • ๅ…ญๅญๆฃ‹ (Connect Six) - Advanced connect game
  • ไบ”ๅญๆฃ‹ (Gomoku) - Five in a row
  • ๅ››ๅญๆฃ‹ (Connect Four) - Classic connect four

Puzzle Games

  • ๆ•ธ็จ (Sudoku) - Number puzzle game
  • ๆŽƒๅœฐ้›ท (Minesweeper) - Mine detection game
  • ใใ†ใ“ใฐใ‚“ (Sokoban) - Box pushing puzzle

Action Games

  • ่ฒช้ฃŸ่›‡ (Snake) - Classic snake game
  • Pacman - Maze chase game
  • Breakout - Brick breaking game

Utility Games

  • ่จˆ็ฎ—ๆฉŸ (Calculator) - Graphical calculator
  • Crossword Puzzle Generator - Create crossword puzzles

๐Ÿ› ๏ธ Requirements

Python Games

  • Python 3.7+
  • pygame
  • numpy (for some games)
  • tkinter (usually included with Python)

Web Games

  • Modern web browser with HTML5 support

C# Games

  • .NET Framework or .NET Core
  • Visual Studio or compatible C# compiler

๐Ÿš€ Installation & Setup

  1. Install Python dependencies:

    pip install pygame numpy
  2. For development with all dependencies:

    pip install -r requirements.txt
  3. Run games directly:

    python [game_name].py

๐Ÿค Contributing

Contributions are welcome! If you have a mini-game you'd like to add or improvements to existing games, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature or bugfix
  3. Make your changes and commit them with descriptive messages
  4. Push your changes to your forked repository
  5. 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.

Guidelines for Contributors

  • 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

๐Ÿ“ฆ Releases

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)

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ”’ Security

Please review our Security Policy for information about reporting security vulnerabilities.

๐Ÿ—๏ธ Build Information

For detailed build instructions and troubleshooting, see BUILD_GUIDE.md.

Build Requirements

  • Python 3.7+
  • PyInstaller for creating executables
  • Required packages listed in requirements.txt

Automated Builds

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

๐ŸŒŸ Featured Games

Traditional Chinese Games

  • ่ฒช้ฃŸ่›‡ - A beautifully implemented snake game with Chinese UI
  • ๅ…ญๅญๆฃ‹ - Strategic Connect Six game
  • ๆ•ธ็จ - Sudoku puzzle with intuitive interface

Classic Arcade Games

  • Pacman - Full-featured Pac-Man implementation
  • Breakout - Classic brick-breaking gameplay
  • Ping Pong - Two-player table tennis

Made with โค๏ธ by the Mini-Games community