Skip to content

marcofasa/ing-sw-2021-Fasanella-Maggioni-Manini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ing-sw-2021-Fasanella-Maggioni-Manini

Gruppo 08

Implemented Functionalities

Functionality Status
Basic rules GREEN
Complete rules GREEN
Socket GREEN
GUI GREEN
CLI GREEN
Multiple games GREEN
Persistence GREEN
Local Games RED
Load Games from storage RED
Parameters modifier RED

Legend

RED Not Implemented     YELLOW Implementing    GREEN Implemented

Creating the artifacts

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.

Running the server

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

Running the client

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

Lobby

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages