mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-29 22:21:42 -08:00
Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI For flake8-simplify, there are a few false-positives, e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
This commit is contained in:
@@ -368,9 +368,8 @@ class Qubit:
|
||||
]
|
||||
|
||||
while True:
|
||||
if not skipHuman:
|
||||
if not self.humanMove(board):
|
||||
break
|
||||
if not skipHuman and not self.humanMove(board):
|
||||
break
|
||||
skipHuman = False
|
||||
|
||||
m = board.machineMove()
|
||||
|
||||
Reference in New Issue
Block a user