Working Bot Tic-Tac-Toe

I made tic-tac-toe with a working bot!

Heres how it works:

The bot knows all winning patterns, if it detects you have 2/3 in any pattern, it will place an X wherever it calculates the 3rd one to be, and it works the same for it’s own placement. If you do not have any pattern, or only one placement, it will randomly place itself on the grid.

9 Likes

This is quite cool. Though I did beat it easily (because I’m just that brilliant) it clearly shows your skill at coding. Good job!

1 Like

thanks!

1 Like

This is very good! =) I tested what you said, looked at the code and proceeded to crush the AI 10 times.

1 Like

yea it’s not the best but it’s still pretty good

yay I won!

I did top-left, top-right, bottom-right