mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-21 06:43:06 -08:00
Python: Fix linting issues
The following Flake8 issues were fixed: * W291 * W504 * F821 * F401 * F541 * E402 * E711
This commit is contained in:
@@ -117,13 +117,13 @@ def think(board, g, h, moves):
|
||||
|
||||
if g == OccupiedBy.PLAYER:
|
||||
j = 3 * int((moves - 1) / 3)
|
||||
if move == j + 1:
|
||||
if move == j + 1: # noqa: This definitely is a bug!
|
||||
k = 1
|
||||
if move == j + 2:
|
||||
if move == j + 2: # noqa: This definitely is a bug!
|
||||
k = 2
|
||||
if move == j + 3:
|
||||
if move == j + 3: # noqa: This definitely is a bug!
|
||||
k = 3
|
||||
return subthink(g, h, j, k)
|
||||
return subthink(g, h, j, k) # noqa: This definitely is a bug!
|
||||
|
||||
|
||||
def render_board(board, space_mapping):
|
||||
|
||||
Reference in New Issue
Block a user