abassibe / Gomoku

2 stars 0 forks source link

Fix crash when AI plays first with DEPTH == 1 #98

Closed demonoidv closed 3 years ago

demonoidv commented 3 years ago

For the record, the issue was that we were comparing the FScore value of the initial Node and the one returned by get_next_move which at this stage in the game is very likely to be 0 in both Nodes.

The fix is quite easy to do, what we have to do is simply to compare the BitBoard last_move of each Node.

demonoidv commented 3 years ago

Un peu trop de changements à mon gout quand même, t'aurais pas pu faire plus court ?

I could have removed the line without adding one as a replacement, that's the only alternative I can think of 😂