{"id":19456531,"url":"https://github.com/mogoatlhe/battleship","last_synced_at":"2026-04-10T07:32:38.275Z","repository":{"id":52239639,"uuid":"477004072","full_name":"Mogoatlhe/battleship","owner":"Mogoatlhe","description":"battleship game implemented in JS using TDD","archived":false,"fork":false,"pushed_at":"2023-08-27T23:16:26.000Z","size":7198,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T01:35:34.504Z","etag":null,"topics":["css3","eslint","html5","javascript","jest","webpack"],"latest_commit_sha":null,"homepage":"https://mogoatlhe.github.io/battleship","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/Mogoatlhe.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":"2022-04-02T09:12:35.000Z","updated_at":"2023-08-04T07:19:15.000Z","dependencies_parsed_at":"2024-11-10T17:27:48.764Z","dependency_job_id":null,"html_url":"https://github.com/Mogoatlhe/battleship","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogoatlhe%2Fbattleship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogoatlhe%2Fbattleship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogoatlhe%2Fbattleship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogoatlhe%2Fbattleship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mogoatlhe","download_url":"https://codeload.github.com/Mogoatlhe/battleship/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240654153,"owners_count":19835854,"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":["css3","eslint","html5","javascript","jest","webpack"],"created_at":"2024-11-10T17:17:29.911Z","updated_at":"2026-04-10T07:32:33.245Z","avatar_url":"https://github.com/Mogoatlhe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battleship\n\n## Purpose\n\nImplementing the Battleship [game](\u003chttps://en.wikipedia.org/wiki/Battleship_(game)\u003e) in JavaScript following TDD principles using the Jest testing framework.\n\n## Requirements\n\n- [ ] Allow players to take turns during the game\n- [ ] Make the computer capable of making random plays\n  - it should not make the same move twice\n  - it should be smart (it should try adjacent slots after placing a 'hit')\n- [ ] End the game once one player's ships have all been sunk\n- OPTIONAL:\n  - [ ] Create a two player option that lets users take turns by passing the device back and forth\n    - [ ] make sure the game is playable on a mobile device\n    - [ ] implement a \"pass device\" feature\n\n## Technologies\n\n- HTML5\n- CSS3\n- JavaScript\n\n## Live Version\n\nhttps://mogoatlhe.github.io/battleship - Not yet live\n\n## Design\n\n![](src/images/design.png)\n\n## Lessons Learnt / Challenges Faced\n\n- TDD\n- Learnt how dragging and dropping HTML elements works\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogoatlhe%2Fbattleship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmogoatlhe%2Fbattleship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogoatlhe%2Fbattleship/lists"}