Exemplo n.º 1
0
def computer_next_step(A, B, d, Clever_Stupid, who_s_turn):

    input_n = len(A)
    game = Alpha_Beta(input_n, d)
    game.re_construct_pebble(A, B)
    action_a = game.Search(Clever_Stupid, who_s_turn)

    game.change(action_a)
    return {'list': game.RotateList, 'index': action_a}
Exemplo n.º 2
0
def computer_next_step(A,B,d,Clever_Stupid,who_s_turn):

    
    input_n = len(A)
    game =Alpha_Beta(input_n,d)
    game.re_construct_pebble(A,B)
    action_a = game.Search(Clever_Stupid,who_s_turn);

    game.change(action_a);
    return {'list':game.RotateList, 'index':action_a}
Exemplo n.º 3
0
def computer_next_step(currentlist,input_n,d,Clever_Stupid):
    game =Alpha_Beta(input_n,d)
    game.re_construct_pebble(currentlist)
    action_a = game.Search(Clever_Stupid);
    game.change(action_a);
    return {'list':game.RotateList, 'index':action_a}