Several times in reversi it would not let me play in a legitimate spot. Other times I played and it didn’t correctly flip all the pieces. Something wrong in the algorithm. It seems to only affect black…wtf! I just lost a game where I had all four corners!
Seems it affected both players, not just black. Edges were not being reached, so if you had a piece at the edge it would never find your piece and not change the row/column/diagonal.
I also changed it to not check unless you are at least placing two away from the edge you are checking towards. Not very important, probably, but slightly more optimized.
Another edge case screwed up. Hopefully this is the last one…heh I changed another line, as well, for clarity, but it has no effect. reversi3.patch.zip (567 Bytes)