A more intelligent tic tac toe gui python code implementation?

Asked By 0 points N/A Posted on -
qa-featured

Presumably a simple tic tac toe gui python code implementation will just place the cross or zero anywhere when the computer has its turn.

I was wondering what a more intelligent algorithm might be for the computers moves for tic tac toe.

I used to play the game myself but it's been a while, and I am not sure what the best strategy is.

SHARE
Answered By 0 points N/A #170911

A more intelligent tic tac toe gui python code implementation?

qa-featured
Hi there JohnLMcManus,
 
Even though it sounds as simple as placing the 0 or X anywhere, the game still uses the algorithm for computer moves.
 
The most common algorithm used for the game of TicTacToe is the one called Minimax.
 
All details about the Minimax can be found on the following link: http://en.wikipedia.org/wiki/Minimax.
 
Hope this made things a bit clearer for you.
 
Best regards,
Drake Vivian

Login/Register to Answer

Related Questions