{"id":21417458,"url":"https://github.com/aminumado/battleships","last_synced_at":"2026-04-28T21:33:48.574Z","repository":{"id":114064336,"uuid":"441987935","full_name":"AminuMado/battleships","owner":"AminuMado","description":"A battleship game made with vanilla javascript","archived":false,"fork":false,"pushed_at":"2022-05-07T15:12:50.000Z","size":4413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T21:27:21.458Z","etag":null,"topics":["html-css-javascript","jest","npm","tdd","webpack"],"latest_commit_sha":null,"homepage":"https://aminumado.github.io/battleships/","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/AminuMado.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,"zenodo":null}},"created_at":"2021-12-26T21:34:17.000Z","updated_at":"2022-05-06T23:14:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8370fc5-28dc-4907-bdda-dbf7ead23b0a","html_url":"https://github.com/AminuMado/battleships","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AminuMado/battleships","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AminuMado%2Fbattleships","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AminuMado%2Fbattleships/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AminuMado%2Fbattleships/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AminuMado%2Fbattleships/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AminuMado","download_url":"https://codeload.github.com/AminuMado/battleships/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AminuMado%2Fbattleships/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["html-css-javascript","jest","npm","tdd","webpack"],"created_at":"2024-11-22T19:15:36.727Z","updated_at":"2026-04-28T21:33:48.568Z","avatar_url":"https://github.com/AminuMado.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# battleships\n\n🔗 **Live preview:** \u003cp\u003e\u003ca href=\"https://aminumado.github.io/battleships/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eView the project here!\u003c/a\u003e 👀\u003c/p\u003e\n\n\u003ch3\u003eSummary\u003c/h3\u003e\n\n\u003cp\u003eThis is a Battleship Game where players take turn dropping bombs on each other until one of the players' ships are all sunk. \u003ca href=\"https://www.theodinproject.com/paths/full-stack-javascript/courses/javascript/lessons/battleship\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eThe Odin Project's\u003c/a\u003e javascript curriculum. The goal of this project was to learn how to use  test driven development with Jest and factory functions.\u003c/p\u003e\n\u003ch3\u003eDemo GIF\u003c/h3\u003e\n\n\u003ch4\u003eDesktop\u003c/h4\u003e\n\n![](./src/assets/DemoGif/demo.gif)\n\n### Functionality \u0026 Features\n\n- You can place your ships manually.\n- You can rotate your ships before placing it on your board.\n- `Randomize` button places all your ships randomly on your board for you.\n\n## Built with\n\n### Technologies\n\n- HTML\n- CSS\n- JavaScript \n\n\n### Tools\n\n- Visual Studio Code\n- Linux terminal\n- Git and GitHub\n- Npm\n- Webpack\n- prettier\n- eslint\n\n## Outcome\n\n- Used **ES6 Modules** for more modular code.\n- Used CSS3 **grid** and **flex** to create layout.\n- Used **Git** and **GitHub** for project management.\n- Used **Jest** for TDD\n- Used **webpack**\n\n## Summary\n\n### What I learned\n\n- ES6 Modules\n- Test Driven Development\n- Unit Testing with Jest\n\n### Future Fixes\n\n- possibly add a drag and drop feature\n- make AI smarter\n\n## Author\n\n👤 **AminuMado**\n\n- GitHub: [AminuMado](https://github.com/AminuMado)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminumado%2Fbattleships","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminumado%2Fbattleships","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminumado%2Fbattleships/lists"}