Skip to content

Commit

Permalink
Tweak output
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed Dec 15, 2023
1 parent 26740d9 commit 3c77e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public KaiserEnginePrinter(KaiserEngine engine) {
public String getStatus(int round) {
StringBuilder status = new StringBuilder();

status.append(ANSI_GREEN).append("STATUS nach Runde ").append(round).append(ANSI_RESET).append(System.lineSeparator());
status.append(ANSI_GREEN).append("### STATUS nach Runde ").append(round).append(ANSI_RESET).append(System.lineSeparator());
status.append(ANSI_CYAN).append("Die Einwohnerzahl ist jetzt ").append(this.engine.getPopulation()).append(ANSI_RESET).append(System.lineSeparator());
status.append(ANSI_CYAN).append("Die Stadt besitzt an Land ").append(this.engine.getArea()).append(" Hektar").append(ANSI_RESET).append(System.lineSeparator());
status.append(ANSI_CYAN).append("Die Ernte betrug ").append(this.engine.getYield()).append(" DZ/Hektar").append(ANSI_RESET).append(System.lineSeparator());
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/de/aikiit/game/kaiser/KaiserGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public void start() {
System.out.println();

while (round < MAX_ROUNDS) {
System.out.println(KaiserEnginePrinter.ANSI_BLUE + "### Starte in Runde " + ++round + "...." + KaiserEnginePrinter.ANSI_RESET);
status();
actions();
}
Expand All @@ -30,7 +29,7 @@ public void start() {
}

public void status() {
System.out.println(printer.getStatus(round));
System.out.println(printer.getStatus(++round));
}

public void actions() {
Expand Down

0 comments on commit 3c77e0e

Please sign in to comment.