{"id":21884249,"url":"https://github.com/h-yzeng/retro-minigames","last_synced_at":"2026-04-09T16:03:49.849Z","repository":{"id":255806162,"uuid":"850909778","full_name":"h-yzeng/Retro-Minigames","owner":"h-yzeng","description":"Retro-Minigames is a Java desktop app featuring classic games like Tic-Tac-Toe, Snake, and Pong. It includes user authentication, profile management, and game statistics using MySQL and BCrypt.","archived":false,"fork":false,"pushed_at":"2024-09-16T03:55:32.000Z","size":6228,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T13:41:45.447Z","etag":null,"topics":["database","database-schema","game-development","java","login-system","mysql","sql","ui-design","user-interface"],"latest_commit_sha":null,"homepage":"","language":"Java","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/h-yzeng.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-02T04:17:22.000Z","updated_at":"2024-09-16T03:55:35.000Z","dependencies_parsed_at":"2024-09-15T08:53:31.047Z","dependency_job_id":"d5b331f6-b82a-4fd3-8516-00b2d56c8fb0","html_url":"https://github.com/h-yzeng/Retro-Minigames","commit_stats":null,"previous_names":["h-yzeng/retro-minigames"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/h-yzeng/Retro-Minigames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-yzeng%2FRetro-Minigames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-yzeng%2FRetro-Minigames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-yzeng%2FRetro-Minigames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-yzeng%2FRetro-Minigames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h-yzeng","download_url":"https://codeload.github.com/h-yzeng/Retro-Minigames/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h-yzeng%2FRetro-Minigames/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266609299,"owners_count":23955619,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["database","database-schema","game-development","java","login-system","mysql","sql","ui-design","user-interface"],"created_at":"2024-11-28T10:12:59.953Z","updated_at":"2026-04-09T16:03:49.808Z","avatar_url":"https://github.com/h-yzeng.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🎮 Retro-Minigames\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white\" alt=\"Java\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/mysql-4479A1.svg?style=for-the-badge\u0026logo=mysql\u0026logoColor=white\" alt=\"MySQL\"\u003e\n\u003c/p\u003e\n\nThis project is a collection of retro-styled games built using **Java**. The project also includes a **login system** backed by a MySQL database to store user credentials, high scores, and game statistics. The project is a personal project created to demonstrate Java Proficiency.\n\n## Games Included:\n- **Snake** 🐍: A classic arcade game where players control a snake and aim to grow longer without colliding with walls or itself.\n- **Pong** 🏓: A two-player table tennis game featuring paddles and a ball. First player to reach 10 points wins!\n- **Tic-Tac-Toe** ❌⭕: A two-player strategy game where players alternate placing Xs and Os on a 3x3 grid to win.\n\n## Features:\n- **User Authentication**: Users can register, log in, and have their personal data stored securely with hashed passwords.\n- **Detailed Game Statistics**: Each player’s high scores and detailed game statistics are tracked and displayed in their profile:\n  - **Snake**: High score, total apples eaten, games played.\n  - **Pong**: Total points, games played, games won.\n  - **Tic-Tac-Toe**: Games played, games won, games drawn.\n- **Responsive UI**: Easy-to-use graphical user interface (GUI) built with **Swing**.\n\n## Recent Updates:\n- Added **detailed game statistics**: tracks draws in Tic-Tac-Toe, total points in Pong, and more.\n- **Sound system integration**: added sound effects for key game events such as scoring, winning, and hitting paddles.\n- Added **replay dialogs** for each game that allow players to easily restart or exit after finishing a game.\n- Updated `UserProfileScreen` to display detailed game statistics.\n- Improved **backend data flow** for user and game management.\n\n## Getting Started\n\n### Prerequisites:\n- **Java JDK 8** or higher\n- **Eclipse IDE**, **IntelliJ IDEA**, or any Java-supporting IDE\n- **Git** for version control\n- **MySQL** or any other relational database for data storage\n\n## Libraries Used\n- **jbcrypt**: For secure password hashing.\n- **mysql-connector**: To connect the project to MySQL.\n\n## Setting Up the Project\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/h-yzeng/retro-games.git\n   cd retro-games\n\n2. **Database Setup**:\n- Make sure you have **MySQL** installed and running.\n- Import the SQL script located in `/db/create_tables.sql` to set up the required database schema:\n  ```bash\n  mysql -u your-username -p retro_games_db \u003c db/create_tables.sql\n\n3. **Configure Database**:\n- Update the `DatabaseManager.java` file with your MySQL credentials (username, password, database name).\n\n4. **Compile and Run**:\n- Open the project in **Eclipse IDE** or your preferred Java IDE.\n- Compile the Java files, ensuring the necessary libraries (`jbcrypt` and `mysql-connector`) are in the classpath.\n- Run the `LoginScreen` class as the main entry point to the application.\n\n## How to Play\n\n### Snake:\n- Use **WASD** keys to control the snake's movement.\n- Collect apples to grow longer. Don’t hit the walls or yourself!\n- **Tracked stats**: High score, total apples eaten, games played.\n\n### Pong:\n- **W** and **S** keys for Player 1 (left paddle).\n- **Up** and **Down** arrow keys for Player 2 (right paddle).\n- First to 10 points wins.\n- **Tracked stats**: Games played, games won, total points.\n\n### Tic-Tac-Toe:\n- Click on the empty grid to place your symbol (X or O).\n- Get three in a row to win. A line highlights the winning combination.\n- **Tracked stats**: Games played, games won, games drawn.\n\n## Screenshots\n\n### Login Screen and Main Menu\n\u003cdiv style=\"display: flex; justify-content: center; gap: 20px;\"\u003e\n  \u003cimg src=\"RetroGames/assets/images/login_screen.png\" alt=\"Login Screen\" style=\"width: 40%;\"/\u003e\n  \u003cimg src=\"RetroGames/assets/images/main_menu.png\" alt=\"Main Menu\" style=\"width: 40%;\"/\u003e\n\u003c/div\u003e\n\n### User Profile with Game Stats\n\u003cdiv style=\"text-align: center; margin-top: 20px;\"\u003e\n  \u003cimg src=\"RetroGames/assets/images/user_profile.png\" alt=\"User Profile with Stats\" style=\"width: 60%;\"/\u003e\n\u003c/div\u003e\n\n### Gameplay Screenshots: Snake, Pong, and Tic-Tac-Toe\n\u003cdiv style=\"display: flex; justify-content: center; gap: 20px; margin-top: 20px;\"\u003e\n  \u003cimg src=\"RetroGames/assets/images/snake_gameplay.png\" alt=\"Snake Gameplay\" style=\"width: 30%;\"/\u003e\n  \u003cimg src=\"RetroGames/assets/images/pong_gameplay.png\" alt=\"Pong Gameplay\" style=\"width: 30%;\"/\u003e\n  \u003cimg src=\"RetroGames/assets/images/tictactoe_gameplay.png\" alt=\"Tic-Tac-Toe Gameplay\" style=\"width: 30%;\"/\u003e\n\u003c/div\u003e\n\n## Authors\n- **Henry Zeng** - [h-yzeng](https://github.com/h-yzeng)\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/h-yzeng/Retro-Minigames/blob/master/LICENSE) file for details.\n\n## Future Improvements\n- Unknown.\n\n![GitHub last commit](https://img.shields.io/github/last-commit/h-yzeng/Retro-Minigames)\n![GitHub license](https://img.shields.io/github/license/h-yzeng/Retro-Minigames)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-yzeng%2Fretro-minigames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh-yzeng%2Fretro-minigames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh-yzeng%2Fretro-minigames/lists"}