ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RedQueen 1.1.1 on Mac OS X
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Ben-Hur Carlos Langoni



Joined: 16 Oct 2008
Posts: 449
Location: Milky Way

PostPost subject: Re: RedQueen 1.1.1 on Mac OS X    Posted: Mon Mar 26, 2012 2:30 pm Reply to topic Reply with quote

lucasart wrote:
bhlangonijr wrote:

Your "remaining_time" is actually what I have in the "time" variable.

Not exactly, because of all these horrible hacks:
Code:

      if (movesToGo<=2) {
         time=time*70/100;
      } else {
         time=time*99/100;
      }
...
      time=time*97/100;



On earlier versions I had a fixed time buffer and got a lot of problems when using Arena (under windows). Although it was working fine under Linux - cutechess-cli/XBoard (NOT with the incremental TC though - I was not testing very often with this TC before)
BTW, I agree about the "horrible hacks"..

Quote:

As I said you need only cap the time by the remaining time (with lag buffer). What about this ?
Code:

        ...
   return std::min(time-25, time/movesLeft+incTime);
}


Yes. It's simple and should fix the bug.
_________________
Ben-Hur Carlos Langoni Junior
http://sourceforge.net/projects/redqueenchess/
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Subject Author Date/Time
RedQueen 1.1.1 on Mac OS X Robert Purves Fri Mar 16, 2012 1:29 am
      Re: RedQueen 1.1.1 on Mac OS X Ben-Hur Carlos Langoni Fri Mar 16, 2012 7:53 pm
            Re: RedQueen 1.1.1 on Mac OS X Lucas Braesch Sat Mar 17, 2012 5:57 am
                  Re: RedQueen 1.1.1 on Mac OS X Ben-Hur Carlos Langoni Sat Mar 17, 2012 12:43 pm
                        Re: RedQueen 1.1.1 on Mac OS X Lucas Braesch Sat Mar 17, 2012 6:01 pm
                              Re: RedQueen 1.1.1 on Mac OS X Ben-Hur Carlos Langoni Sat Mar 17, 2012 6:19 pm
                                    Re: RedQueen 1.1.1 on Mac OS X Lucas Braesch Sun Mar 25, 2012 4:01 am
                                          Re: RedQueen 1.1.1 on Mac OS X Ben-Hur Carlos Langoni Mon Mar 26, 2012 2:30 pm
                                                Re: RedQueen 1.1.1 on Mac OS X Lucas Braesch Tue Mar 27, 2012 5:21 am
                                                      Re: RedQueen 1.1.1 on Mac OS X Ben-Hur Carlos Langoni Tue Mar 27, 2012 1:06 pm
                                                            Re: RedQueen 1.1.1 on Mac OS X Lucas Braesch Sun Apr 01, 2012 11:51 am
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads