Advertisement

hi! minimax implementation on a console tictactoe can i have plz?

Started by April 12, 2002 02:58 AM
5 comments, last by mickey 22 years, 7 months ago
thanks, hi to people who helped me on my other thread ''tips on tictactoe ai'', well, i did understand about the concept but when implementation comes, i''m stuck! sad sad sad... my email is davidang@info.com.ph thanks for sharing people!
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
What do you have so far?

If you have a 3x3 array of characters, you can just take turns, and for the ai move, do something like:

1. Scan for lines the player is about to make.
2. If one was found, try to block it.
3. If one was not found, try to make a line.
4. If you can''t, randomly place an X or O.

I feel drained.

Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Advertisement
You could train a simple neural network for the task. I used a simple 9x10x9 perceptron network in my tic-tac-toe game.
Perhaps overkill, but it would be cool as hell to watch it learn.

Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
neural network?!? whew, i''m already having a hard time implementing the minimax concept and you''re asking me to implement a neural network?!?

hi siaspete, well, i can do that but like i said, i would like to implement the minimax concept,
http://www.dualforcesolutions.comProfessional website designs and development, customized business systems, etc.,
Google search for "minimax tic tac toe"...

http://boulter.com/ttt/about.html

Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Advertisement
hi, exactly what part of minmax are you stuck on (like do u understand how it works but having trouble actually implimenting it, or not sure how it actually works)?

This topic is closed to new replies.

Advertisement