gregorygaines / comments

0 stars 0 forks source link

blog/develop-unbeatable-tic-tac-toe-ai-react/ #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Develop an Unbeatable Tic-Tac-Toe AI Using React | Gregory Gaines

Ready to swindle money from your fools that believe they are the best at tic-tac-toe!

https://www.gregorygaines.com/blog/develop-unbeatable-tic-tac-toe-ai-react/

Tanush-J commented 1 year ago

You can actually beat it. Follow the steps like this: step 1:     =>   o x   x step 2: x    o x o  =>   o x    x step 3: o x    o x o  =>   o x _ x    x o x

next step you can win the game. but, it glitches out and shows AI won.

image
gregorygaines commented 1 year ago

Hello Tanush,

Oops, looks like there was a bug in the forking logic.

Fixed!

Thanks for pointing it out!