AI-Assignment (CSF407) BITS Pilani Dubai Sem-I 2022-23
An unbeatable tic tac toe created in p5.js using minimax algorithm. There are 3 playable modes :
NOTE : In the following examples the AI is chosen to be playing as O
L rule is a new added rule which states that the player wins if a L is formed at any corner like this :
In this case the user can block any one sqaure of their choice and play a game of tic tac toe with the L rule included
AI winning by L rule | AI winning by conventional rules |
---|---|