{"id":19973343,"url":"https://github.com/jsmith/battleship","last_synced_at":"2025-08-24T09:18:17.872Z","repository":{"id":131850963,"uuid":"86111300","full_name":"jsmith/battleship","owner":"jsmith","description":"A battleship game built with pure Java","archived":false,"fork":false,"pushed_at":"2019-03-03T20:49:31.000Z","size":11937,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T18:31:04.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/jsmith.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":"2017-03-24T21:16:58.000Z","updated_at":"2019-03-03T20:49:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e302e67-718c-4ffa-90c2-9a70fadf705f","html_url":"https://github.com/jsmith/battleship","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsmith/battleship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Fbattleship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Fbattleship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Fbattleship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Fbattleship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsmith","download_url":"https://codeload.github.com/jsmith/battleship/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsmith%2Fbattleship/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271834161,"owners_count":24830724,"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-08-24T02:00:11.135Z","response_time":111,"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":[],"created_at":"2024-11-13T03:11:15.363Z","updated_at":"2025-08-24T09:18:17.849Z","avatar_url":"https://github.com/jsmith.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battleship\n![Game Play](https://github.com/jacsmith21/battleship/blob/master/battleship.png)\n\u003e Battleship game using Java\n\n## General\nThe main file of ther server is BattleShip, it will print the port number for the two clients. The first to connect will be player one, the second will be player two.\n\nThe main file for running a client is Client, enter the port given by the server and the server IP address when prompted to connect.\n\n## Running the Server\nJust use the following commands!\n```\ncd server/\njavac *.java\njava -classpath \"sqlite-jdbc-3.16.1.jar:$CLASSPATH\" BattleShip\n```\n\n## Running the Client\nAfter launching the server, run two instances of the client.\n\nUse the following commands to launch one client.\n```\n# this will download the theme song. It's 50mb because it's a WAV... sorry\n./setup.sh\n\ncd client/\njavac *.java\njava Client\n```\n\n\u003e WARNING: Registration seems to be broken. When logging in, use \"jacob\" as the username and \"jacob\" as the password.\n\n\n## Screenshot\n![Regular Gameplay](https://i.ibb.co/n1PYRpb/battleship.png)\n\n\u003e Regular Gameplay\n\n\u003cbr/\u003e\n\n![Dark Mode](https://i.ibb.co/wRHbnj6/darkbattlesihp.png)\n\n\u003e Dark Mode\n\n\u003cbr/\u003e\n\n![Leaderboards](https://i.ibb.co/jMfzPKQ/leaderboard.png)\n\n\u003cbr/\u003e\n\n\u003e Leaderboards\n\n## Other Important Information\n1. Returning to the home screen after signing in or registering will cause errors in the game. The protocol does not support moving back and forth between game states. \n2. Returning home at the leaderboards screen is possible as the server will restart each time and run until the connection is broken with a client. Returning home at this stage in the game will reset everything and you will be able to play again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmith%2Fbattleship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsmith%2Fbattleship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmith%2Fbattleship/lists"}