Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
b75afdc6a0
|
@ -28,14 +28,14 @@ public class Parser {
|
|||
public HashMap<String, Integer> gameStart(){
|
||||
HashMap<String, Integer> gameStartValues = new HashMap<>();
|
||||
gameStartValues.put("NumberOfPlayers", textIO.newIntInputReader().withMinVal(2).withMaxVal(4).read("Number of players:"));
|
||||
gameStartValues.put("NumberOfWinPoints", textIO.newIntInputReader().withMinVal(5).withMaxVal(15).read("Winpoint needed for Victory:"));
|
||||
gameStartValues.put("NumberOfWinPoints", textIO.newIntInputReader().withMinVal(5).withMaxVal(15).read("Winpoints needed for Victory:"));
|
||||
return gameStartValues;
|
||||
}
|
||||
|
||||
public void giveCoordinatesForStructures(Config.Structure structure) {
|
||||
textTerminal.println("Please insert coordinates for " + structure);
|
||||
if(structure == Config.Structure.ROAD) {
|
||||
textTerminal.println("You are building a road, please first insert the start coordinate and when prompted again the coordinate of the end of the road.");
|
||||
textTerminal.println("Please first insert the start coordinate and when prompted again the coordinate of the end of the road.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class Parser {
|
|||
}
|
||||
|
||||
public void playerTurn(Config.Faction faction) {
|
||||
textTerminal.println("It is" + faction + "'s turn.");
|
||||
textTerminal.println("It is " + faction.name() + "'s turn.");
|
||||
}
|
||||
|
||||
public void errorMessage(){
|
||||
|
|
Loading…
Reference in New Issue