Skip to content

NimaPoshtiban/tictactoeai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Ai

a simple ai for tic-tac-toe game using min-max algorithm

How it works

it recives a matrix of 0s,1s and 2s:

  • 1 is the max
  • 2 is the min
  • 0 is the empty block

just call answer function and it returns the best result

int** answer(int** plate);

About

MinMax (cut-off)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages