Connect 4 AI Agent

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Feb 2005
Posts: 78
Reputation: nanodano is an unknown quantity at this point 
Solved Threads: 2
nanodano's Avatar
nanodano nanodano is offline Offline
Junior Poster in Training

Connect 4 AI Agent

 
0
  #1
Nov 9th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 78
Reputation: nanodano is an unknown quantity at this point 
Solved Threads: 2
nanodano's Avatar
nanodano nanodano is offline Offline
Junior Poster in Training

Re: Connect 4 AI Agent

 
0
  #2
Nov 10th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Connect 4 AI Agent

 
0
  #3
Nov 12th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC