mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
This commit is contained in:
@@ -6,7 +6,7 @@ def print_n_whitespaces(n: int) -> None:
|
||||
print(" " * n, end="")
|
||||
|
||||
|
||||
def print_board(A: List[List[Any]], n):
|
||||
def print_board(A: List[List[Any]], n: int) -> None:
|
||||
"""PRINT THE BOARD"""
|
||||
for i in range(n):
|
||||
print(" ", end="")
|
||||
@@ -22,7 +22,7 @@ def check_move(_I, _J, _N) -> bool: # 910
|
||||
return True
|
||||
|
||||
|
||||
def print_banner():
|
||||
def print_banner() -> None:
|
||||
print_n_whitespaces(33)
|
||||
print("GOMOKU")
|
||||
print_n_whitespaces(15)
|
||||
|
||||
Reference in New Issue
Block a user