|
@ -173,10 +173,10 @@ public class GameLogic extends JPanel { |
|
|
frame.setResizable(true); |
|
|
frame.setResizable(true); |
|
|
frame.setVisible(true); |
|
|
frame.setVisible(true); |
|
|
|
|
|
|
|
|
gui.start(); |
|
|
|
|
|
|
|
|
gui.start(false); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void start() { |
|
|
|
|
|
|
|
|
public void start(boolean test) { |
|
|
this.gameState = GameLogic.PREPARATION; |
|
|
this.gameState = GameLogic.PREPARATION; |
|
|
this.playerMove = true; |
|
|
this.playerMove = true; |
|
|
|
|
|
|
|
@ -202,6 +202,7 @@ public class GameLogic extends JPanel { |
|
|
|
|
|
|
|
|
// enter game loop |
|
|
// enter game loop |
|
|
this.gameState = GameLogic.RUNNING; |
|
|
this.gameState = GameLogic.RUNNING; |
|
|
|
|
|
if (!test) |
|
|
this.nextMove(true); |
|
|
this.nextMove(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|