Computer Chess Club Archives


Search

Terms

Messages

Subject: Question about time.c in crafty

Author: Dave Kuntzsch

Date: 13:15:41 07/01/04


In blitz tournaments I run, Crafty always seems to leave a lot of time on the
table at the end, so I took look at time.c to see if there was a reason. There I
ran across the 'USAGE' .rc parameter and decided to specify that as 50 in
crafty.rc. It made no difference at all. I took a closer look at the code and
saw this:
time_limit *= 1.0 + usage_level / 100.0;

If the purpose is to increase the time limit by some percentage, shouldn't there
be parenthesis around the expression like this?
time_limit *= (1.0 + usage_level / 100.0);

Please correct me if I'm wrong.

Dave



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.