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:
  #1  
Old May 23rd, 2004, 08:50 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[appleeaters]Faster Robotslib?

Is it just me, or is anyone else finding the 60 seccond limit kinda tough? I think that the robotslib could be (and should be) made faster..

My suggestion is to instead of haveing have an array of all robots, and an array of all apples (each with their own array of coordinates), have a single multi dimensional array for the entire board. So if there was a robot at position (500,251), you could find it in $board[500][251]. This would allow you to write faster algorithms to find the closest apple/robot by simply running an algorithm that spirals out from the location of the player until it finds the first apple or the first robot. This would keep the algorithms from having to loop over every single robot/apple and give the code developers (us) more freedom in the complexity of algorithms we can run.

In each $board[$x][$y] you could have another array with properties...

example: $board[$x][$y] = array('apple'=>true,'robot'=>false,'deadrobot'=>true);

Its probably too late for you guys to do this, because it would change the way that the returned $game variable looks, but I think that this would make things much better.

Btw... what kind of scores is everyone else in here getting with their algorithms? (just so I can get an Idea of what I am up against..) Currently, my *best* (fluke) score is 2611 (this happened because there were only about a dozen robots spawned), but my average score that I am getting now is ~ 450 but my algorithm is still under construction.


Also, one other quick question.. What kind of server/pc are you going to be running this on? Because the amount of processing done in the 60 seccond timeout limit will vary from machine to machine...



Reply With Quote
  #2  
Old May 23rd, 2004, 08:57 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[appleeaters]RE: Faster Robotslib?

I'm averaging around 1600 points and my highest was 40561 which took 1551 moves. If your having problems with the 60 second limit try developing different stratgies based on the amount of robots/apples.

I think all the complaining about the time limit is bogus just think harder.


Reply With Quote
  #3  
Old May 23rd, 2004, 08:59 PM
ermau ermau is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 ermau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[appleeaters]RE: Faster Robotslib?

Its not bogus, the library wasn't written with speed in mind which is unfair to penalize us for.

Reply With Quote
  #4  
Old May 26th, 2004, 09:14 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
[appleeaters]RE: Faster Robotslib?

duplicate thread. continue there.. locked..

http://codewalkers.com/forum/?action=displaythread&forum=currentcontest&id=26

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [appleeaters]Faster Robotslib?


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 5 hosted by Hostway
Stay green...Green IT