Skip to content

giovanni-vaccarino/JavaClientServerGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

681 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex Naturalis - GC05

Software engineering final project

Software Engineering Project 2024:

Members of the group GC05:

  • Zacchi Simone
  • Vaccarino Giovanni
  • Vacis Nicolò
  • Viganò Andrea

Implemented Features

Legend:

  • 🟢: implemented
  • 🔴: not implemented
Feature Status
Complete rules 🟢
TCP 🟢
RMI 🟢
CLI 🟢
GUI(FX) 🟢
Resilience 🟢
Chat 🟢
Multiple games 🟢
Persistence 🔴

Unit Test Coverage Data

Line Coverage:

  • Controller: 96%
  • Model: 96%

The screenshots can be found at deliverables/Test Coverage

JavaDoc

The JavaDoc can be easily generated from the IDE

Running the game

The jars can be found at deliverables/JARs

Running the Client

It is requested to insert the server ip. You can run the client using the following command:

java -jar <name_of_the_jar>.jar <server_ip>

Choosing the UI type

The GUI will start using no additional argument. Appending the argument -cli, a command line interface will be started.

java -jar <name_of_the_jar>.jar -cli

Choosing the comunication protocol

The default comunication protocol is RMI. Appending the argument -socket, the game will be started with tcp protocol.

java -jar <name_of_the_jar>.jar -socket

Running the client when JavaFX modules are not found

java --module-path <path_to_javafx_folder/javafx-sdk-21.0.3/lib> --add-modules javafx.controls,javafx.fxml -Dprism.order=sw -Dprism.verbose=true -Djava.awt.headless=false --add-exports=javafx.graphics/com.sun.javafx.util=ALL-UNNAMED -jar <name_of_the_jar>.jar

Running the Server

To start the server run the command:

java -jar <name_of_the_jar>.jar

About

Development of a client-server board game(Codex Naturalis), covering all phases of the software lifecycle, from the design to the testing. Communication implemented in both RMI and Socket. Implemented advanced functionalities such as Chat, Resiliency to disconnections and parallel multi-games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors