mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -54,7 +54,6 @@ computer_board = []
|
||||
# array representing the coordinates
|
||||
# for each ship for player and computer
|
||||
# array is in the same order as SHIPS
|
||||
player_ship_coords = []
|
||||
computer_ship_coords = []
|
||||
|
||||
|
||||
@@ -486,7 +485,7 @@ def execute_turn(turn, current_turn):
|
||||
######################################
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
# keep track of the turn
|
||||
current_turn = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user