🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5021

Patches for eval.c

#5021
From: Chua Kong Sian
Date: Sat, 28 May 1994 01:24
46 lines
2235 bytes
Here is a patch to fix a couple of problems in pl70.  One fixes the
pawn ram code and the other fixes the buggy pawnstorm code.

Kong Sian


*** /usr/people/kongsian/gnuchess-4.0/src/eval.c	Tue May 10 05:44:21 1994
--- eval.c	Sun May 22 10:01:07 1994
***************
*** 1356,1362 ****
  		if (PC2[fyle] == 0) s += PWEAKH;
  		if (color[sq - 8] != neutral) s += PBLOK;
  	    }
! 	  if(rank != 0 && color[sq-8] == white && board[sq+8] == pawn) s -= PCRASH;
  	  if (PC2[fyle] == 0)
  	    {
  		r = rank + ((side == white)?1:0);
--- 1356,1362 ----
  		if (PC2[fyle] == 0) s += PWEAKH;
  		if (color[sq - 8] != neutral) s += PBLOK;
  	    }
! 	  if(rank != 0 && color[sq-8] == white && board[sq-8] == pawn) s -= PCRASH;
  	  if (PC2[fyle] == 0)
  	    {
  		r = rank + ((side == white)?1:0);
***************
*** 1782,1789 ****
  	Developed[black] = (board[57] != knight && board[58] != bishop &&
  			    board[61] != bishop && board[62] != knight);
  /* Pawn Storm */
!     if (!PawnStorm && stage < 5)
! 	PawnStorm = ((column (wking) < 3 && column (bking) > 4) ||
  		     (column (wking) > 4 && column (bking) < 3));
  /* setup base tables */
      memcpy(Mknight[white],pknight,sizeof(pknight));
--- 1782,1790 ----
  	Developed[black] = (board[57] != knight && board[58] != bishop &&
  			    board[61] != bishop && board[62] != knight);
  /* Pawn Storm */
! /*    if (!PawnStorm && stage < 5)*/
!     PawnStorm = (stage < 5) &&
! 	           ((column (wking) < 3 && column (bking) > 4) ||
  		     (column (wking) > 4 && column (bking) < 3));
  /* setup base tables */
      memcpy(Mknight[white],pknight,sizeof(pknight));
Technical Details
Message-ID: <2s66fr$h7m@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!gmd.de!nntp.gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,429405cb09558795,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-05-27 20:01:55 PST
Path: arc1-ca.pugleaf.net!gmd.de!nntp.gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks
From: nsrccks@leonis.nus.sg (Chua Kong Sian)
Newsgroups: gnu.chess
Subject: Patches for eval.c
Date: 28 May 1994 01:24:11 GMT
Organization: National University of Singapore
Lines: 47
Message-ID: <2s66fr$h7m@nuscc.nus.sg>
NNTP-Posting-Host: leonis.nus.sg
X-Newsreader: TIN [version 1.2 PL0]