Advertisement

My first AI program

Started by December 19, 2008 12:03 PM
1 comment, last by Leaedas 15 years, 10 months ago
After spending two days on this program, I finally finished my first AI player for a game. Whoo! I created the game "Seven" and implemented the AI for it. The game is a console text-based game, so its not super exciting. The big hurdle was to figure out how to use trees for making decisions. I used a min-max tree with connection weights which are adjusted each time the game is played so the computer 'learns' by choosing the highest weighted connections. It's not truly a min-max tree, but its pretty close. The only problem with my implementation is that the AI will lose all of its initial games until it learns by trial and error, which moves are good and bad. It doesn't try to predict which move would be 'best'. Anyways, if you want to try out the game or compile the source code, here's a link to the zip file which contains the .exe and project/source files. I think my next project will be the AI for tic-tac-toe.
clicking on the link says

" the link to this file has expired"

can u post ur code as reply i would like to see it ...
Advertisement
I suggest using filebeam/filefront/rapidshare to host the file.

This topic is closed to new replies.

Advertisement