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 30th, 2003, 12:01 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: 25
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 ...

Reply With Quote
  #2  
Old May 30th, 2003, 12:01 PM
cagrET cagrET is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Poland
Posts: 19 cagrET User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Matteo's script (winner) - do illegal moves ?

It was me ... session expired ...

Reply With Quote
  #3  
Old May 30th, 2003, 02:20 PM
marcel marcel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nieuw Vennep ,Netherlands
Posts: 108 marcel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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.

Reply With Quote
  #4  
Old May 30th, 2003, 02:43 PM
cagrET cagrET is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Poland
Posts: 19 cagrET User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
do you give the start param


Hey, im proffessional :-)

Quote:
he he...
trying to knok off the first 2 positions to get to first place


u catched me PP


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 :]

Reply With Quote
  #5  
Old May 30th, 2003, 07:14 PM
ciaccia ciaccia is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ferrara, Italy
Posts: 18 ciaccia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old May 30th, 2003, 07:16 PM
marcel marcel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nieuw Vennep ,Netherlands
Posts: 108 marcel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Matteo's script (winner) - do illegal moves ?

Quote:
and here is problem, not only on my computer Matteo's script does illegal moves ...


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.

Reply With Quote
  #7  
Old May 31st, 2003, 01:54 PM
cagrET cagrET is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Poland
Posts: 19 cagrET User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 ? ...

Reply With Quote
  #8  
Old May 31st, 2003, 02:05 PM
ciaccia ciaccia is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ferrara, Italy
Posts: 18 ciaccia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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...

Reply With Quote
  #9  
Old May 31st, 2003, 02:20 PM
cagrET cagrET is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Poland
Posts: 19 cagrET User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: Matteo's script (winner) - do illegal moves ?

Quote:
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...


k, give me 5 minutes

Reply With Quote
  #10  
Old May 31st, 2003, 02:24 PM
cagrET cagrET is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Poland
Posts: 19 cagrET User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 :]

Reply With Quote
  #11  
Old May 31st, 2003, 02:35 PM
ciaccia ciaccia is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ferrara, Italy
Posts: 18 ciaccia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: RE: Matteo's script (winner) - do illegal moves ?

Quote:
It works now correctly, in less than 1 second, moves are executed

ppl dont use zlib !


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:
Warning: Wrong parameter count for fgets() in /home/klienci/scg/public_html/cagret/trilite/marcel.php on line 498


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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Matteo's script (winner) - do illegal moves ?


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek