{"id":15622761,"url":"https://github.com/nbaztec/battleships","last_synced_at":"2025-10-03T13:42:16.574Z","repository":{"id":145695246,"uuid":"266412508","full_name":"nbaztec/battleships","owner":"nbaztec","description":"Go implementation for the popular battleship game","archived":false,"fork":false,"pushed_at":"2020-06-16T15:40:52.000Z","size":651,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T16:32:04.778Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbaztec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-05-23T20:17:07.000Z","updated_at":"2020-06-16T15:40:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a78fa289-5b7e-40ee-aa8b-c3d206d791bb","html_url":"https://github.com/nbaztec/battleships","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nbaztec/battleships","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaztec%2Fbattleships","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaztec%2Fbattleships/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaztec%2Fbattleships/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaztec%2Fbattleships/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbaztec","download_url":"https://codeload.github.com/nbaztec/battleships/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaztec%2Fbattleships/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260933432,"owners_count":23084956,"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-10-03T09:55:08.011Z","updated_at":"2025-10-03T13:42:16.489Z","avatar_url":"https://github.com/nbaztec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battleships\nGo implementation for the classic [battleship](https://en.wikipedia.org/wiki/Battleship_(game))  game. \n\nDemo site: battleships-dot-nbaztec.ey.r.appspot[dot]com\n\nThe frontend uses [jQuery](https://jquery.com/) and [Bootstrap](https://getbootstrap.com/).\n\n## Run \n```sh\n$ make run\n```\n\n## Gameplay\nGame can be played between 2 players. Visit the root url `http://localhost:8080` to start a game.\nThe  optional `gid` query parameter may be provided to specify the game room. If the `gid` parameter is omitted, a random `gid` will be generated.\n\nThe second player should visit the same game URL as specified in the UI (with the same `gid`). Once both players are on the same URL, the game begins.\nPlayers then set their respective battleships and press `Ready`. The ship orientation can be controlled via the provided button or the `Shift` Key. \nThe ship placement may be reset via the `Reset` button or by pressing the `Esc` key.\n\nOnce both players are ready, they take turns guessing the opponent's ship locations.\n\nThe game is over when either of the condition holds:\n   * Player sinks all of their opponent's ships\n   * Player chooses to `Resign`\n   \nOnce the game is finished, the players have an option to request `Rematch`\n\n\n## Resources\nAll packaged resources (sounds and icons) are available under their respective [CC License](https://creativecommons.org/licenses/by/3.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbaztec%2Fbattleships","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbaztec%2Fbattleships","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbaztec%2Fbattleships/lists"}