mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -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 @@ from math import sin
|
||||
from random import random
|
||||
|
||||
|
||||
def gunner():
|
||||
def gunner() -> None:
|
||||
gun_range = int(40000 * random() + 20000)
|
||||
|
||||
print("\nMAXIMUM RANGE OF YOUR GUN IS", gun_range, "YARDS.")
|
||||
|
||||
Reference in New Issue
Block a user