Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Last active January 3, 2016 00:59
Show Gist options
  • Save tarynsauer/8386248 to your computer and use it in GitHub Desktop.
Save tarynsauer/8386248 to your computer and use it in GitHub Desktop.
public class AIPlayer extends AbstractPlayer {
public AIPlayer(String marker) {
super(marker);
}
@Override
public void makeMove(Board board) {
String move = AI.getAIMove();
int moveIndex = Integer.parseInt(move);
addMarker(board, moveIndex);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment