🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5092

Re: p67 & genmoves

#5092
From: Tim Mann
Date: Tue, 08 Feb 1994 22:25
20 lines
1809 bytes
In article <1994Feb8.064611.11458@hasler.ascom.ch>, mwm@hasler.ascom.ch (Mike McGann) writes:
>
>genmoves is used for 2 things in gnuchess. It is used to generate moves and it
>is also used to verify oponents moves. The old genmoves worked fine for generating
>moves but it generates illegal moves. So when it is being used to verify moves
>it will allow illegal moves.
>...
>Perhaps teh correct solution is 2 genmoves. 1 for generating and 1 for verification.

This sounds right to me.  Perhaps the genlegalmoves function (used for
verification) can be implemented as a call to genmoves, followed by
weeding out the illegal moves by testing each position to see whether
the king was left in check.  genlegalmoves doesn't have to be fast,
since it is used only for testing user input.  (Well, maybe it should
also be used to generate short algebraic notation on output, but
still, it would only be called once per move, or once per move output
in post mode, which is small compared to the number of nodes
searched.)

	--Tim
Technical Details
Message-ID: <2j93gd$o6u@src-news.pa.dec.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!zib-berlin.de!math.fu-berlin.de!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!spool.mu.edu!olivea!hal.com!decwrl!src.dec.com!src.dec.com!mann
References: <1994Feb8.064611.11458@hasler.ascom.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,b6ed7719ca9875d5
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-02-08 14:25:17 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!zib-berlin.de!math.fu-berlin.de!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!spool.mu.edu!olivea!hal.com!decwrl!src.dec.com!src.dec.com!mann
From: mann@src.dec.com (Tim Mann)
Newsgroups: gnu.chess
Subject: Re: p67 & genmoves
Date: 8 Feb 1994 22:25:17 GMT
Organization: DEC Systems Research Center
Lines: 20
Distribution: world
Message-ID: <2j93gd$o6u@src-news.pa.dec.com>
References: <1994Feb8.064611.11458@hasler.ascom.ch>
Reply-To: mann@src.dec.com
NNTP-Posting-Host: cypress.pa.dec.com