Siedler Class minor bug fixes

This commit is contained in:
Leonardo Brandenberger 2021-12-03 08:52:26 +01:00
parent 6e1c06f769
commit c387420ca8
1 changed files with 1 additions and 8 deletions

View File

@ -1,15 +1,8 @@
package ch.zhaw.catan; package ch.zhaw.catan;
import org.beryx.textio.TextIO;
import org.beryx.textio.TextIoFactory;
import org.beryx.textio.TextTerminal;
import java.util.HashMap; import java.util.HashMap;
import java.util.Random; import java.util.Random;
import static ch.zhaw.catan.Command.*;
import static ch.zhaw.catan.Command.QUIT;
public class Siedler { public class Siedler {
public static void main(String[] args) { public static void main(String[] args) {
@ -26,7 +19,7 @@ public class Siedler {
throwDice(game, parser); throwDice(game, parser);
diceThrown = true; diceThrown = true;
} }
parser.displayPlayerResourceStock(game.getCurruntPlayerResource()); parser.displayPlayerInfo(game.getCurrentPlayerResource(),1);
switch (parser.getAction()) { switch (parser.getAction()) {
case NEXTPLAYER: case NEXTPLAYER:
Config.Faction winner = game.getWinner(); Config.Faction winner = game.getWinner();