abassibe / Gomoku

2 stars 0 forks source link

The python part sees illegal move where there is not #57

Closed demonoidv closed 3 years ago

demonoidv commented 3 years ago

I think the python part does a good job in finding illegal moves, however, I just saw the following: Capture d’écran 2021-03-10 à 17 22 53

In this picture, we can see that it's my turn to play and the AI suggests I play where I put a big fat 1 which seems to be a pretty good move to play indeed, but the python part will not let me play it because (I guess) it considers it as an illegal move.

In this particular case, I don't think it's an illegal move because it not really 2 open 3 since there are 2 pieces in common (where a double open three should have only one if I'm not mistaking). Plus, we can see that if I play 1 then the AI is more than likely to play in 2 or 3 (if it plays in 3 then I can play in 2), and from there we only have a half-open 4 which the AI will probably block at its turn.

I could be wrong but I think there is an issue here. What do you guys think about it @Ragarnoy @tuturr @abassibe?

arlaine4 commented 3 years ago

This should be considered as an open split four and not a double open three, It can be defended in positions 2 and 3, so even if Player plays at position 1 it can pretty easily be countered, so this shouldn't be considered as a forbidden move.

arlaine4 commented 3 years ago

This has been fixed already