• Advertisement

Archived

This topic is now archived and is closed to further replies.

Coonect 4 game examples

This topic is 5604 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can some post a few links to websites where I can download examples of the Connect 4 game, programmed in Visual Basic 5 or 6 please?

Share this post


Link to post
Share on other sites
Advertisement
Use a min-max algorithm. Value the board by giving one point to each possible connect 4 that is open to you plus one for each piece in it.

Share this post


Link to post
Share on other sites
I don''t know about connect 4, but there is an excellent series here on gamedev.net about chess programming, can be found in the articles and resources section under artificial intellgience, as lilbudywizer said your best bet is the mini max algorithm, although the chess stuff might have contain a lot which is irrelevant for you there is a good explanation of minimax. otherwise try any search engine for minimax, i''m sure you''ll find a vb implementation somewhere!

have fun!

moagstar

Share this post


Link to post
Share on other sites

  • Advertisement