Article View: gnu.chess
Article #5170Bug in PawnValue
From: Chua Kong Sian
Date: Thu, 07 Apr 1994 10:16
Date: Thu, 07 Apr 1994 10:16
14 lines
822 bytes
822 bytes
In PawnValue () in eval.c, there is a slight bug. The line
if(rank != 0 && color[sq+8] == white && board[sq+8] == pawn)
s -= PCRASH;
should be changed to
if (rank != 0 && color[sq-8] == white && board[sq-8] == pawn)
s -= PCRASH;
Kong Sian
Technical Details
Message-ID:
<2o0mi1$ne4@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,c0da08b1980cb9a,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-04-07 03:16:33 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: Bug in PawnValue Date: 7 Apr 1994 10:16:33 GMT Organization: National University of Singapore Lines: 14 Message-ID: <2o0mi1$ne4@nuscc.nus.sg> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]