{"id":18432361,"url":"https://github.com/naturalclar/battleship-node","last_synced_at":"2025-04-14T01:24:27.983Z","repository":{"id":97449072,"uuid":"121698161","full_name":"Naturalclar/battleship-node","owner":"Naturalclar","description":"A Simple Battleship Game made with Node.js","archived":false,"fork":false,"pushed_at":"2018-10-16T03:23:04.000Z","size":105,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T09:27:19.226Z","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/Naturalclar.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":"2018-02-16T00:01:18.000Z","updated_at":"2019-11-28T05:23:43.000Z","dependencies_parsed_at":"2023-06-05T22:45:16.661Z","dependency_job_id":null,"html_url":"https://github.com/Naturalclar/battleship-node","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/Naturalclar%2Fbattleship-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naturalclar%2Fbattleship-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naturalclar%2Fbattleship-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Naturalclar%2Fbattleship-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Naturalclar","download_url":"https://codeload.github.com/Naturalclar/battleship-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805717,"owners_count":21164375,"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-11-06T05:28:20.167Z","updated_at":"2025-04-14T01:24:27.963Z","avatar_url":"https://github.com/Naturalclar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML Battle Ship\n\nA Simple In-Browser Battleship Game.\n\nThis application is made with HTML, CSS, JS, without use of other frameworks or external libraries.\n\nNodeJS is used to serve the application, however, most of the functions are done on the client's side.\n\nYou can see the demo app running [here](https://nc-simple-battleship.now.sh).\n\n## Getting Started\n\n### Prerequisite\n\nYou will need to have [Node.js](https://nodejs.org/) installed on your computer.\n\n### Clone the repository\n\n`git clone https://github.com/Naturalclar/battleship-node.git`\n\n### Running the App\n\nYou can run the application by entering the following command.\n\n`npm start`\n\nThe application will be running at `localhost:3000`.\n\n## Flow of the App\n\nThis game is a simple game of battleship, designed for 2 players.\n\nEach players will set up 5 different battleships on their grid.\n\nPlayers will then take turns hitting each other's grid to try to sink their battleships.\n\nWhen one person sinks all of opponent's battleships, that player will be victorious.\n\nThis game has 4 main states:\n\n- Initial Screen\n  - Where you will enter the name of participants\n- SetUp Screen\n  - Where each players will set up their battleships\n  - As of current state, this game is meant to be played on a single window. You will need to kindly ask the other player to not look at your screen while setting up the board.\n- Battle Screen\n  - Where each players will take turns trying to hit the opponent's battleships.\n- Win Screen\n  - Where the winner is displayed, and you can chose to restart the game.\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalclar%2Fbattleship-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalclar%2Fbattleship-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalclar%2Fbattleship-node/lists"}