Closed BSalita closed 2 years ago
You need to specify the predeal as a keyword argument, try
endplay.dealer.generate_deal(constraints, predeal=predeal)
and it should work. The first argument to generate_deal
is an *args
style parameter so it will swallow up any arguments which aren't named and assume they are meant to be constraints.
Yea, that's undoubtedly the solution.
I'm trying to use endplay.dealer.generate_deal(() with constraints and predeal args. I'm unable to use predeal in any form because it raises an AttributeError exception.