Hello all,
I finally finished Tic-tac-toe project! I used ReactJS but I find it pretty hard to manage states of the game. Especially when AI is playing as ‘X’ and there is a draw and AI needs to play 2 times in a row.
Does anyone have any experience on using state machines for simple games like this one? If so, please share your experience.
You can check the project at CodePen.