|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
[Risk] Judge script bugfixes
There were some errors in the judge script that was posted. One error is that in the $moves array, the last line is incorrect. Thanks to sansone for pointing it out. (this is also present in player scripts).
Another bug was lack of tokens. Thanks to maxhb. Tokens were not actually distributed, only reported in the log. Finally, when soldiers were placed at random, again, they weren't actually placed.. I apologize for the inconvience. Updated script can be found at http://www.xs0.com/risk/judge.risk.php.txt. I'll also ask Matt to post the updated zip file. |
|
#2
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
I have posted a link to this thread on the contest page. Any bug fixes that come up can be posted here.
A note to participants, bug fixes are only official if posted by xs0! |
|
#3
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
$lands=trim(implode(file($map)));
should be $lands=trim(implode("",file($map))); |
|
#4
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
It works anyway (the arguments can be reversed and if one is missing, it defaults to empty string)...
|
|
#5
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
it does not work on my php 4.2.3 (running on mac os x)
|
|
#6
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
just found it - it wont work with versions prior to 4.3.0
|
|
#7
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
OK OK, I included the fix...
(but anyway - the official PHP version for this contest is 4.3.2, where it works fine |
|
#8
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
Some of the maps generated with the map generator seems to end up in infinite games, running forever.
-TheRat |
|
#9
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
URL called: http: //localhost/risk/therat/risk.php?youare=a&tokens=2&alltokens=2,
x,x,0&place=32&board=a224225,a30,a1,a10,a1,a1,a11,a1,a1,a1,a1,a5, a1,a1,a1,a1,a1, a1,a1,a1,a1,a12,a1,a1,a1,a1,a1,a1,a1,a1,a1,a1,a1,a 1,d21060,a1,a1,a1,a17,a1 Hrm.... I have enough soldiers (I am a), seems I gotta implement a better search & destroy method TheRat |
|
#10
|
|||
|
|||
|
[Risk] RE: RE: Judge script bugfixes
Quote:
You could benefit from the scripts I made for showing graphically what is happening on "gamelog.txt"... at KISS map topic! |
|
#11
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
I did try it, great asset really, thanks.
BUT, it seems to have a problem with long logs.. I ran the judgescript for a few hours last night ( > 400K turns) and it seems it cant read further than about 50 turns.. -TheRat |
|
#12
|
|||
|
|||
|
[Risk] RE: RE: Judge script bugfixes
I included the draw rule into the judging script, and also added support for graphical viewing of games (you'll need the zip file for this)
http://www.xs0.com/risk/risktest.zip http://www.xs0.com/risk/judge.risk.php.txt |
|
#13
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
Very nice board, xs0, as well as your good overall work in this contest.
At first I thought I had the honour to have my humble table map included... But yours is fine. However I still like mine the best, I even have a (very easy) variant to show more info on what's going on... Also I made a couple bugfixes. (Last turn & show some border between 16 and 17) About 10-turn draw rule... it's nice but draws are going to be rather common, I think. |
|
#14
|
|||
|
|||
|
[Risk] RE: Judge script bugfixes
I'd like to participate. I got the demo all up and running...my problem is this...the author of the demo code does nothing to comment what he has done...I don't even know what the functions do. Some names give hints...
I could go in and try to pick it all apart... |
|
#15
|
||||
|
||||
|
[Risk] RE: Judge script bugfixes
Quote:
Why do you think so? A deliberate draw only helps the weaker player, and the stronger player should be able to conquer a land in 10 turns, I think... When I play against a computer, I usually win by turn 10 ;) Quote:
well, it's not demo code |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Risk] Judge script bugfixes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|