Please enable JavaScript.
Coggle requires JavaScript to display documents.
TIC-TAC-TOE (AI Algorithim (Step 1 (Start), Step 2 (Check wining move for…
TIC-TAC-TOE
AI Algorithim
-
Step 2
Check wining move for system(X). If there is such move, take it and go to Step 7, Else go to Step 3.
Step 3
Check wining move for user (O). If there is such move,then block the player and go to Step 7. Else go to step 4.
Step 4
If there are corner space ( ie 1,3,7,9), take it and go to step 7. Else go to step 5.
Step 5
If there is Center position , take it and go to step 7 . Else go to Step 6.
Step 6
If there are side Position ( ie 2,4,6,8), take it and go to step 7. Else go to step 8.
-
-
-
-
-
-
-
Goal
Create a straight Line ( any where on board) of 3 of your marks to win. The Line may be vertical, Horizontal, or diagonal.
-
-