fixed an issue with no command not being correct when it was

This commit is contained in:
Jake Pullen
2024-06-08 20:13:58 +01:00
parent 7847b1612f
commit 2e82c3fd24
3 changed files with 2 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -66,7 +66,8 @@ for i in range(50):
expected_command = ' and '.join(command)
print(f'expected command: {expected_command}')
time.sleep(1)
given_command_set = set(given_command.split(' and '))
#given_command_set = set(given_command.split(' and '))
given_command_set = set() if given_command == '' else set(given_command.split(' and '))
if given_command_set != command:
print(f'{game_player.name} made the wrong announcement')
#need to put the card back in the hand