Exemple #1
0
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)
Exemple #2
0
def inputComputer(s):
    return alphaBetaPruning.go(s)