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.

12 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!

2 Likes

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

2 Likes

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

yay I won!

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

1 Like

I won!

Top left, middle left & middle
(I uh . . . Can’t put a image on mobile)

2 Likes

wow that is a lot of code for a tic-tac-toe game

1 Like

yea it was hard to get it working, so i needed a lot of functions

2 Likes

you can put an image in mobile (im using mobile at this moment too)

1 Like

i will forever remain the victor

1 Like

it… learns

2 Likes

I was using the email link, unsure if that doesnt allow them or not

you mean you were sending a post through Gmail? There should still be an image button at the top

1 Like

:person_shrugging: (sentence)