{"id":23589426,"url":"https://github.com/ewdlop/mini-games","last_synced_at":"2025-11-03T22:30:26.558Z","repository":{"id":265966665,"uuid":"889081030","full_name":"ewdlop/Mini-Games","owner":"ewdlop","description":"Made wtih Cursor; https://www.cursor.com/","archived":false,"fork":false,"pushed_at":"2025-02-05T00:37:01.000Z","size":56917,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T01:23:32.294Z","etag":null,"topics":["ai-assisted-development","claude-ai","cursor","cursor-small","desktop-app","pygame","python","tinker","venv-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewdlop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-15T15:17:44.000Z","updated_at":"2025-02-05T00:37:05.000Z","dependencies_parsed_at":"2025-02-05T01:31:39.671Z","dependency_job_id":null,"html_url":"https://github.com/ewdlop/Mini-Games","commit_stats":null,"previous_names":["ewdlop/mini-games"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FMini-Games","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FMini-Games/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FMini-Games/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewdlop%2FMini-Games/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewdlop","download_url":"https://codeload.github.com/ewdlop/Mini-Games/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239420130,"owners_count":19635514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-assisted-development","claude-ai","cursor","cursor-small","desktop-app","pygame","python","tinker","venv-python"],"created_at":"2024-12-27T06:14:01.424Z","updated_at":"2025-11-03T22:30:26.506Z","avatar_url":"https://github.com/ewdlop.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mini-Games\n\n[![Pylint](https://github.com/ewdlop/Mini-Games/actions/workflows/pylint.yml/badge.svg)](https://github.com/ewdlop/Mini-Games/actions/workflows/pylint.yml)\n[![CodeQL](https://github.com/ewdlop/Mini-Games/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/ewdlop/Mini-Games/actions/workflows/github-code-scanning/codeql)\n\n## Description\nThis repository contains a collection of mini-games implemented in various programming languages. 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.\n\n## Games Included\n1. 3D Effect Game (Python)\n2. Arrow Key Beep (C#)\n3. Breakout (Python)\n4. Connect5 (Python)\n5. Crossword Puzzle Generator (Python)\n6. Logic Gates Simulator (HTML/CSS)\n7. OpenGL 3D Game (Python)\n8. Pacman (Python)\n9. Ping Pong (Python)\n10. Tetris (HTML/JavaScript)\n\n## How to Run Each Game\n\n### 3D Effect Game (Python)\n1. Ensure you have Python and Pygame installed.\n2. Run the `3d_game.py` script using Python.\n\n### Arrow Key Beep (C#)\n1. Open the `arrow-key.cs` file in a C# development environment (e.g., Visual Studio).\n2. Compile and run the program.\n\n### Breakout (Python)\n1. Ensure you have Python and Pygame installed.\n2. Run the `breakout.py` script using Python.\n\n### Connect5 (Python)\n1. Ensure you have Python and NumPy installed.\n2. Run the `import numpy as np.py` script using Python.\n\n### Crossword Puzzle Generator (Python)\n1. Ensure you have Python installed.\n2. Run the `crossword_puzzle_generator.py` script using Python.\n\n### Logic Gates Simulator (HTML/CSS)\n1. Open the `logic_gates.html` file in a web browser.\n\n### OpenGL 3D Game (Python)\n1. Ensure you have Python, Pygame, and PyOpenGL installed.\n2. Run the `opengl_python_game.py` script using Python.\n\n### Pacman (Python)\n1. Ensure you have Python and Pygame installed.\n2. Run the `pacman.py` script using Python.\n\n### Ping Pong (Python)\n1. Ensure you have Python and Pygame installed.\n2. Run the `ping_pong.py` script using Python.\n\n### Tetris (HTML/JavaScript)\n1. Open the `tetris-game.html` file in a web browser.\n\n## Contributing\nContributions are welcome! If you have a mini-game you'd like to add or improvements to existing games, please follow these steps:\n1. Fork the repository.\n2. Create a new branch for your feature or bugfix.\n3. Make your changes and commit them with descriptive messages.\n4. Push your changes to your forked repository.\n5. Create a pull request to merge your changes into the main repository.\n\nPlease ensure your code follows the existing style and includes comments where necessary.\n\n# Mini-Games\nTo build a Python executable, you can use tools like **PyInstaller**, **cx_Freeze**, or **Py2exe**. These tools package your Python script into a standalone executable that can be run on systems without requiring Python to be installed. Here's how you can do it using **PyInstaller**, one of the most popular options:\n\n---\n\n### Steps to Build a Python Executable Using PyInstaller\n\n#### 1. **Install PyInstaller**\nFirst, ensure PyInstaller is installed. Open your terminal or command prompt and run:\n```bash\npip install pyinstaller\n```\n\n#### 2. **Navigate to Your Script Directory**\nChange to the directory containing your Python script. For example:\n```bash\ncd path/to/your/script\n```\n\n#### 3. **Create the Executable**\nRun PyInstaller with the desired options. The simplest command is:\n```bash\npyinstaller your_script.py\n```\nThis creates a folder named `dist` containing the executable.\n\n#### 4. **Optional: Customize the Build**\nYou can customize how the executable is built by adding flags:\n- **Single File Executable**: Create a single file instead of a folder:\n  ```bash\n  pyinstaller --onefile your_script.py\n  ```\n- **Add an Icon**: Specify an icon file for your executable:\n  ```bash\n  pyinstaller --onefile --icon=your_icon.ico your_script.py\n  ```\n- **Hide the Console** (for GUI apps): Prevent the console from opening when the executable is run:\n  ```bash\n  pyinstaller --onefile --noconsole your_script.py\n  ```\n\n#### 5. **Locate the Executable**\nAfter running PyInstaller, your executable will be in the `dist` folder. For example:\n```\ndist/\n  your_script.exe\n```\n\n#### 6. **Test the Executable**\nRun the generated `.exe` file to ensure it works as expected.\n\n---\n\n### Additional Notes\n\n- **Cross-Platform**: PyInstaller needs to be run on the same platform you are targeting (e.g., run it on Windows to generate a Windows executable).\n- **Dependencies**: Ensure all required dependencies are installed in your Python environment.\n- **Executable Size**: The size of the executable can be large because Python runtime and dependencies are bundled in.\n\n---\n\n### Example Command\n```bash\npyinstaller --onefile --noconsole --icon=myicon.ico myscript.py\n```\n\nThis creates a single-file executable with a custom icon and hides the console.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewdlop%2Fmini-games","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewdlop%2Fmini-games","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewdlop%2Fmini-games/lists"}