Google Answers Logo
View Question
 
Q: PHP MinMax ( No Answer,   0 Comments )
Question  
Subject: PHP MinMax
Category: Computers > Software
Asked by: j_philipp-ga
List Price: $30.00
Posted: 09 Jan 2005 09:20 PST
Expires: 08 Feb 2005 09:20 PST
Question ID: 454543
I'm looking for a simple recursive PHP solution for the Min-Max
algorithm for a game of Connect 4.

Given are:
    2d array:      &$board[][]
      dimensions: x = 1-7 (horizontal squares, 1 is left, 7 is right)
                  y = 1-6 (vertical squares, 1 is top, 6 is bottom)
      values:     0 = empty
                  1 = yellow (starts)
                  2 = red
    $current_counter: the piece which moves now

The result should be the best slot from 1-7, up to a certain depth of
the search tree.

No display, HTML, input etc. are needed -- the only value I need is as
described above (from 1 to 7).

Thanks!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy