I have difficulty getting my tic-tac-toe’s minimax to work.
Can I get some help?
My approach was to have 2 arrays
- Player spots
- AI spots
Function to check for wins works
Function to check for empty spots also works
but I can’t get the minimax to work for the life of me.