![]() |
|||||||||||||||||||||
![]() |
|||||||||||||||||||||
I hate tic-tac-toe... :(
Posted by Geek at December 9, 2002 04:47 PMTrackBack URL for this entry:
http://www.unknowngeek.com/mt-tb.cgi/120
hehe ... its such an easy game though. Concentration is an interesting learning experience when there is no one telling you how the randomizer function is suppossed to work. my first try got it to be random ... but then if you quit and start it back up, it starts with the same random numbers ... *sigh*
Posted by: David at December 10, 2002 10:45 AM
It would have been so much easier if we could have used a random function. ;)
We had to use the Min/Max algorithm... Let's just says it's a pain to code and it's smart enough that if the computer goes first, it will NEVER lose... :\ If the human goes first, the only way to win is to setup your pieces so you have two ways to win on the next move...
X | | X
O | |
O | O | X
That is if the computer does not see that coming and block it first...
AI can really suck sometimes... ;)
Posted by: Andy at December 10, 2002 11:27 AM
heh, I remember doing that stuff ... ugh *shudder* ... min/max algo's make it so constrained sometimes, the randoms are much more interesting.
as for AI, its a pain and a half if you want it to be anywhere near semi-intelligent. I was working on learning genetic algorithms and using them to create an artificial learning process, but its still way beyond me.
Posted by: David at December 12, 2002 10:23 AM