A downloadable game

Server-Client Battleship game in a 10 x 10 grid. Each player has three ships that are 3 squares long. It has two applications: The server needs to be run once and the client for each player.

Each player will take a turn and try to guess the location of the opponent's ships. The player to sink all of the opponent ships first, wins.

Download

Download
BattleshipNetwork_Client.jar 1 MB
Download
BattleshipNetwork_Server.jar 1 MB

Install instructions

Download both jar files.
They are set to work for localhost and port 9876.
If you need to change this configuration, open the jar file (with any compression software) and modify the file config.dat file.
The file config.dathas the host and port information. By default the configuration  is localhost and 9876.

  • The host takes a IPv4 address or localhost.
  • The port takes an integer. The format is the following:
<host> 
<port> 

Make sure to compress the files on zip format with the .jar extension in the case you uncompressed them when editing the file.

The server needs to be run once (the program will remain working until it is manually stopped with a task manager program). It also needs to be run before the client starts a new game.

Leave a comment

Log in with itch.io to leave a comment.