Like Tree1Likes
  • 1 Post By rags_to_riches

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

This is a discussion on Explain how the minimax function works for ai in a game of connect 4 within the C++ Programming forums, part of the General Programming Boards category; Hi, I've been working on a c++ game of connect 4. It uses a multidimensional array, and I have a ...

  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,146
    If you have never used minimax before, try to do something simpler first. Like tic-tac-toe.

  3. #3
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,641
    Salem likes this.

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, 01:20 PM
  2. Connect 4 Minimax
    By appleGuy in forum C++ Programming
    Replies: 7
    Last Post: 02-16-2011, 11:10 PM
  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, 08:53 AM
  5. Can someone explain how this function works?
    By Drew in forum C++ Programming
    Replies: 1
    Last Post: 12-26-2001, 12:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21