mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
Clean Code: Python
Fix issues found by flake8-bugbear: * Unused loop variables * assert statements in non-test code * mixing test code with production code * mark one excessive test which takes ~10min to run as 'slow'
This commit is contained in:
@@ -66,7 +66,7 @@ class Player:
|
||||
print(f"Extra rolls for {self.name}")
|
||||
pins = [0] * 10 # reset the pins
|
||||
score = 0
|
||||
for ball in range(extra):
|
||||
for _ball in range(extra):
|
||||
if score == 10:
|
||||
pins = [0] * 10
|
||||
simulateRoll(pins)
|
||||
|
||||
Reference in New Issue
Block a user