{"id":36456548,"url":"https://github.com/code-game-project/number-guessing","last_synced_at":"2026-01-11T23:04:18.650Z","repository":{"id":110782707,"uuid":"523024868","full_name":"code-game-project/number-guessing","owner":"code-game-project","description":"A number guessing game.","archived":false,"fork":false,"pushed_at":"2023-04-13T05:46:57.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-19T16:45:28.181Z","etag":null,"topics":["beginner","game","go","number-guessing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-game-project.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":"2022-08-09T16:21:12.000Z","updated_at":"2023-04-10T00:11:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"67b15fab-b9a4-4d74-af2b-3fb904b27945","html_url":"https://github.com/code-game-project/number-guessing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-game-project/number-guessing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-game-project%2Fnumber-guessing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-game-project%2Fnumber-guessing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-game-project%2Fnumber-guessing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-game-project%2Fnumber-guessing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-game-project","download_url":"https://codeload.github.com/code-game-project/number-guessing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-game-project%2Fnumber-guessing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["beginner","game","go","number-guessing"],"created_at":"2026-01-11T23:04:17.992Z","updated_at":"2026-01-11T23:04:18.645Z","avatar_url":"https://github.com/code-game-project.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Number Guessing\n![CodeGame Version](https://img.shields.io/badge/CodeGame-v0.7-orange)\n![CGE Version](https://img.shields.io/badge/CGE-v0.4-green)\n\nA number guessing game.\n\n## Known instances\n\n- `games.code-game.org/number-guessing`\n\n## Usage\n\n```sh\n# Run on default port 8080\nnumber-guessing\n\n# Specify a custom port\nnumber-guessing --port=5000\n\n## Specify a custom port through an environment variable\nCG_PORT=5000 number-guessing\n```\n\n### Running with Docker\n\nPrerequisites:\n- [Docker](https://docker.com/)\n\n```sh\n# Download image\ndocker pull codegameproject/number-guessing:0.1\n\n# Run container\ndocker run -d --restart on-failure -p \u003cport-on-host-machine\u003e:8080 --name number-guessing codegameproject/number-guessing:0.1\n```\n\n## Event flow\n\n1. Send the `guess` command to make a guess.\n2. Receive either the `too_high`, the `too_low` or the `correct` event.\n\n## Building\n\n### Prerequisites\n\n- [Go](https://go.dev) 1.18+\n\n```sh\ngit clone https://github.com/code-game-project/number-guessing.git\ncd number-guessing\ngo build .\n```\n## License\n\nCopyright (C) 2022-2023 Julian Hofmann\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published\nby the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-game-project%2Fnumber-guessing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-game-project%2Fnumber-guessing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-game-project%2Fnumber-guessing/lists"}