mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Python: Type annotations
This commit is contained in:
@@ -41,7 +41,7 @@ class NIM:
|
||||
|
||||
return pile, num
|
||||
|
||||
def _command_integrity(self, num, pile):
|
||||
def _command_integrity(self, num, pile) -> bool:
|
||||
return pile <= 4 and pile >= 1 and num <= self.piles[pile]
|
||||
|
||||
def print_pegs(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user