We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371b405 commit fbe57baCopy full SHA for fbe57ba
src/mastermind/ui/menu/resume_game_menu.py
@@ -63,5 +63,5 @@ def get_option(self) -> Union[str, int]:
63
self.display()
64
65
66
-def _is_option_valid(option: int, number_of_options: int) -> bool:
67
- return option.isdigit() and 0 <= option <= number_of_options
+def _is_option_valid(option: str, number_of_options: int) -> bool:
+ return option.isdigit() and 0 <= int(option) <= number_of_options
0 commit comments