Python Forum
TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: max_value() missing 2 required positional arguments: 'alpha' and 'beta'
#1
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))
Reply
#2
The error in the title does not match the code.
please post full error tracebacks in error code tags.
Reply
#3
@Yoriz the error did solve thank you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python 3: TypeError: a bytes-like object is required, not 'str' wardancer84 3 253 Jul-09-2021, 05:55 PM
Last Post: deanhystad
  TypeError: sum() missing 1 required positional argument: 'num2' Insen 3 823 Jan-06-2021, 04:25 PM
Last Post: Insen
  TypeError: a bytes-like object is required, not 'str' ozzy69 1 799 Jul-17-2020, 03:38 PM
Last Post: stullis
  How to reuse positional arguments entered in terminal. rcmanu95 1 590 Jul-04-2020, 01:00 AM
Last Post: bowlofred
  Missing 1 required position argument: 'failure' while starting thread. BradLivingstone 3 1,023 Jun-19-2020, 02:31 PM
Last Post: stullis
  TypeError: forward() missing 1 required positional argument: 'x' sveto4ka 4 3,379 Jun-17-2020, 07:25 PM
Last Post: sveto4ka
  Packet Sniffer - TypeError: a bytes-like object is required, not 'str' cheffa2020 4 1,469 Jun-12-2020, 02:10 PM
Last Post: cheffa2020
  missing 1 required positional argument: 'self' yasser 7 4,324 Jun-07-2020, 06:48 AM
Last Post: ndc85430
  random.choice() takes two positional arguments, but three were given. ShakeyPakey 5 3,063 May-31-2020, 03:13 PM
Last Post: deanhystad
  TypeError: _linspace_dispatcher() missing 1 required positional argument: 'stop' Ae_Lovecraft 3 2,319 May-28-2020, 03:33 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020