Skip to content

Commit 2026a6f

Browse files
committed
minor fixes
1 parent ed8288c commit 2026a6f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

rule.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, rule: str) -> None:
4343
self.is_at_least = True
4444
self.quantity = int(rule_list[1])
4545
if self.quantity < MIN_QUANTITY:
46-
raise ValueError("Quantity must be greater than 0.")
46+
raise ValueError(f"Quantity must be greater than or equal to {MIN_QUANTITY}.")
4747

4848
# parse the color and shape
4949
if rule_list[2] in [RED, BLUE, YELLOW]:

zendo_game.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def play_zendo(self, verbose : bool = False) -> bool:
3434
observer_guess = self._observer.play(dict_of_possible_rules_to_rule_values)
3535
did_ai_win = self._moderator.rule == observer_guess
3636
if verbose and not did_ai_win:
37-
print(f"{observer_guess} | {self._moderator.rule}")
3837
logging.info(f"Incorrect guess: {observer_guess}. Correct rule was {self._moderator.rule}")
3938
save_rules_to_file(dict_of_possible_rules_to_rule_values)
4039
return did_ai_win

0 commit comments

Comments
 (0)