STUCI classic time patch

STUCI auto chess program for yahoo

STUCI classic time patch

Postby zappa_engine » 10 Mar 2009 02:14

Inside sub top_style12, make these modifications to allow polyglot to adjust to lag and prevent losing because it didn't get a chance to make enough moves.

my $timebuffer=8; <-- I use an 8 second buffer, it can be set to user preference
my $wtime=int(&top_timeleft($table,0)/1000)-$timebuffer;
my $btime=int(&top_timeleft($table,1)/1000)-$timebuffer;
if ($wtime < 0) { $wtime = 0 }; <-- Since the time is subtracted from the true time, we could get negative numbers. Instead, we'll just pass over 0 for failsafe.
if ($btime < 0) { $btime = 0 }; <-- Same as comment above, black time

I'm sure programmers will know how to add this to their code, and even set a variable to adjust the timebuffer inside game. If they want to get advanced, they can do analysis of ping and adjust the time buffer based on that, like if ping is 250ms, and we want to at least play the last 20 moves speedily, we multiply 20 by .250 and that gives us a time buffer of 5 seconds.
http://www.youtube.com/watch?v=gNASSON_JMU
Concerning STUCI and why it's never really done... here's a metaphor: Instead of being a construction worker, I'd rather be an architect.
Losing too many games because of a slow PC? No problem, nUCI it!
User avatar
zappa_engine
Moderator
Moderator
 
Posts: 117
Joined: 09 Oct 2007 23:28

Re: STUCI classic time patch

Postby matematiko » 10 Mar 2009 04:40

Thanks zappa_engine
Very good points....the combinations are many...so use your imagination guys.

Cheers,

Using engines to cheat:
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.
User avatar
matematiko
Co-Admin
Co-Admin
 
Posts: 932
Joined: 17 Oct 2007 13:32
Location: Texas USA


Return to STUCI

Who is online

Users browsing this forum: No registered users and 0 guests