Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.31 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.31 KB

BCH compliance

Second Project Distriuted Systems - 'NavalBattle.io'

A naval battle game implemented with a client-server tipology that follows the idea of the modern .io games: the game has no beggining nor end, it is always running. To know more about the game clone the repository and see the documentation.

Build Tips (Eclipse/IntelliJ)

During our development we used both Eclipse and IntelliJ for their easier use of run configurations, and other Full IDEs adavantages.

To build on these IDEs it is just needed to create a project from the folder and then defining Main.java as our main class.

Build Tips (Terminal)

# Linux
$ find -name "*.java" > sources.txt
$ javac @sources.txt

:: Windows
> dir /s /B *.java > sources.txt
> javac @sources.txt

Running

To start a Server, use the following command as an example:

$ java Main <PORT>
OR
In and IDE add arguments: game <PORT>

To start the Player, use the following command as an example:

$ java Main player <IP> <PORT>
OR
In and IDE add arguments: player <IP> <PORT>