Finished Parser winpoints min 3 set.

This commit is contained in:
Leonardo Brandenberger 2021-12-10 11:00:15 +01:00
parent f30c145dcf
commit 3192039ca4
1 changed files with 1 additions and 2 deletions

View File

@ -75,9 +75,8 @@ public class Parser {
public HashMap<String, Integer> gameStart() { public HashMap<String, Integer> gameStart() {
HashMap<String, Integer> gameStartValues = new HashMap<>(); HashMap<String, Integer> gameStartValues = new HashMap<>();
gameStartValues.put("NumberOfPlayers", textIO.newIntInputReader().withMinVal(Config.MIN_NUMBER_OF_PLAYERS).withMaxVal(4).read("Number of players:")); gameStartValues.put("NumberOfPlayers", textIO.newIntInputReader().withMinVal(Config.MIN_NUMBER_OF_PLAYERS).withMaxVal(4).read("Number of players:"));
gameStartValues.put("NumberOfWinPoints", textIO.newIntInputReader().withMinVal(5).withMaxVal(15).read("Winpoints needed for Victory:")); gameStartValues.put("NumberOfWinPoints", textIO.newIntInputReader().withMinVal(3).read("Winpoints needed for Victory:"));
return gameStartValues; return gameStartValues;
//Todo find out how many max and min Win Points
} }
/** /**