{"id":22899789,"url":"https://github.com/follgad/snake-browser-game","last_synced_at":"2025-04-01T04:38:48.514Z","repository":{"id":193198313,"uuid":"688315115","full_name":"FOLLGAD/snake-browser-game","owner":"FOLLGAD","description":"🤖💻 Created by GPT Engineer","archived":false,"fork":false,"pushed_at":"2023-09-07T05:17:52.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T03:15:19.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/FOLLGAD.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}},"created_at":"2023-09-07T05:17:45.000Z","updated_at":"2023-09-07T05:17:57.000Z","dependencies_parsed_at":"2023-09-07T06:37:25.601Z","dependency_job_id":null,"html_url":"https://github.com/FOLLGAD/snake-browser-game","commit_stats":null,"previous_names":["follgad/snake-browser-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fsnake-browser-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fsnake-browser-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fsnake-browser-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fsnake-browser-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FOLLGAD","download_url":"https://codeload.github.com/FOLLGAD/snake-browser-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586108,"owners_count":20801026,"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-12-14T01:16:35.047Z","updated_at":"2025-04-01T04:38:48.480Z","avatar_url":"https://github.com/FOLLGAD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"To implement a single-player snake game running in the browser, we will need to create the following files:\n\n1. `public/index.html`: This file will contain the HTML structure of our game. It will include a game board and score display.\n2. `public/main.js`: This file will contain the JavaScript logic for our game. It will handle the game mechanics such as snake movement, food generation, collision detection, and score calculation.\n3. `public/style.css`: This file will contain the CSS styles for our game. It will style the game board, snake, food, and score display.\n4. `server.js`: This file will serve our static files and start our server.\n5. `package.json`: This file will contain the metadata about our project and its dependencies.\n\nLet's start by creating our `public/index.html` file:\n\npublic/index.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollgad%2Fsnake-browser-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollgad%2Fsnake-browser-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollgad%2Fsnake-browser-game/lists"}