![]() |
|
|
| 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! |
|
| There is no answer at this time. |
|
| There are no comments at this time. |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |