{"id":24772493,"url":"https://github.com/mohanad-80/cli_snake_game","last_synced_at":"2025-03-23T20:44:56.436Z","repository":{"id":274468596,"uuid":"923004635","full_name":"mohanad-80/cli_snake_game","owner":"mohanad-80","description":"A classic Snake game implemented in C++.","archived":false,"fork":false,"pushed_at":"2025-01-27T13:49:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T14:37:08.705Z","etag":null,"topics":["cpp","game","snake-game"],"latest_commit_sha":null,"homepage":"","language":"C++","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/mohanad-80.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":"2025-01-27T13:35:10.000Z","updated_at":"2025-01-27T13:49:43.000Z","dependencies_parsed_at":"2025-01-27T14:37:10.171Z","dependency_job_id":"7d44ad14-aef2-4e62-859f-16e1dd1a02a0","html_url":"https://github.com/mohanad-80/cli_snake_game","commit_stats":null,"previous_names":["mohanad-80/cli_snake_game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohanad-80%2Fcli_snake_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohanad-80%2Fcli_snake_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohanad-80%2Fcli_snake_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohanad-80%2Fcli_snake_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohanad-80","download_url":"https://codeload.github.com/mohanad-80/cli_snake_game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168816,"owners_count":20571799,"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":["cpp","game","snake-game"],"created_at":"2025-01-29T04:23:07.006Z","updated_at":"2025-03-23T20:44:56.405Z","avatar_url":"https://github.com/mohanad-80.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake Game\n\nWelcome to the Snake Game repository! This is a classic Snake game implemented in C++. The game is designed to be simple and fun, with a text-based interface.\n\n## Table of Contents\n- [Features](#features)\n- [How to Play](#how-to-play)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n- **Text-based Interface**: The game uses a simple text-based interface to display the game board.\n- **Random Apple Placement**: The apple (food) is placed randomly on the board each time it is eaten.\n- **Snake Growth**: The snake grows in length each time it eats an apple.\n- **Game Over Conditions**: The game ends if the snake collides with the walls or itself.\n\n## How to Play\n- Use the **W/A/S/D** keys or the **Arrow keys** to control the direction of the snake.\n- The goal is to eat the apples (`\u0026`) that appear on the board.\n- Each apple eaten increases the length of the snake.\n- Avoid colliding with the walls (`-` and `|`) or the snake's own body (`@`).\n- Press **X** or **ESC** to quit the game at any time.\n\n## Installation\nTo run the Snake Game, you need to have a C++ compiler installed on your system.\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/mohanad-80/cli_snake_game.git\n   cd cli_snake_game\n   ```\n\n2. **Compile the code**:\n   - On **Windows**:\n     ```bash\n     g++ -o snake_game main.cpp\n     ```\n\n3. **Run the game**:\n   - On **Windows**:\n     ```bash\n     .\\snake_game\n     ```\n\n## Usage\nAfter starting the game, you will be presented with a menu:\n1. **Start Game**: Begins a new game of Snake.\n2. **Instructions**: Displays the game instructions.\n3. **Exit**: Exits the game.\n\n## Contributing\nContributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.\n\n1. **Fork the repository**.\n2. **Create a new branch** for your feature or bug fix.\n3. **Commit your changes**.\n4. **Push your branch** to your fork.\n5. **Submit a pull request**.\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nEnjoy the game and happy coding! 🎮🐍","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanad-80%2Fcli_snake_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohanad-80%2Fcli_snake_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanad-80%2Fcli_snake_game/lists"}