Thread: Explain how the minimax function works for ai in a game of connect 4

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    1

    Question Explain how the minimax function works for ai in a game of connect 4

    Hi, I've been working on a c++ game of connect 4. It uses a multidimensional array, and I have a function that is capable of checking if someone has won. However, ai is really bugging me. I've tried to do some research on this minimax thing, but I couldn't find anything helpful. If someone could explain how it would work for a game of connect 4 in layman's terms (maybe with psuedocode) or refer me to some websites that will actually help me understand, I would greatly appreciate it.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    If you have never used minimax before, try to do something simpler first. Like tic-tac-toe.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Connect four game - Works and would like input
    By simpleblue in forum Game Programming
    Replies: 13
    Last Post: 11-25-2011, 02:20 PM
  2. Connect 4 Minimax
    By appleGuy in forum C++ Programming
    Replies: 7
    Last Post: 02-17-2011, 12:10 AM
  3. Connect Four game...need help
    By Ion Blade in forum C++ Programming
    Replies: 2
    Last Post: 06-18-2002, 06:18 PM
  4. Pls explain how this program works...
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 01-05-2002, 09:53 AM
  5. Can someone explain how this function works?
    By Drew in forum C++ Programming
    Replies: 1
    Last Post: 12-26-2001, 01:09 PM