
May 21st, 2004, 12:55 PM
|
|
|
|
Join Date: Apr 2007
Location: Provo, Utah, USA
Posts: 17
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
[appleeaters]$game
I'm a little confused on the functionality of the library and its similarity to the real judging script, or lack of similarity for that matter. As far as I can tell, in the sample library, you have to name the array returned by start() as $game. It is then accessed globally in the class. How will this work in the competition? How will I get the updates from the system after every move?
If you were to use the same script for judging, I have a really effective program:
php Code:
Original
- php Code |
|
|
|
<? $robots = new robots(); $game = $robots->start(); // delete the robots $game['robots'] = array(); // add a few more apples for ($i= 0; $i< 40; $i++ ) $game['apples'][] = array(0, 0); // move once $robots->move(0); ?>
|