add method to convert semester to board size
This commit is contained in:
parent
cecc44abf4
commit
ab1aae7798
|
@ -13,6 +13,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
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue