Merge remote-tracking branch 'origin/main'

This commit is contained in:
schrom01 2021-12-03 08:34:57 +01:00
commit d233e5f67f
1 changed files with 4 additions and 6 deletions

View File

@ -25,10 +25,10 @@ public class Parser {
textTerminal.println(gameboard); textTerminal.println(gameboard);
} }
public void displayPlayerResourceStock(HashMap<Config.Resource, Integer> curruntPlayerResource){ public void displayPlayerResourceStock(HashMap<Config.Resource, Integer> currentPlayerResource){
textTerminal.println("You own the follwing Resources"); textTerminal.println("You own the follwing Resources");
for(Config.Resource resource : curruntPlayerResource.keySet()){ for(Config.Resource resource : currentPlayerResource.keySet()){
textTerminal.println(resource.name() + ":" + curruntPlayerResource.get(resource)); textTerminal.println(resource.name() + ":" + currentPlayerResource.get(resource));
} }
} }
@ -52,8 +52,6 @@ public class Parser {
public void thrownDices(int number){ public void thrownDices(int number){
textTerminal.println ("Dices have been thrown, the combined value is: " + number); textTerminal.println ("Dices have been thrown, the combined value is: " + number);
} }
public void playerTurn(Config.Faction faction) { public void playerTurn(Config.Faction faction) {
@ -73,7 +71,7 @@ public class Parser {
if (!give){ if (!give){
output = "receive"; output = "receive";
} }
return textIO.newEnumInputReader(Config.Resource.class).read("Which Resource would you like to " + give ); return textIO.newEnumInputReader(Config.Resource.class).read("Which Resource would you like to " + output );
} }
} }