hello i am creating a minimax tic-tac-toe ai. i finished my program but it doesn't work it keeps choosing the next available spot
this is my got repo https://github.com/adam-kabbara/tic-tac-toe-ai
example of choosing next availble spot:
| x | - | - |
| - | - | - |
| - | - | - |
| x | - | - |
| - | o | - |
| - | - | - |
| x | - | - |
| x | o | - |
| - | - | - |
| x | - | - |
| x | o | - |
| o | - | - |
| x | x | - |
| x | o | - |
| o | - | - |
| x | x | - |
| x | o | - |
| o | x | - |
please help. thanks in advanced : )
0 Answer(s)