|
@ -47,12 +47,12 @@ public class GameLogic { |
|
|
|
|
|
|
|
|
// check columns |
|
|
// check columns |
|
|
for (int i = 0; i < this.board.length; i++) { |
|
|
for (int i = 0; i < this.board.length; i++) { |
|
|
if(countFields == this.board.length) return finished = true; |
|
|
|
|
|
countFields = 0; |
|
|
|
|
|
for (int j = 0; j < this.board[0].length; j++) { |
|
|
for (int j = 0; j < this.board[0].length; j++) { |
|
|
if(board[j][i] == player) countFields++; |
|
|
|
|
|
|
|
|
System.out.println(j + ", " + i); |
|
|
|
|
|
if(board[j][i] == player) countFields++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(countFields == this.board.length) return finished = true; |
|
|
|
|
|
countFields = 0; |
|
|
} |
|
|
} |
|
|
countFields = 0; |
|
|
countFields = 0; |
|
|
|
|
|
|
|
|