Created
July 11, 2015 18:18
-
-
Save kartikkukreja/3591944311b1e577c093 to your computer and use it in GitHub Desktop.
Checkers Bot Integration
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
if __name__ == '__main__': | |
player = raw_input() | |
boardSize = int(raw_input()) | |
grid = [] | |
for i in xrange(boardSize): | |
grid.append(raw_input()) | |
IsPlayerBlack = player[0] == 'b' | |
state = CheckersState([list(row.rstrip()) for row in grid], IsPlayerBlack, []) | |
move = iterativeDeepeningAlphaBeta(state, piecesCount) | |
print len(move) - 1 | |
for step in move: | |
print step[0], step[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment