Reversi broken

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!

lol

also, how do you close a reversi game?

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.

Patch:

Removed.

Please, attach your patch as a file (*.patch).

ok, let me test this a bit more, I just found a bug on one of the diagonals.

Ok, try this one.
reversi.patch.zip (900 Bytes)

Looks like your patch has been applied http://fisheye.igniterealtime.org/changelog/spark?cs=12528

Yep! Thanks!

Found another bug, fixed in this patch.
reversi2.patch.zip (450 Bytes)

applied

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)

in 12554