Share your repls and programming experiences

← Back to all posts
TTTT - Tic Tac Toe Terminator

Hello. This is a tic tac toe ai. What it does is use a simple machine learning algorithm called minimax and simulates every possibility left in the game (kinda like Dr. Strange). It then finds ones in which it wins and goes all the way back up the tree and takes that move. It's really hard to beat so if you can, props. Enjoy-Robowolf


Make it detect if you won, and fix it crashing if you don't type a number