🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5547

bug in chess

#5547
From: Keith Fuller
Date: Sat, 27 Feb 1993 19:18
46 lines
1868 bytes
I am working on chess.c for Unix, the one that starts like this:
/*
    C source for CHESS               Rev. 3-10-87

    Written by John Stanback (hplabs!hpfcla!hpisla!hpltca!jhs)

    Patches for BSD Unix by Rich Salz (rs@mirror.TMC.COM) - 5/3/87
                  and Bill Randle (billr@tekred.TEK.COM) - 5/22/87
*/

I think there is a bug in this program; perhaps someone could comfirm
this.  The program will not let you castle sometimes when you should
be allowed to.

For example, try this:
Make the file chess.opn read like this

Alekine Defense
e2e4  g8f6
e4e5  f6d5
c2c4  d5b6
d2d4  d7d6
f2f4  d6e5
f4e5  b8c6
c1e3  c8f5
b1c3  e7e6
g1f3  f8e7
f1d3  o-o
!

With this being the only opening line in the book, you can proceed with
white as follows
d3f5  b6c4  <-- on level 1, computer will probably play this
f5h7  g8h8
d1d3  c4e3
d3e3  h8h7
o-o
except that chess will not let you play o-o.
Any comments?

______________________________________________________________________________
Keith Fuller          keithf@mcs.kent.edu   
"What's up?"          Obtaining an MA in        Ich bin ein Virus.
"Gimme five!"         Computer Science from     Mach' mit und kopiere
"Have a nice day!"    Kent State University     mich in Deine .signature.
Technical Details
Message-ID: <1993Feb27.191829.1220@mcs.kent.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!mcs.kent.edu!Nimitz.mcs.kent.edu!keithf

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,e344a9737e244318,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1993-02-27 11:18:29 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!mcs.kent.edu!Nimitz.mcs.kent.edu!keithf
From: keithf@Nimitz.mcs.kent.edu (Keith Fuller)
Subject: bug in chess
Message-ID: <1993Feb27.191829.1220@mcs.kent.edu>
Sender: news@mcs.kent.edu
Nntp-Posting-Host: nimitz.mcs.kent.edu
Organization: Kent State University
Date: Sat, 27 Feb 1993 19:18:29 GMT
Lines: 46