Blog Archives

Non-Recursive tic-tac-toe AI Algorithm

CS

I intend to lay out the algorithm for a function that returns the next cell to be occupied by an AI in a game of Tic-tac-toe (iteratively). The AI’s difficulty can be divided into 3 levels: easy, medium and difficult.

View original post 1,200 more words