Maxwell L.

asked • 10/06/22

Minimax algorithm for tic tac toe in C

I have made a basic tic tac toe game which fills the board with X's and O's and checks for a winner/draw. How can I implement the minimax algorithm to 1) check for the next best move when the game is at a certain state?2) play the full game from the start against an AI using the algorithm?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.