TU-CSCI2322-FL22 / solver-connect-three

solver-connect-three created by GitHub Classroom
0 stars 0 forks source link

predictWin cannot rely on bestPlay! #36

Closed sfogarty closed 1 year ago

sfogarty commented 1 year ago

I don't think predictWin works! It needs to consider every possible move, and ALL the outcomes thereof. Also, you should check if the game is over first, instead of doing it on the child games.

Please come to office horus!

https://github.com/TU-CSCI2322-FL22/solver-connect-three/blob/8614053832dd940ddafa01485df18db0328eaaba/Solver.hs#L14-L21

ColinHouston commented 1 year ago

I believe that this problem is now fixed