The Front End Tic Tac Toe project seems to be a big spike in difficulty from the others, but I’m not complaining. However I’m curious as to how complex should (or is) the AI supposed to be?
While looking at different blogs and sites for help I’ve found projects that seem to be a complete list of every possible case on if
statements and a a really elaborate AI, however I’m having trouble understanding how this (and any other design I’ve pictured) works.
The example above uses something called the minimax
value to determine an optimal move, but (not being to debug so far, just mentally going through the code and maybe a notepad on the side), I don’t see how this determines the most optimal move.
Can I get any help with this or any other algorithm?