[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Bug report
From: |
Marek |
Subject: |
[Bug-gnubg] Bug report |
Date: |
Sun, 6 Apr 2003 21:05:03 +0200 |
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] Bug report,
Marek <=