Sign in to follow this  
slayemin

My first AI program

Recommended Posts

slayemin    6099
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this