🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
hi! minimax implementation on a console tictactoe can i have plz?
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!
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
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
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
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,
hi siaspete, well, i can do that but like i said, i would like to implement the minimax concept,
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
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
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
Popular Topics
Advertisement