-
Andrea Aspesi (@AspesiAndrea)
[email protected] -
Matteo Bettini (@MatteoBettini)
[email protected] -
Mirko De Vita (@MirkoDeVita98)
[email protected]
Functionality | State |
---|---|
Basic rules | |
Complete rules | |
Socket | |
GUI | |
CLI | |
Multiple games | |
Persistence | |
Advanced Gods | |
Undo |
-
In the deliveries folder there are two multi-platform jar files, one to set the Server up and the other one to start the Client.
-
The Server can be run with the following command, as default it runs on port 4567:
> java -jar SantoriniServer.jar
This command can be followed by these arguments:
- -port: followed by the desired port number between MIN_PORT and MAX_PORT as argument;
- -v: to activate logging on the console;
- -log: followed by a file name, to activate logging both in the console and in the chosen file;
- -help: to get help.
-
The Client can be run with the following command:
> java -jar SantoriniClient.jar
- This command sets the Client on Graphical User Interface(GUI) mode, but it can be followed by -cli if the Command Line Interface(CLI) is preferred.
- The Server's IP and port to connect to can be specified during the execution.
Use maven to build jar files for both the Client and the Server by choosing the appropriate Maven Profile.
To build the Server, issue:
> mvn clean
> mvn package -P Server
To build the Client, issue:
> mvn clean
> mvn package -P Client
After these processes both jars can be found in the builds folder.
Two game-modes are implemented:
- Normal: the Server sends the possible moves/builds to the Client so that they are displayed to the Player during his/her turn.
- Hardcore: in this mode there are no suggestions and the Player can lose if he/she does not obey to Gods' rules.
This project is developed in collaboration with Politecnico di Milano and Cranio Creations.