Last active
January 3, 2016 00:59
-
-
Save tarynsauer/8386248 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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