working game?

This commit is contained in:
Jake Pullen
2024-06-08 09:26:44 +01:00
parent 493c38892b
commit 5bbda755af
6 changed files with 75 additions and 34 deletions
+1 -1
View File
@@ -31,5 +31,5 @@ class RuleEngine:
(game_rule.value is not None and game_rule.value == card.value) or \
(game_rule.card_count != 99 and game_rule.card_count == len(hand)):
commands.append(game_rule.command)
return ' and '.join(commands) if commands else None
return ' and '.join(commands) if commands else ''