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 August 8th, 2002, 06:57 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
let he be your JUDGE ;)

http://www.fazi.co.yu/z/ctf.zip

here is so wonted 'test' or 'judging' script...

i know i announced it two days ago, but i simply had to make it work in mozzila, nn and opera (and i had other stuff to do ;) )...

i also added some comments (still too few), a README file, and a DISCLAIMER!

Quote:
this script is distributed in the hope that it will be useful, but it is provided "AS IS" and WITHOUT ANY WARRANTY, without even the implied warranty...


that means that i am not responsible if my script works bad, and u make a bad robot to fit my judging script.

on the other hand, i hope this script helps many of you enter this contest...

comments? (how it works, IF it works ;) )

i would also like matt to give it a quick look, and post his comment...

Reply With Quote
  #2  
Old August 8th, 2002, 07:43 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
RE: let he be your JUDGE ;)


also in code galery...

well, only the same link as above, but with README file attached...

Reply With Quote
  #3  
Old August 9th, 2002, 10:29 AM
MrEasy MrEasy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Großherzogtum Baden / Germany
Posts: 5 MrEasy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to MrEasy
RE: let he be your JUDGE ;)

nice thing

thx

Reply With Quote
  #4  
Old August 10th, 2002, 01:59 AM
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
RE: let he be your JUDGE ;)

what? no comments yet?

and to remember that u rushed me to submit it here... ;)

Reply With Quote
  #5  
Old August 11th, 2002, 11:16 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
RE: let he be your JUDGE ;)

i just found a small error in my judging script.

while testing the judging script, i have set a number of death rays a robot can use to 50. when finished, i forgot to return this to 1.

a new version can also be downloaded from the same link as above...

Reply With Quote
  #6  
Old August 15th, 2002, 01:45 AM
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
RE: let he be your JUDGE ;)

me again...

webhappy has posted slightly better version of my judge.php script to the code galery.

i made a new version of my ctf.zip with his file, and it can be downloaded at the same ling above...

also, he noted some things, i think then should be noted here:
Quote:
This is from Zombie's, copy and replace this over Zombie's judge.php
You can set the time-out from the GUI.
VERY important, that I found out the hard way:
since your script is being included (and not executed as the real contest will be done), do NOT use global in your functions, as that looks for global variables in judge.php's global scope and NOT your capture.php's global scope.


i found a way to correct this... u have two choises...

1) go to the run() function, and change include() into a exec() function call, or

2) for every variable u declare as global in your function, declare it global at the beginning of the script also...


also note one more important thing... don't use die() in your scripts if u don't change the run() function in my script to exec()!

hope it helped someone...

Reply With Quote
  #7  
Old August 17th, 2002, 07:16 PM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: let he be your JUDGE ;)

I found it useful

Reply With Quote
  #8  
Old August 20th, 2002, 01:54 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
RE: let he be your JUDGE ;)

why does this command line thing have me so baffled...

Reply With Quote
  #9  
Old August 20th, 2002, 07:48 PM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: let he be your JUDGE ;)

Me too, I screwed the command-line thingy, and I just used zombie's testing script.

Well, I actually, I did do /php/php capture.php a few times, so I do think it'll work from the command-line.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > let he be your JUDGE ;)


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 3 hosted by Hostway