Created
July 18, 2013 15:58
-
-
Save smaspe/6030526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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