Skip to content

Client-Server implementation of the Santorini board-game.

Notifications You must be signed in to change notification settings

MirkoDeVita98/ing-sw-2020-Aspesi-Bettini-DeVita

Repository files navigation

Prova Finale Ingegneria del Software 2020

Functionality State
Basic rules GREEN
Complete rules GREEN
Socket GREEN
GUI GREEN
CLI GREEN
Multiple games GREEN
Persistence RED
Advanced Gods GREEN
Undo RED

Santorini

Santorini Logo

Setup

  • 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.

Build

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.

Extra

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.

Tools

License

This project is developed in collaboration with Politecnico di Milano and Cranio Creations.

About

Client-Server implementation of the Santorini board-game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published