Lorenzo Carpaneto, Aniello De Santis, Lorenzo Innocenti
Feature | Description |
---|---|
Complete rule set | The game works for both the single-player and multi-player mode (up to 4 players) |
Multiple games | It is possible to play multiple games simultaneously. To each game is associated a gameId: to join a game the player needs to specify the gameId. |
Persistence | The game status is saved on the disk. If, during a game, the server should, for some reasons, shutdown, the players (if they do not close the application) will be able to rejoin the game when the server will start running again |
Local game | It is possible to play a single-player game without connecting to the server |
All the features are implemented for both CLI and GUI.
Execute from wsl or linux terminal with command: java -jar <path_to_cli.jar>
.
If shell is opened in the folder containing cli.jar:
java -jar ./cli.jar
CLI is correctly visualized only if the windows in which it is displayed is at least 120x30
characters.
Execute from shell (tested option: cmd) with command: java -jar <path_to_gui.jar>
.
If shell is opened in the folder containing gui.jar:
java -jar gui.jar
Due to copyright we cannot pack in this repository the provided graphics (thus also the jar). So we have stripped the graphics from the repository and the gui is no longer working. The implementation is still there however, the resources are missing. Maybe in the future we will add new graphics.
Execute from shell (tested option: cmd) with command: java -jar <path_to_server.jar>
.
If shell is opened in the folder containing server.jar:
java -jar server.jar
If you want to specify the port on which to run the server, pass as argument the port number java -jar <path_to_server.jar> <port_number>
.
E.g. If shell is opened in the folder containing server.jar:
java -jar server.jar 44000
Otherwise, the server will run on port: 16509
.
Please check to run the server on an available port, otherwise it will not start.
The first time you run the server (if run on Windows), the folders for this path will be created: C:\Users\<user_name>\AppData\Roaming\Local\MastersOfRenaissance_CarpanetoDeSantisInnocenti\tmp
.
Run only one server at a time on a device (otherwise there will be problems with persistence -> it always uses one specific folder to retrieve/save/delete data).
The implementation should be able to handle linux and macOS operating system as well, but it was tested only on Windows machine.
jar | (shell) java version |
---|---|
cli | (bash) 14.0.2 |
server | (cmd) 13.0.2, (cmd) 16.0.1 |