So I have two difficulty levels on my game. In “noob” the computer just chooses a square at random, and you have to be asleep at the wheel to lose. If you do intentionally lose however the correct message comes up showing you lost.
In “medium” I’ve programed far more logic into the computer’s choice. However when it wins in this mode it doesn’t register, it just switches back to the player turn.
I have no idea why this happens as I use the same code to check for a win with both difficulties. Could someone take a look at my code and see if anything pops out? Computer logic starts on line 78, and the check win function on line 166.
Thanks in advance