Skip to content

Krish054/Unbeatable_Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbeatable Tic Tac Toe ❌⭕

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

1. Normal Unbeatable Tic Tac Toe

tictactoe


2. Tic Tac Toe with L rule

L rule is a new added rule which states that the player wins if a L is formed at any corner like this :

tictactoe


3. Tic Tac Toe with L rule and One blocked square

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
tictactoe tictactoe