Python Forum

Full Version: TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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))
The error in the title does not match the code.
please post full error tracebacks in error code tags.
@Yoriz the error did solve thank you