Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 276 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 276 Bytes

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);