import alphaBetaPruning import game while True: board = game.create() game.whoIsFirst(board) while not game.isFinished(board): if game.isHumTurn(board): game.inputMove(board) else: board = alphaBetaPruning.go(board) game.printState(board)
def inputComputer(s): return alphaBetaPruning.go(s)