You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just watched the code of this specific file, and noticed that there is a function that is never called
defthink(board, g, h, moves):
ifboard[Space.MID_CENTER] isOccupiedBy.EMPTY:
returnSpace.MID_CENTERifboard[Space.MID_CENTER] isOccupiedBy.PLAYER:
if (
board[Space.TOP_CENTER] isOccupiedBy.PLAYERandboard[Space.TOP_LEFT] isOccupiedBy.EMPTYorboard[Space.MID_LEFT] isOccupiedBy.PLAYERandboard[Space.TOP_LEFT] isOccupiedBy.EMPTY
):
returnSpace.BOT_LEFTelif (
board[Space.MID_RIGHT] isOccupiedBy.PLAYERandboard[Space.BOT_RIGHT] isOccupiedBy.EMPTYorboard[Space.BOT_CENTER] isOccupiedBy.PLAYERandboard[Space.BOT_RIGHT] isOccupiedBy.EMPTY
):
returnSpace.BOT_RIGHTifg==OccupiedBy.PLAYER:
j=3*int((moves-1) /3)
ifmove==j+1: # noqa: This definitely is a bug!k=1ifmove==j+2: # noqa: This definitely is a bug!k=2ifmove==j+3: # noqa: This definitely is a bug!k=3returnsubthink(g, h, j, k) # noqa: This definitely is a bug!
Isn't it better to just remove it?
The text was updated successfully, but these errors were encountered:
Just watched the code of this specific file, and noticed that there is a function that is never called
Isn't it better to just remove it?
The text was updated successfully, but these errors were encountered: