add method to convert semester to board size

This commit is contained in:
Luca Conte 2024-11-30 18:39:41 +01:00
parent cecc44abf4
commit ab1aae7798
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ public class GameController {
// Connection timeout for client sockets in milliseconds
public static final int CONNECTION_TIMEOUT = 10 * 1000;
public static int semesterToBoardSize(int semester) {
return semester + 13;
}
public HashMap<String, Class<? extends OnlinePlayer>> supportedVersions = new HashMap<>(Map.of(
"1.1.0", OnlinePlayer_1_1_0.class
));