diff --git a/beggarmypython/__init__.py b/beggarmypython/__init__.py index e2f4fb3..0e15cb5 100644 --- a/beggarmypython/__init__.py +++ b/beggarmypython/__init__.py @@ -68,6 +68,8 @@ def calculate(hands, firstCardOnLeft=True, verbose=False): stack = stack+next_card # add to the stack + if not b or not a: break + if next_card not in ['A', 'K', 'Q', 'J']: # not a court card if battle_in_progress: