Hello once again. Like I mentioned in my last post, I’m trying to get the legacy front-end certification. I’m only missing the tic-tac-toe game at this point, but it’s going really badly.
The main game logic is finished, but what concerns me is the algorithm.
For some reason, when there is a corner move available, the thing just goes nuts and tries to play every move, and then goes into an infinite loop.
My project is below: