|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Matteo's script (winner) - do illegal moves ?
Matteo's script do illegal moves (cheating ?):
Try smth like that I start me: 3 matteo: 4 me: 0 matteo: 4 he puts again on the same field ... I have tested it on my Windows machine in home (4.3.1) I have also tested other combinations of moves, and never could finish games, because his script always has illegal moves On my linux server on Net (4.1.2) and on my friends linux machine (4.2) his script executes more than 500 seconds ... -- with Marcel script i have some error (on php 4.1.2): Warning: Wrong parameter count for fgets() in /home/klienci/scg/public_html/cagret/trilite/marcel.php on line 498 Cannot read from file (board.vars) -- my script works on each machine(4.1.2 , 4.2 , 4.3.1) - without any problems ... |
|
#2
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
It was me ... session expired ...
|
|
#3
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
he he...
trying to knok off the first 2 positions to get to first place ;) some clues on what can go wrong did you set the memory limit to 32MB? (thats what went wrong with my judging the first time) do scripts have write permissions in their own directory do you give the start param I did get 1 illegal move on script 8 in my last juge run. But it's the run at matt's that counts. |
|
#4
|
||||
|
||||
|
RE: Matteo's script (winner) - do illegal moves ?
and maybe Matt should check Matteo script manually ... maybe those positions i wrote ...
>> did get 1 illegal move on script 8 in my >> last juge run. But it's the run at matt's >> that counts and here is problem, not only on my computer Matteo's script does illegal moves ... u should have 1st place :]]] Quote:
Hey, im proffessional :-) Quote:
u catched me kidding, Your script works properly on my php 4.3.1 only on linux machine with old php - has problems And it never does illegal moves :] |
|
#5
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
I'm absolutely sure it doesn't make illegal moves!
I tested it with my own judge script many times, and it never made illegal moves, otherwise it would be noticed by the judge script. I've also used xs0 judge script (that tests for illegal moves, and I posted the results yesterday. If it made invalid moves, it wouldn't be first there too... I don't actually know what's the problem that prevents it to run correctly on some setups, but I suspect the problem is that I made use of the zlib extension to save the game session on file. If my script can't load the game history it could output wrong moves. As zlib extension is widely used and also built in on PHP4.3.1/Win32, I thought it wouldn't be a problem to make use of it. Let me know if this is *illegal* or is against the rules... I would really be interested to track down the problem... FYI I tested my script on the following platforms: - 2 Debian GNU/Linux (testing/unstable) with Apache 1.3.27 + PHP4.3.1, one of which had memory_limit set to 32MB - M$ Windows 2k with IIS + PHP4.3.1 as CGI |
|
#6
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
Quote:
Of course I would like that but nope. Rules say that if a player plays an illegal move it will loose that game. Nowhere it says it will get disqualified. So if Matteo's script got more points than everyone else, even with games lost due to illegal moves, he wins. |
|
#7
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
Its just strange for me, that I cant run ur script, i tried 3 machines
Do u really have to use this zlib ? ... |
|
#8
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
Could you please try to patch it doing a search/replace of gzopen/gzclose to fopen/fclose? I'm very curious to see if this was the problem...
I could even not use it: I made a test and the code is left there in the final version... |
|
#9
|
|||
|
|||
|
RE: RE: Matteo's script (winner) - do illegal moves ?
Quote:
k, give me 5 minutes |
|
#10
|
|||
|
|||
|
RE: Matteo's script (winner) - do illegal moves ?
:-)
It works now correctly, in less than 1 second, moves are executed http://scg.milc.com.pl/cagret/trilite/matteo.php on php 4.1.2 it even works :] marcel's script doesnt work :] ppl dont use zlib ! -- Marcel's script: Warning: Wrong parameter count for fgets() in /home/klienci/scg/public_html/cagret/trilite/marcel.php on line 498 Cannot read from file (board.vars) Its not chmod fault etc .. My script works, Matteo's works, ur doesnt :] |
|
#11
|
||||
|
||||
|
RE: RE: Matteo's script (winner) - do illegal moves ?
Quote:
Eheh, found the clue In future contests I won't use zlib anymore... ;) But if you don't have it compiled in you'll lose some great features like ob_gzhandler! Quote:
From PHP manual: The length parameter became optional in PHP 4.2.0, if omitted, it would assume 1024 as the line length. As of PHP 4.3, omitting length will keep reading from the stream until it reaches the end of the line. |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > Matteo's script (winner) - do illegal moves ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|