From f65449df56ac7ca854229af17e49eb29af6a2e98 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 2 Dec 2021 17:23:48 +0100 Subject: [PATCH] eroorMessage method prinlText Output minorly changed --- src/ch/zhaw/catan/Parser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch/zhaw/catan/Parser.java b/src/ch/zhaw/catan/Parser.java index 6cf7edf..5507656 100644 --- a/src/ch/zhaw/catan/Parser.java +++ b/src/ch/zhaw/catan/Parser.java @@ -28,14 +28,14 @@ public class Parser { public HashMap gameStart(){ HashMap 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(){