Back to projects

Tic-Tac-Toe "AI"

Recently I began looking for somewhere to start dabbling around with artificial intelligence. I realize this is a huge field with a lot of different subfields and concepts, but I just wanted to dip my toes in. As a random, fun place to start, I completed a great Udemy course where you create a Tic-Tac-Toe AI program in JavaScript.

The most important concept I learned about is the MiniMax Algorithm. Working with this Algorithm, we created a program that is always looking for the move with the best available outcome by testing the results of all possible iterations of the game..

I am sure there are a lot of cool ways to use this algorithm, as well as many many more algorithms to be explored, so we will see where this journey leads.

Also, I don't know if I would call this app particularly "intelligent", but it's impossible to win a match against it 😉.

Try for yourself.

scroll up