EdgarACarneiro / feup-sdis-navalBattle.io

Second project developed for 'Distributed Systems', a third year subject @FEUP. Made in collaboration with @afonsojramos, @LastLombax and @rjstorres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Second project developed for 'Distributed Systems', a third year subject @FEUP. Made in collaboration with @afonsojramos, @LastLombax and @rjstorres


Languages

Language:Java 100.0%