mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 20:54:07 -08:00
'Refactored by Sourcery'
This commit is contained in:
@@ -31,7 +31,11 @@ def play_game() -> None:
|
||||
for _ in range(5):
|
||||
while True:
|
||||
mine = mine_position()
|
||||
if not (mine in mines or mine == (1, 1, 1) or mine == (3, 3, 3)):
|
||||
if (
|
||||
mine not in mines
|
||||
and mine != (1, 1, 1)
|
||||
and mine != (3, 3, 3)
|
||||
):
|
||||
break
|
||||
mines.append(mine)
|
||||
wager = -1
|
||||
|
||||
Reference in New Issue
Block a user