8000 GitHub - hriteshMaikap/Tic-Tac-Toe: Tic Tac Toe using C programming (Magic Square and Ply Search)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hriteshMaikap/Tic-Tac-Toe

Repository files navigation

Non-AI Technique The magic square grid is as follows: 8 1 6 3 5 7 4 9 2 A player (computer or user) wins if the sum of the numbers in any row or column or diagonal is equal to 15 Algorithm:

  1. Win Check: Check if computer can win using the concept of Magic Square
  2. Block Opponent: Check if opponent can win, if yes block
  3. Centre Move: If the centre is available take the place
  4. Corner Move: Take any corner available
  5. Edge Move: Take the remaining edges

1->represents X 2->represents 0

About

Tic Tac Toe using C programming (Magic Square and Ply Search)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0