Network and Frontend #10

Merged
lgc merged 29 commits from ole into main 2024-12-03 12:13:28 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit ab1aae7798 - Show all commits

View File

@ -12,6 +12,10 @@ public class GameController {
// Connection timeout for client sockets in milliseconds // Connection timeout for client sockets in milliseconds
public static final int CONNECTION_TIMEOUT = 10 * 1000; 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( public HashMap<String, Class<? extends OnlinePlayer>> supportedVersions = new HashMap<>(Map.of(
"1.1.0", OnlinePlayer_1_1_0.class "1.1.0", OnlinePlayer_1_1_0.class