{"id":13756513,"url":"https://github.com/dmitryshelomanov/snake","last_synced_at":"2025-05-10T03:32:05.161Z","repository":{"id":41885866,"uuid":"197567054","full_name":"dmitryshelomanov/snake","owner":"dmitryshelomanov","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-25T17:56:42.000Z","size":11826,"stargazers_count":36,"open_issues_count":7,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-25T18:42:01.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dmitryshelomanov.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":"2019-07-18T10:37:23.000Z","updated_at":"2025-02-25T17:55:38.000Z","dependencies_parsed_at":"2024-04-18T12:51:43.892Z","dependency_job_id":"2edb4d89-3247-439e-a3c8-e5513ee185ea","html_url":"https://github.com/dmitryshelomanov/snake","commit_stats":null,"previous_names":["userbq201/snake"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitryshelomanov%2Fsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitryshelomanov%2Fsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitryshelomanov%2Fsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitryshelomanov%2Fsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitryshelomanov","download_url":"https://codeload.github.com/dmitryshelomanov/snake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253358107,"owners_count":21895972,"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":[],"created_at":"2024-08-03T11:00:45.941Z","updated_at":"2025-05-10T03:32:04.882Z","avatar_url":"https://github.com/dmitryshelomanov.png","language":"TypeScript","funding_links":[],"categories":["Examples"],"sub_categories":[],"readme":"# Snake Game 🤯\n\n[Try it 👻](https://dmitryshelomanov.github.io/snake/)\n\n[Stress test](https://dmitryshelomanov.github.io/snake/?cellSize=10\u0026fps=60\u0026isVisibleBoard=false\u0026snakeCount=40)\n\n![preview](preview.gif)\n\n## New Feature 🥳!\n\n- Added own to game\n- Added differents alghorithms\n- Added Code editor for custom user algorimth\n- Snakes have become very tenacious (without algorithm)\n- Config from URL params\n\n## Introduction\n\nSimple snake game with bot wich looking for shorter path to target\n\nYour opportunities\n\n- Toggle different settings\n- Add self to game\n- Add bricks to arbitrary place\n- Use different search algorighms\n\nFeature\n\n- change FPS\n- algorithm visualization\n\nNotes\n\n_Use keyword [/_ Note:](https://github.com/dmitryshelomanov/snake/search?q=%2F*+Note%3A\u0026unscoped_q=%2F*+Note%3A) if you want to read algorigthm details\\*\n\n## URL Params\n\n- \u003cb\u003ecellSize\u003c/b\u003e: number = 50 - Cell with/height\n- \u003cb\u003epageWidth/pageHeight\u003c/b\u003e: number = window size - Canvas size\n- \u003cb\u003efps\u003c/b\u003e: number = 15 - frame tick\n- \u003cb\u003eborderSize\u003c/b\u003e: number = 1 - cell border size\n- \u003cb\u003efoodCount\u003c/b\u003e: number = 50 - food count\n- \u003cb\u003esnakeCount\u003c/b\u003e: number = 1 - snake count\n- \u003cb\u003eisVisibleBoard\u003c/b\u003e: boolean = true - board visbile state\n\n## Perfomance warning\n\nVisualization is not designed for a large number of objects\n\nI can add deep lvl for alghoritms and this will increase productivity but I can't optimize react renders, but can controll visible state for board\n\n### Data information\n\n- Without sidebar\n\nSnakes count - 100\nFoos count - 100\n\nrenderLoop completed for 0.40ms and logicLoop - for 5ms\n\n- With sidebar\n\nSnakes count - 100\nFoos count - 100\n\nrenderLoop completed for 0.40ms, logicLoop - for 40ms and react took 300-400 ms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitryshelomanov%2Fsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitryshelomanov%2Fsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitryshelomanov%2Fsnake/lists"}