Skip to content

Instantly share code, notes, and snippets.

@smaspe
Created July 18, 2013 15:58
Show Gist options
  • Save smaspe/6030526 to your computer and use it in GitHub Desktop.
Save smaspe/6030526 to your computer and use it in GitHub Desktop.
private static final int WHITE = -1;
private static final int EMPTY = 0;
private static final int BLACK = 1;
public void play(int x, int y) {
if (board[x][y] == EMPTY) {
board[x][y] = currentPlayer;
currentPlayer *= -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment