- Prof: Alessandro Margara - Politecnico di Milano
- Group: AM19
- Grade: 30/30
-
Laura Colazzo (@lauracolazzo)
laura.colazzo@mail.polimi.it -
Dennis De Maria (@dennydemaria)
dennis.demaria@mail.polimi.it -
Filippo Del Nero (@FilippoDelNero)
filippogiovanni.delnero@mail.polimi.it
The project was part of the final evaluation for Bachelor of Science in Computer Engineering course at Politecnico di Milano.
The specifications required to develop a Java application resembling an existing board game by Cranio Creations called Eriantys (full rules available here).
The project is a client-server application that supports the complete game's rules for the two-player and three-player mode on both CLI e GUI. It also supports two advanced functionalities, including character cards implementation and persistence of the game state.
Regarding persistence, the functionality was implemented such that the storing procedure of the application state happens at the end of each round. It means that the first saving happens only once the login phase has ended and all players played their first round. Information about an in progress match are stored in the same directory as the .jar file. When a match is completed, the stored match is automatically deleted.
In case a game is interrupted due to fatal errors, the server needs to be restarted before being able to resume the previous match or before starting a new one.
| Functionality | State |
|---|---|
| Basic rules | 🟢 |
| Complete rules | 🟢 |
| Communication Protocol | 🟢 |
| GUI | 🟢 |
| CLI | 🟢 |
| AF 1: Character cards | 🟢 |
| AF 2: Persistence | 🟢 |
| AF 3: - | 🔴 |
🔴 Uninitiated 🟢 Completed 🟡 Work in progress
| Package | Class coverage | Method coverage | Line coverage |
|---|---|---|---|
| Model | 100% | 85% | 88% |
| Controller* | 75% | 41% | 20% |
*Tests were made only where network was not involved
To run the application in server mode you need to write the following command:
java -jar AM19.jar -s [port number]
To run the application as client in CLI mode you need to write the following command:
java -jar AM19.jar -cli
To run the application as client in GUI mode you can double click on the .jar file or you can write the following command:
java -jar AM19.jar
/pic6253341.jpg)