Skip to content

Latest commit

 

History

History
108 lines (71 loc) · 3.93 KB

File metadata and controls

108 lines (71 loc) · 3.93 KB

Software Engineering Project 2021

Group: AM20

Master of Renaissance Board Game is the final test of "Software Engineering", course of "Computer Science Engineering" held at Politecnico di Milano (2020/2021).
Teacher: Alessandro Margara

Implemented Functionalities

Functionality Status
Basic rules ✔️
Complete rules ✔️
Socket ✔️
CLI ✔️
GUI ✔️
Multiple games ✔️
Resilience to Disconnections (single player and multiplayer) ✔️

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.

Server

The Server can be run with the following command:

> java -jar Server.jar 

This command can be followed by the following argument:

-port: followed by the desired port number between MIN_PORT and MAX_PORT as argument; (for example: -port 1234). If you run it without the port, it will ask you the port.

MIN_PORT MAX_PORT
1024 65535

Client

CLI

The CLI can be run with the following command:

> java -jar Client.jar -cli

GUI

Connection to the server

Senza nome

Main Board

alt text

Card Purchasing Phase

alt text

Taking Resources from Market

alt text

The GUI can be run with the following command:

> java.exe -jar Client.jar -gui

You can also run the Client with the following command:

> java -jar Client.jar 

This command can be followed by the following argument:

-cli: this command sets the Client on Command Line Interface (CLI) mode.
-gui: this command sets the Client on Graphical User Interface (GUI) mode. (in this case you have to run with java.exe, see above)
-default: to connect to the server using the server port and the IP address saved in the ClientConnection.json file

If you run, for example without -default, the command java -jar Client.jar -cli, it will ask you the server port and the ip address.
If you run the commands without any arguments, it will also ask you which view interface you want to use.

For the best user experience, it is suggested to use WSL2 (in full screen) to run the Client (CLI) and the server, with the above commands. To run the GUI you could also run it from the Windows' Command Prompt. To not have problems with it and to see it correctly, you have to set the Windows setting "Change the dimension app" with the number 100%.

Settings

Tools

StarUML - UML Diagram
Maven - Dependency Management
IntelliJ - IDE
Swing - for the creation of the GUI

License

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