mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10: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:
@@ -122,9 +122,8 @@ def main():
|
||||
if s < s1:
|
||||
s = s1
|
||||
my_guess = j
|
||||
elif s1 == s:
|
||||
if random.random() >= 0.5:
|
||||
my_guess = j
|
||||
elif s1 == s and random.random() >= 0.5:
|
||||
my_guess = j
|
||||
|
||||
result = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user