|
@ -16,6 +16,7 @@ public class Logic { |
|
|
private int[][] board = new int[6][6]; |
|
|
private int[][] board = new int[6][6]; |
|
|
private int currentPlayer = 1; |
|
|
private int currentPlayer = 1; |
|
|
private int player1Score = 0; |
|
|
private int player1Score = 0; |
|
|
|
|
|
private int player2Score = 0; |
|
|
|
|
|
|
|
|
public void setField(int player, int row, int column) { |
|
|
public void setField(int player, int row, int column) { |
|
|
board[row][column] = player; |
|
|
board[row][column] = player; |
|
@ -41,6 +42,14 @@ public class Logic { |
|
|
return player1Score; |
|
|
return player1Score; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setPlayer2Score(int score) { |
|
|
|
|
|
player2Score = score; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getPlayer2Score() { |
|
|
|
|
|
return player2Score; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public int playChip(int column) { |
|
|
public int playChip(int column) { |
|
|
|
|
|
|
|
|
//add board update |
|
|
//add board update |
|
|