Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 21st, 2004, 12:55 PM
jinxidoru jinxidoru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Provo, Utah, USA
Posts: 17 jinxidoru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jinxidoru
[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
  1. <?
  2. $robots = new robots();
  3. $game = $robots->start();
  4.  
  5. // delete the robots
  6. $game['robots'] = array();
  7.  
  8. // add a few more apples
  9. for ($i=0; $i<40; $i++)  $game['apples'][] = array(0,0);
  10.  
  11. // move once
  12. $robots->move(0);
  13. ?>

Reply With Quote
  #2  
Old May 21st, 2004, 01:18 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
[appleeaters]RE: $game

A new version of the library has been posted. But, please note that attempts such as that would violate the spirit of the contest .

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [appleeaters]$game


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway