/TicTacToe

Primary LanguageJavaScript

Minimax Algorithm on TicTacToe

Made with p5.js to create the TicTacToe game. All of this project is a front end application.

Algorithm's Architecture

Every Algorithms/Players inherit from the Player Class which implement 2 functions:

  1. put which is called in the draw function
  2. click which is called in the mousePressed function

The Minimax algorithm is one of them

Minimax implementation