May-15-2021, 10:47 AM
def minimax(BTree): alpha = mini beta = maxi userValue = max_value(BTree,alpha,beta) return userValue userValue = minimax(tree) print("The Optimal value of the MiniMax Algorithm : "+ str(userValue)) print("\n The output Path is :") print(path(tree,userValue)) out = alphabeta(tree) print("The Optimal value of the Alpha beta pruning Algorithm : "+ str(out))