TicTacToe with MinMax AI


A Tic Tac Toe game with an artificial intelligence that can play perfectly using a MinMax algorithm.


by BadToxic (Michael Grönert)


Price History +

Tic Tac Toe (= noughts and crosses, or Xs and Os) is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.


This ready to use game asset can be played locally in turns or against an artificial intelligence that can play perfectly using a MinMax algorithm. The main purposes of this asset, besides playing the game yourself, are:


  • Adding this as a mini game to your own project.
  • Learn about using a simple AI algorithm by watching the visualized thinking steps the AI does and retracing the well documented code.