{"id":16606320,"url":"https://github.com/farid-karimi/snake-game","last_synced_at":"2025-06-20T13:37:36.117Z","repository":{"id":148924276,"uuid":"606743736","full_name":"Farid-Karimi/Snake-Game","owner":"Farid-Karimi","description":"A simple Snake game programmed with c++ ","archived":false,"fork":false,"pushed_at":"2023-09-27T13:35:44.000Z","size":99,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T17:47:34.552Z","etag":null,"topics":["cli","cpp","game","game-development","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/Farid-Karimi.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}},"created_at":"2023-02-26T12:44:54.000Z","updated_at":"2024-10-30T10:51:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"83d74fb7-2ac2-4419-9933-7e9b77503a49","html_url":"https://github.com/Farid-Karimi/Snake-Game","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Farid-Karimi%2FSnake-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Farid-Karimi%2FSnake-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Farid-Karimi%2FSnake-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Farid-Karimi%2FSnake-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Farid-Karimi","download_url":"https://codeload.github.com/Farid-Karimi/Snake-Game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234352880,"owners_count":18818747,"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":["cli","cpp","game","game-development","snake-game"],"created_at":"2024-10-12T01:07:40.268Z","updated_at":"2025-01-17T11:10:12.718Z","avatar_url":"https://github.com/Farid-Karimi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :snake:Snake Game Report\n\n## Introduction\n\nThis report will discuss the design and implementation of a Snake game programmed in C++. The purpose of the game is to move the snake around the screen, eating \"food\" in order to grow and score points. The player must also avoid themselves, as this will cause them to lose the game.\n\n## Design\n\nThe game is designed using 4 primary functions where each function is responsible for a specific set of tasks. The game consists of the following objects:\n\n1. draw\n\n2. input\n\n3. logic\n\n4. setup\n\n   \n\n## Implementation\n\nThe game was implemented using the C++ programming language. The game loop was written using a while loop, which will run until the game is over. The loop contains code for getting user input, updating the position of the snake, and detecting collisions.\n\nThe code for updating the position of the snake is responsible for getting the user input, updating the position of the snake, and detecting any collisions with walls or itself. If a collision is detected, the game will end. The code for generating food pieces is responsible for randomly generating food pieces on the board and updating the score when the snake eats one. There is also a high score data that makes the game more competitive for the player.\n\n## Conclusion\n\nThis report discussed the design and implementation of a Snake game programmed in C++. The game loop was written using a while loop, and the code for updating the position of the snake and generating food pieces was also written. With this game, the player must move the snake around the board, eating food in order to grow and score points while avoiding the walls or themselves.\n\n----\n\n#### Winter 1401-1402\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarid-karimi%2Fsnake-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarid-karimi%2Fsnake-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarid-karimi%2Fsnake-game/lists"}