Here's a video demo of how it looks!
- Regole complete
- CLI
- GUI
- Socket
- 2 Advanced Features
- Multiple matches
- Advanced gods
Final version of the project is in /delieveries/final/
directory.
-
Clone this repo:
git clone [email protected]:ferrohd/ing-sw-2020-ferrara-franchini-fusco.git
-
Install the required dependencies to the local maven repository by running this script:
-
Windows:
./install-maven-dependencies.bat
-
Unix:
./install-maven-dependencies.sh
-
-
Compile the project with maven using:
mvn package
-
The two jar (santorini-client.jar and santorini-server.jar) are in the
/target
directory.
In order to generate the documentation, you can simply run the following command:
mvn javadoc:javadoc
The output directory will be in the /target
directory.
Once you've acquired the jar files, either by compiling them yourself or downloading them from the delieveries/final/jar/
directory on GitHub, you can run them the usual way:
-
To start the server, use:
java -jar santorini-server.jar
-
To start the client, use:
java -jar santorini-server.jar
If you need to change the client default server address or want to play with the CLI version, you have two options:
By default, the client will look for a file called settings.txt
in the same folder of the jar file. You can create the file yourself and copy the following settings.
interface: gui
hostname: 127.0.0.1
port: 42069
Replace gui
with cli
if you want to start the CLI insted of the GUI.
Otherwise, you can use the following flags to override the default configs or even the settings.txt
file:
-
--gui
starts the GUI. -
--cli
starts the CLI. -
--address <address>
specify the server address (IP or URL). -
--port <port>
speficy the server port (a number). Default one is42069
. -
--config <path to settings>
specify a custom path to asettings.txt
file.