Skip to content
Snippets Groups Projects
Commit 264d00ad authored by Nick's avatar Nick
Browse files

abwechseln der züge

parent 989c46c4
No related branches found
No related tags found
1 merge request!2Fehler fix
......@@ -9,7 +9,7 @@ public class SceneController {
private Actor player;
private Actor enemy;
boolean playerTurn = true;
public boolean playerTurn = true;
public void initData(Board board, Actor player, Actor enemy) {
this.board = board;
......@@ -21,10 +21,6 @@ public class SceneController {
this.playerTurn = true;
}
public void aiTurn(){
this.playerTurn = false;
}
@FXML
private GridPane gridPane;
......@@ -48,6 +44,8 @@ public class SceneController {
pressedButton.setText("X");
player.makeMove(board, col, row);
playerTurn = false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment