You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a fix:
public void setMarkAt(int row, int column, Mark newMark) {
board[row][column] = newMark;
if (newMark == BLANK) {
availableMoves++;
} else {
availableMoves--;
}
}
Activity