Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nimaposhtiban/tictactoeai

MinMax (cut-off)
https://github.com/nimaposhtiban/tictactoeai

Last synced: 9 days ago
JSON representation

MinMax (cut-off)

Awesome Lists containing this project

README

        

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