Tag Archives: freecodecamp

Tic Tac Tie

I can’t remember if I mentioned it or not, but I’ve been going through FreeCodeCamp’s curriculum as well.  I just finished a JavaScript Tic Tac Tie (because the AI should never lose, only win or tie) game.   And since it’s a game, I thought I’d post it here.  Give it a try!

TicTacTieThis turned out to be a far more interesting challenge than what I had first imagined.  If you’d like to learn more than you ever cared to know about Tic Tac Toe, I’d recommend these links:



I didn’t use the Minimax algorithm for my game.  (Hahaha, and… maybe that would’ve been easier in the long run!)  However, my computer opponent should be good enough to never lose.

(But if you beat him, please let me know.  Because then the game shouldn’t be named Tic Tac Tie!!!)


Leave a comment

Filed under Game Development