Skip to content
Snippets Groups Projects
Commit 50fb94ef authored by Nick's avatar Nick
Browse files

Fehler fix

parent db7f3692
No related branches found
No related tags found
1 merge request!1Verision 1.0 finished
......@@ -7,6 +7,7 @@ import logic.*;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
public class SceneController {
private Board board;
......@@ -57,6 +58,7 @@ public class SceneController {
public void aiTurn(){
// AI's Turn
//TimeUnit.SECONDS.sleep(2);
playerTurn = 0;
turnlabel.setText("AI's Turn");
int[] coordinates = enemy.makeMove(board);
......@@ -115,7 +117,7 @@ public class SceneController {
player.makeMove(board, col, row);
playerTurn = 0;
over();
if(moves == 9){
if(moves == 9 && playerTurn != -1){
turnlabel.setText("Draw!");
playerTurn = -1;
}
......
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