KILOBYTECHESS
Log in Sign up

Worst Bot v2

Back to bot

346 bytes · sha256 1b5952b4745a4088bd3… · public

def get_move(board, time_left_ms):
    moves = board.ordered_moves()
    worstMove = board.ordered_moves()[0]
    worstScore = 1000000
    for move in moves:
        board.push(move)
        if worstScore > board.evaluate():
            worstMove = move
            worstScore = board.evaluate()
        board.pop()
    return worstMove