943,985 Members | Top Members by Rank

Ad:
Nov 9th, 2005
0

Connect 4 AI Agent

Expand Post »
I was just curious is anyone has ever programmed a AI agent for Connect 4. I'm currently working on one right now for a class. I'm working on using backtracking/recursion to solve it. If you have, did you use recursion? Just curious what other methods are out there. I am programming it in C++ and I'm almost done(happy) with it. I'll share the source, if anyone is interested in playing it, or just looking at the code.
- Daniel
Similar Threads
Reputation Points: 36
Solved Threads: 2
Junior Poster in Training
nanodano is offline Offline
78 posts
since Feb 2005
Nov 10th, 2005
0

Re: Connect 4 AI Agent

Ok, I think I finished it. If anyone has some spare time, please play it! Tell me what you think. I know the game itself isn't so high tech, but it is a school project, and the point was not to make the game fancy. The emphasis was on the AI agent. Try to beat it, and let me know if you find any flaws. I uploaded a win32 standalone executable here:

http://students.csci.unt.edu/~jdl0107/conn4.exe

Go ahead and scan it for virii if you don't trust me, but I promise, it's safe =). I also have the source code available if anyone is interested. It compiles with G++ and Visual Studio .NET 2003.

Enjoy.
Reputation Points: 36
Solved Threads: 2
Junior Poster in Training
nanodano is offline Offline
78 posts
since Feb 2005
Nov 12th, 2005
0

Re: Connect 4 AI Agent

Pretty cool. I actually started writing a console connect four game in c++ this morning. I'm done with it, but it's only two player. Shortly I'll be working on it for human vs computer.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: converting vrml 1.0 to 2.0
Next Thread in Computer Science Forum Timeline: Hi Access Date Problem (> Now +7 Days And < Now +2 Months)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC