An optimal tic-tac-toe agent which should always win, or at worst tie in any given game.
A JavaScript-enabled web browser is all that is needed to play this variation of tic-tac-toe.
Download the repo as a .zip, unzip it on your desktop and double-click the index.html.
The AI agent itself is contained within the "tictactoeAgent.js" file.
- Agent always wins, utilizing heuristics as described in Newell and Simon's 1972 tic-tac-toe programming guide.
- Because it utilizes heuristics rather than recursive algorithms, the AI runs very fast.
- Perhaps include a minimax-based variation on this AI. Although less efficient, it would be interesting to compare the two.
If you think you can improve this project, please feel free to make a branch followed by a pull request!
This software is provided free of any license, and you are entirely responsible for how you choose to use it.