|
@ -30,6 +30,10 @@ public class Logic { |
|
|
return this.board[row][column]; |
|
|
return this.board[row][column]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void clearField() { |
|
|
|
|
|
this.setField(0, 0, 0); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public int getBoardSize() { |
|
|
public int getBoardSize() { |
|
|
return this.board.length; |
|
|
return this.board.length; |
|
|
} |
|
|
} |
|
@ -230,6 +234,6 @@ public class Logic { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void gameover() { |
|
|
public void gameover() { |
|
|
setPlayer1Score(10); |
|
|
|
|
|
|
|
|
setPlayer1Score(calcScore()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |