def main(): board = Board() argument_line = raw_input() playing_dude = OthelloPlayer(argument_line[5]) playing_dude2 = playing_dude.opponent() depth_limit = argument_line[7] time_limit1 = argument_line[9] time_limit2 = argument_line[11] this_turn = 'B' #if playing_dude.player_color == 'B': while not board.gameover(this_turn): if(board.gameover('B')): break if this_turn == playing_dude.player_color: board = playing_dude.make_move(board) #board.print_board() print '%s dude just went\n' %(this_turn) this_turn = trade_turn(this_turn) print '%s dude is going to go\n'%(this_turn) sys.stdout.flush() board.print_board() else: board = playing_dude2.make_move(board) board.print_board() print '%s dude just went\n' %(this_turn) this_turn = trade_turn(this_turn) print '%s dude is going to go\n'%(this_turn) sys.stdout.flush() board.print_board() '''
def main(): board = Board() player = 'B' print board.gameover(player) print board.legal_moves('B') print board.legal_moves('W') print board.is_legal('B', 2,4) #print board.print_board board.print_board() player1 = OthelloPlayer('B') board = player1.make_move(board) board.print_board()