{"id":24778470,"url":"https://github.com/changerd/oopsnake","last_synced_at":"2025-03-24T02:29:35.281Z","repository":{"id":247108287,"uuid":"384221196","full_name":"changerd/OOPSnake","owner":"changerd","description":"console-based implementation of the classic Snake game","archived":false,"fork":false,"pushed_at":"2024-07-25T20:58:34.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T08:37:29.253Z","etag":null,"topics":["charp","console","oop"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-08T18:53:39.000Z","updated_at":"2024-07-25T20:58:37.000Z","dependencies_parsed_at":"2024-07-06T17:03:15.465Z","dependency_job_id":null,"html_url":"https://github.com/changerd/OOPSnake","commit_stats":null,"previous_names":["changerd/oopsnake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FOOPSnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FOOPSnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FOOPSnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FOOPSnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changerd","download_url":"https://codeload.github.com/changerd/OOPSnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245198123,"owners_count":20576317,"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":["charp","console","oop"],"created_at":"2025-01-29T08:37:30.501Z","updated_at":"2025-03-24T02:29:35.261Z","avatar_url":"https://github.com/changerd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOPSnake\n\n**OOPSnake** is a console-based Snake game implemented in C#. This project serves as a practical example of object-oriented programming principles, demonstrating how to manage game state, handle user input, and implement game mechanics.\n\n## Features\n\n- **Snake Movement**: Control the snake using arrow keys to navigate the console window.\n- **Food Consumption**: Eat food to grow the snake and increase the score.\n- **Collision Detection**: The game ends when the snake collides with the walls or itself.\n- **Dynamic Walls**: Walls are represented as lines drawn at the edges of the console window.\n\n## How It Works\n\n- **Console Window Setup**: The game runs in an 80x25 console window with adjustable buffer size.\n- **Game Entities**: The game includes the snake, food, and walls, each managed by its respective class:\n  - `Snake`: Handles movement, growth, and collision detection.\n  - `FoodCreator`: Generates food items at random positions.\n  - `Walls`: Creates and manages the boundaries of the game.\n- **Game Loop**: The main game loop checks for collisions, processes user input, and updates the game state at regular intervals.\n\n## Getting Started\n\n1. **Clone the Repository**:\n   ```sh\n   git clone https://github.com/changerd/OOPSnake\n   ```\n2. **Open the Project**:\nOpen the OOPSnake project in Visual Studio or any C# compatible IDE.\n3. **Build and run**:\nBuild the project and run the application to start playing the game in the console window.\n\n## Gameplay\n- Use the arrow keys to control the direction of the snake.\n- Eat the food (represented by $) to grow the snake.\n- Avoid collisions with the walls and the snake's own body.\n- The game ends when the snake crashes into the walls or itself.\n  \n   \n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangerd%2Foopsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchangerd%2Foopsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangerd%2Foopsnake/lists"}