|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
[Blackjack] RE: RE: Results
Quote:
Agreed...I too would like to run your script. The way you see it on FTP is how it came through in mail. I just double checked by pulling the attachment from the mail again just to be sure. I also check it in three different editors, and also simply paged it with more. The extra characters are there in every instance. I tell you what, why don't you tar and gzip a good copy and send it to mattATcodewalkers.com. If you can get a good one through to me, I will happily run it against the entire data set. Also, I do have notes about each disqualified script at my work. I apologize as I meant to post them already. I won't be back at work until Friday, but I will post the notes and rejudge your script at that time. |
|
#17
|
|||
|
|||
|
[Blackjack] RE: Results
For those interested, I put a zipped version of my script here. I just put together my own 'judging' script and I would have gotten 1024237...good enough for 10th place.
|
|
#18
|
|||
|
|||
|
[Blackjack] RE: Results
I have located the problem. It seems that it is a problem with my MTA. Well, it's not really a problem. The rfc dictates that lines coming through the MTA should not be longer than 900 chars. So, the MTA cuts them off. If the attachment had been encoded in some way, this wouldn't have been a problem.
Anyway, I now have a good script and will run the judging on it Friday. Please continue to scrutinize the other scripts |
|
#19
|
|||
|
|||
|
[Blackjack] RE: Results
Congrats Zulan!
Hmphzz... 16th place for me :-S i didn't expect it to be so bad... Well, maybe better luck next time... Thanx guys for the competition! |
|
#20
|
|||
|
|||
|
[Blackjack] RE: RE: Results
Quote:
My judge gave you 1019980 tested with a few other scripts producing the same scores. Was there actually any script using more than 1s / game.. Have not spotted one yet. Best Regards Thomas Ilsche aka Zulan |
|
#21
|
|||
|
|||
|
[Blackjack] RE: Results
26 was using a fair bit of time...
|
|
#22
|
|||
|
|||
|
[Blackjack] RE: Results
I am glad I just ended in the black, all my script was designed to do =]
|
|
#23
|
||||||||||
|
||||||||||
|
[Blackjack] RE: Results
I created a makeshift judging script.
I put all the entry folders (1 through 37, minus the disqualified entries... I realized after I forgot to run the latest version of number 27) in /var/www/html/contests/blackjack, along with blackjacklib.php and my own judge.php. php Code:
I modified blackjacklib.php's StartGame() function to grab the information from the latest random game.txt file. Judge.php simply loops through the players, and makes a new random game for each round, so that everybody plays the same games. php Code:
I then ran judge.php for 1000 games (I started it last night, and it finished in the morning). The final results are listed below. It should be noted that each script's total is the sum of its total return from each game (final amount-1000). In other words, if you played two games, and got $800 and $1201, your total would be $1. Quote:
This is interesting (note that this was made by hand... there could be a mistake): Quote:
There are some very blatant contradictions when comparing my results to the Codewalkers results. I might have done something wrong in my judge script, so you should scrutinize that. |
|
#24
|
|||
|
|||
|
[Blackjack] RE: Results
I ran my judge script again last night, and came up with these results:
Quote:
|
|
#25
|
|||
|
|||
|
[Blackjack] RE: Results
That must have been a really slow machine.
My script is heavy time intensive and optimized for the judge system (2.4GHz Xeon machine). Try this script: http://codewalkers.com/contests/spades/timer.txt on your machine, it takes 5s on the judge. My script also contains a "random factor" so when it would be ran on the judge machine again it might have different results. It decides how detailled the calculations are done on the time left, and if the machine for whatever reason takes a millisecond longer that *might* lead to differnt results. I'm also very keen on the judgeing script Matt used. Best Regards Thomas Ilsche |
|
#26
|
|||
|
|||
|
[Blackjack] RE: Results
Well anyway your 2 results are sooo different so there must be a real problem. Most scripts should have the exactly same values if you run them twice!
Regards Zulan |
|
#27
|
|||
|
|||
|
[Blackjack] RE: Results
All my notes, scripts, and everything is at work and things have been crazy the past couple of days. We will get all this worked out on Monday....
|
|
#28
|
|||
|
|||
|
[Blackjack] RE: Results
The second time I ran my judging script, I ran it with a different set of 1,000 games, since the games are always generated at run time by my judging script. My judging script does work in such a way, however, that every script plays the same 1,000 games (same with Matt's judging script). Really the point I'm trying to make is that the judging script needs to run a lot more than 1,000 games (or run every possible game
|
|
#29
|
|||
|
|||
|
[Blackjack] RE: RE: Results
Quote:
Well what computer your running that on, is it idle? Im interested in this because I find it highly doubtful that my script does generate negative results on that numbers with having decent resources. Lets wait for Matts judging scripts. Anyway if there was no real bug in the judge script I assume this results to be final, the judge even did 1000 games instead of the announced 160 ones seems a bit late to complain about that now. [edit] Maybe you got max_time not set to 60 but to 30. That would also change alot in the results towards the ones of matt. Regards Zulan |
|
#30
|
|||
|
|||
|
[Blackjack] RE: Results
My judging script was running on an idle machine (Pentium 4 1.9GHz with 256MB RAM, running Red Hat Linux). I actually didn't even take the 60 second time limit into consideration... none of the scripts were taking nearly that long to run anyway.
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Blackjack] Results |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|