Share your repls and programming experiences

← Back to all posts
I made a Tic Tac Toe AI UNBEATABLE
CatR3kd

Yo gamers

Another step in the right direction for project Inner Omega, I now present you with:

The Unbeatable Tic Tac Toe AI!

Simply put: You go first or second, (Randomly) and it either ties or beats you! Good luck!

-Cat <3

oh also screenshot if you win lol i'll fix it

Voters
VihaanM1
TheCheeseCoder
forceofyoda
MrH0lmes
FloCal35
AverseABFun
CatR3kd
Comments
hotnewtop
matthewproskils

Please can people stop naming things as 'AI' when it actually is just a bunch of if statements
Seriously. Read line 30-268

CatR3kd

As I learned from @dynamicsquid , algorithms DO count as artificial intelligence. Machine learning, however, is most likely what you are thinking of. @matthewproskils

DynamicSquid

@CatR3kd that's not really an algo though... if you used something like the minimax algo that'd be cool

CatR3kd

technically its an algorithm bc I didn't tell it a move for every situation, just how to avoid doubles and wins, it does the rest alone. @DynamicSquid

matthewproskils