TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' (/thread-33664.html) |
TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' - Anldra12 - May-15-2021 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)) RE: TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' - Yoriz - May-15-2021 The error in the title does not match the code. please post full error tracebacks in error code tags. RE: TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta' - Anldra12 - May-15-2021 @Yoriz the error did solve thank you |