Article View: gnu.chess
Article #5175Re: Bug in PawnValue
From: Chua Kong Sian
Date: Fri, 08 Apr 1994 09:01
Date: Fri, 08 Apr 1994 09:01
33 lines
1685 bytes
1685 bytes
Roger Uzun (uzun@crash.cts.com) wrote: : In 4pl69 the line in question in pawnvalue, is already as : below: : In PawnValue () in eval.c, there is a slight bug. The line : in question already appears as below: : if (rank != 0 && color[sq-8] == white && board[sq-8] == pawn) : s -= PCRASH; : This is what yourecommended to change it to, but it is already : sq-8 in pl69, is this correct? Should we change it to sq+8? : Were you thinking of rank != 7? : -Roger : -------------------------------------------------------------- : bix: ruzun : NET: uzun@crash.cts.com Strange. The pl69 which I obtained from prep.ai.mit.edu shows if (rank != 0 && color[sq+8] == white && board[sq+8] == pawn) s -= PCRASH; which is WRONG. Where did you get your pl69 from? The CORRECT line should be if (rank != 0 && color[sq-8] == white && board[sq-8] == pawn) s -= PCRASH; If you already have that, then fine, don't change anything. PS. No, I was not refering to the line which has rank != 7. That line is correct and needs no changing. Kong Sian
Technical Details
Message-ID:
<2o36gu$9b1@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksReferences:
<2o0mi1$ne4@nuscc.nus.sg> <Cnx753.JMG@crash.cts.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,c0da08b1980cb9a X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-04-08 02:01:18 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: Re: Bug in PawnValue Date: 8 Apr 1994 09:01:18 GMT Organization: National University of Singapore Lines: 33 Message-ID: <2o36gu$9b1@nuscc.nus.sg> References: <2o0mi1$ne4@nuscc.nus.sg> <Cnx753.JMG@crash.cts.com> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]