{"id":18927872,"url":"https://github.com/0xabdulkhaliq/battleship","last_synced_at":"2025-09-05T03:30:53.303Z","repository":{"id":208575557,"uuid":"718168873","full_name":"0xabdulkhaliq/battleship","owner":"0xabdulkhaliq","description":"Command your fleet and conquer the seas in our Battleship showdown!","archived":false,"fork":false,"pushed_at":"2024-12-01T12:26:59.000Z","size":408,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T22:05:18.733Z","etag":null,"topics":["animation","battleship","css","es6-modules","html","jest","npm","tdd","webpack"],"latest_commit_sha":null,"homepage":"https://battleship-0xabdulkhaliq.vercel.app","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/0xabdulkhaliq.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":"2023-11-13T14:25:35.000Z","updated_at":"2024-12-01T12:27:40.000Z","dependencies_parsed_at":"2024-08-14T03:49:45.176Z","dependency_job_id":null,"html_url":"https://github.com/0xabdulkhaliq/battleship","commit_stats":null,"previous_names":["0xabdulkhalid/battleship","0xabdulkhaliq/battleship"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xabdulkhaliq/battleship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xabdulkhaliq%2Fbattleship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xabdulkhaliq%2Fbattleship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xabdulkhaliq%2Fbattleship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xabdulkhaliq%2Fbattleship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xabdulkhaliq","download_url":"https://codeload.github.com/0xabdulkhaliq/battleship/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xabdulkhaliq%2Fbattleship/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273707122,"owners_count":25153701,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["animation","battleship","css","es6-modules","html","jest","npm","tdd","webpack"],"created_at":"2024-11-08T11:21:12.489Z","updated_at":"2025-09-05T03:30:48.291Z","avatar_url":"https://github.com/0xabdulkhaliq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://readme-typing-svg.herokuapp.com?font=Space+Grotesk\u0026weight=600\u0026size=40\u0026pause=\u0026color=000\u0026center=true\u0026vCenter=true\u0026repeat=false\u0026random=false\u0026width=280\u0026height=60\u0026lines=Battleship\"\u003e\n    \u003cimg alt=\"Battleship\" src=\"https://readme-typing-svg.herokuapp.com?font=Space+Grotesk\u0026weight=600\u0026size=40\u0026pause=\u0026color=FFFFFF\u0026center=true\u0026vCenter=true\u0026repeat=false\u0026random=false\u0026width=280\u0026height=60\u0026lines=Battleship\"\u003e\n  \u003c/picture\u003e\n\u003cbr\u003e\n\n**❝** Command your fleet and conquer the seas in our Battleship showdown! **❞**\n\n\u003cbr\u003e\n  \u003cp\u003e\n    ❯ \u0026nbsp;\n    \u003ca href=\"https://battleship-0xabdulkhaliq.vercel.app/\"\u003eView Demo\u003c/a\u003e\n    \u0026nbsp;·\u0026nbsp;\n    \u003ca href=\"https://github.com/0xabdulkhaliq/battleship/issues\"\u003eReport Bug\u003c/a\u003e\n    \u0026nbsp;·\u0026nbsp;\n    \u003ca href=\"https://github.com/0xabdulkhaliq/battleship/issues\"\u003eRequest Feature\u003c/a\u003e\n     \u0026nbsp; ❮\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align='center'\u003e\n\u003cimg src='./design/preview.webp' alt='Mobile Preview'\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## Project Overview\n- Battleship project was crafted with the main goal of exploring **Test-Driven Development (TDD)** using **Jest**. \n- Built during partial completion of Odin Project's Full-Stack JavaScript Path.\n- Each essential modules like Player, Gameboard, and Ship were meticulously tested before diving into the user interface (UI) development. \n- This approach ensures a robust foundation, allowing for a smooth and reliable gaming experience.\n- I have additional features to incorporate; however, due to time constraints, I will address them in the future.\n\n\u003cbr\u003e\n\n## Learn to Play Battleship\n- If you're already familiar with the rules of Battleship, you can skip this section. \n- However, if you're new to the game or need a quick refresher, you can read the [Game's Manual](https://en.wikipedia.org/wiki/Battleship_(game)) on Wikipedia.\n- For a visual guide, check out this [video tutorial](https://youtu.be/RY4nAyRgkLo) on Youtube.\n\n\u003cbr\u003e\n\n## Installation\n\n\u003e [!NOTE]  \n\u003e If you prefer not to install it locally, you can also access the [live demo](https://battleship-0xabdulkhaliq.vercel.app/) version\n\nTo set up the Battleship Application locally, follow these steps:\n\n1. Clone the GitHub repository to your local machine:\n\n   ```bash\n   git clone https://github.com/0xabdulkhaliq/battleship.git\n   ```\n\n2. Navigate to the project's directory:\n\n   ```bash\n   cd battleship\n   ```\n\n3. Install the project's dependencies using npm:\n\n   ```bash\n   npm install\n   ```\n\n4. Build the project to bundle JavaScript, minify HTML and CSS, and move images:\n\n   ```bash\n   npm run build\n   ```\n\n5. The build files can be found on `dist` (distribution) directory.\n\n\u003cbr\u003e\n\n## Pagespeed Insights Score\n  \n- ||\n  | :-----: |\n  |  \u003cb\u003eOverall Score 99.4%, Average of Mobile and Desktop\u003c/b\u003e\u003cbr\u003e[ Mobile devices score is only shown below ] |\n  | |\n  | \u003cimg src='./design/pagespeed-insights-score.svg' alt='Scoreboard'\u003e |\n  | |\n  | Check out [**Pagespeed Insights**](https://pagespeed.web.dev/analysis/https-battleship-0xabdulkhaliq-vercel-app/88ptn9rxjc?form_factor=mobile) to get live score |\n  ||\n\n\u003cbr\u003e\n\n## Built With\n\n\u003cdiv align=center\u003e\n\n![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge\u0026logo=html5\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge\u0026logo=css3\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![JavaScript](https://img.shields.io/badge/ES6%20Modules%20-%23F7DF1E.svg?style=for-the-badge\u0026logo=javascript\u0026logoColor=black) \u0026nbsp;\u0026nbsp;![Webpack](https://img.shields.io/badge/webpack-%238DD6F9.svg?style=for-the-badge\u0026logo=webpack\u0026logoColor=black) \u0026nbsp;\u0026nbsp;![html-minifier](https://img.shields.io/badge/html%20minifier-A90533?style=for-the-badge\u0026logo=html5\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![CSS3](https://img.shields.io/badge/css_minifier-2C2D72.svg?style=for-the-badge\u0026logo=css3\u0026logoColor=white)\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## Tools Used\n\n\u003cdiv align=center\u003e\n  \n![NPM](https://img.shields.io/badge/npm-CB3837?style=for-the-badge\u0026logo=npm\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Google](https://img.shields.io/badge/google-DA4437?style=for-the-badge\u0026logo=google\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Prettier](https://img.shields.io/badge/prettier-1A2C34?style=for-the-badge\u0026logo=prettier\u0026logoColor=F7BA3E) \u0026nbsp;\u0026nbsp;![Eslint](https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge\u0026logo=eslint\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Visual Studio Code](https://img.shields.io/badge/VS%20Code-0078d7.svg?style=for-the-badge\u0026logo=visual-studio-code\u0026logoColor=white)\n\n\u0026nbsp;\u0026nbsp;![Git](https://img.shields.io/badge/Git-F05032?style=for-the-badge\u0026logo=git\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Figma](https://img.shields.io/badge/Figma-F24E1E?style=for-the-badge\u0026logo=figma\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Jest](https://img.shields.io/badge/Jest-C21325?style=for-the-badge\u0026logo=jest\u0026logoColor=white) \u0026nbsp;\u0026nbsp;![Babel](https://img.shields.io/badge/Babel-F9DC3E?style=for-the-badge\u0026logo=babel\u0026logoColor=black)\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n## Let's Connect 👋\n\n\u003cdiv align=center\u003e\n\n  \u003ca href=\"https://linkedin.com/in/0xabdulkhaliq\" \u003e\n    \u003cimg src=\"https://img.shields.io/badge/linkedin%20Profile-%2300acee.svg?color=405DE6\u0026style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" alt=\"Linkedin Profile\"\u003e\n  \u003c/a\u003e\u0026nbsp;\u0026nbsp;\n\n  \u003ca href=\"mailto:0xabdulkhaliq@gmail.com\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/gmail-%23EA4335.svg?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\" alt=mail/\u003e\n  \u003c/a\u003e\u0026nbsp;\u0026nbsp;\n\n  \u003ca href=\"https://www.github.com/0xabdulkhaliq/\" \u003e\n    \u003cimg src=\"https://img.shields.io/badge/Github%20Profile-131313?style=for-the-badge\u0026logo=github\u0026logoColor=white\" alt=\"Github Profile\"\u003e\n  \u003c/a\u003e\n\n\u003c/div\u003e\n\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xabdulkhaliq%2Fbattleship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xabdulkhaliq%2Fbattleship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xabdulkhaliq%2Fbattleship/lists"}