bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Bug report


From: Joseph Heled
Subject: Re: [Bug-gnubg] Bug report
Date: Mon, 07 Apr 2003 11:03:30 +1200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202


Thanks. In the future, I would put 'Bug report (Documentation)' or such as the subject line.

-Joseph


Marek wrote:
File: eval.c

At line 113 there is (Race inputs description):

  /* (0 <= k < 14), RI_OFF + k = */
  /*                       1 if exactly k checkers are off, 0 otherwise
*/

But at line 1556 stays (CalculateRaceInputs):

    for(k = 0; k < 14; ++k) {
      afInput[ RI_OFF + k ] = (menOff == (k+1)) ? 1.0 : 0.0;
    }


I think this loop sets RI_OFF+k = 1 if exacly k+1 checkers are off, 0
otherwise. So the comment at line 113 should be (I hope CalculateRaceInputs is correct, only this comment is a mistake):

  /* (0 <= k < 14), RI_OFF + k = */
  /*                       1 if exactly k+1 checkers are off, 0
otherwise */



Sincerely,
Marek Turski
Poland

ps. sorry for poor english, I did my best ;-)



_______________________________________________
Bug-gnubg mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-gnubg







reply via email to

[Prev in Thread] Current Thread [Next in Thread]