-
10617541 Marco Fasanella (@marcofasa)
[email protected] -
10610008 Elia Maggioni (@Eliaxie)
[email protected] -
10625965 Lucas Manini (@lmanini)
[email protected]
Functionality | Status |
---|---|
Basic rules | |
Complete rules | |
Socket | |
GUI | |
CLI | |
Multiple games | |
Persistence | |
Local Games | |
Load Games from storage | |
Parameters modifier |
Not Implemented
Implementing
Implemented
In order to create the jar files, it's sufficient to invoke the maven goal package. This will create in the deliverables/jar/ directory 2 jars, (PSP08-Client.jar and PSP08-Server.jar) which are the two starting points of, respectively, the client application and the server application.
In order to run the server application the latest version of Java must be used.
From the command line, setting the current working directory to the directory containing the jar, to run the server the command java -jar PSP08-Server.jar
must be used.
This will create a server application listening on ports 51214.
In order to change on which port the socket server will listen for incoming connections, the --port 'port number'
command line argument can be used.
TAG | Effect |
---|---|
--d | Enable debug mode |
--no-timeout | Disable heart-beat verification |
--port [port] | Change port from 51214 |
--h | Display help menu |
In order to run the client application the latest version of Java must be used and the JavaFX 12 libraries must be located somewhere on the computer.
Open a terminal in the same folder of the client jar and type the command java -jar PSP08-Client.jar
to start the application.
The default interface is GUI
TAG | Effect |
---|---|
--d | Enable debug mode |
--c | Start Client in Command Line Interface |
--h | Display help menu |
When a player connects to the server, a check whether the lobby has been already setup or not is run, in which case the player is inserted in the lobby with the other players waiting. If the lobby dimensions are still unset, meaning that he is the first player of a new Game, the client is asked to set them. The game starts when the lobby is full, and a new lobby is made available for other players to join.