Does it always happen on the last column even if you remove or add a column?
If I see this correctly your "state", i.e. which color is next, is in Player::color, correct?
Add a private Player::setColor() method and then make sure no other part of the code writes "color" directly.
Then put a log input into that and see if it is being called twice with the same color.
If yes, then either there is a call for the other color missing or there is a wrong second call with the same color.
Cheers,
_





Reply With Quote
Bookmarks