Fix Method soutDistribution in SiedlerGameTest

This commit is contained in:
schrom01 2021-12-10 12:13:39 +01:00
parent 470666ed75
commit 7e9fa8e6a8
1 changed files with 6 additions and 4 deletions

View File

@ -229,15 +229,17 @@ public class SiedlerGameTest {
public void TestGameAfterSetupPhase() { public void TestGameAfterSetupPhase() {
SiedlerGame game = gameAfterSetupPhase(); SiedlerGame game = gameAfterSetupPhase();
System.out.println(game.getBoard().getTextView());
throwDiceSeveralTimes(game, 5, 5); throwDiceSeveralTimes(game, 5, 5);
throwDiceSeveralTimes(game, 5, 5); throwDiceSeveralTimes(game, 5, 5);
throwDiceSeveralTimes(game, 5, 5); throwDiceSeveralTimes(game, 5, 5);
throwDiceSeveralTimes(game, 5, 5); throwDiceSeveralTimes(game, 5, 5);
throwDiceSeveralTimes(game, 5, 5); throwDiceSeveralTimes(game, 5, 5);
game.switchToNextPlayer(); //game.switchToNextPlayer();
throwDiceSeveralTimes(game, 6, 5); //throwDiceSeveralTimes(game, 6, 5);
//throwDiceSeveralTimes(game, 6, 5); //throwDiceSeveralTimes(game, 6, 5);
//throwDiceSeveralTimes(game, 6, 5); //throwDiceSeveralTimes(game, 6, 5);
//throwDiceSeveralTimes(game, 6, 5); //throwDiceSeveralTimes(game, 6, 5);
@ -259,9 +261,9 @@ public class SiedlerGameTest {
//TEMPORARY METHOD, WILL BE REMOVED SOON //TEMPORARY METHOD, WILL BE REMOVED SOON
private static void soutDistribution(SiedlerGame game) { private static void soutDistribution(SiedlerGame game) {
System.out.println("\n\nVerteilung \n\n"); System.out.println("\n\nVerteilung \n\n");
for (Config.Faction faction: game.getPlayerFactions()) { for (int i = 0 ; i < game.getPlayerFactions().size(); i++) {
HashMap<Config.Resource, Integer> resources = game.getCurrentPlayerResource(); HashMap<Config.Resource, Integer> resources = game.getCurrentPlayerResource();
System.out.println(faction.toString() + "\n"); System.out.println(game.getCurrentPlayerFaction().toString() + "\n");
System.out.println(" BRICK " + resources.get(Config.Resource.BRICK).toString()); System.out.println(" BRICK " + resources.get(Config.Resource.BRICK).toString());
System.out.println(" GRAIN " + resources.get(Config.Resource.GRAIN)); System.out.println(" GRAIN " + resources.get(Config.Resource.GRAIN));
System.out.println(" LUMBER " + resources.get(Config.Resource.LUMBER)); System.out.println(" LUMBER " + resources.get(Config.Resource.LUMBER));