basic gameloop logic

This commit is contained in:
albyg 2025-05-13 19:51:25 +02:00
parent b18d2619fa
commit c00feab2c3

View file

@ -6,6 +6,9 @@ public class TamaGolemMain {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Game game;
do {
System.out.println("TamaGolem");
System.out.println("""
@ -25,8 +28,9 @@ public class TamaGolemMain {
Player p2 = new Player(sc.nextLine());
Game game = new Game(p1, p2, WorldBuilder.buildWorld());
game = new Game(p1, p2, WorldBuilder.buildWorld());
game.start();
} while (game.isRestart());
}
}