🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1950

Re: Seeking Easy Way to Calculate Legal Moves

#1950
From: Simon Waters
Date: Mon, 13 Aug 2001 22:48
21 lines
2039 bytes
Ed Suominen wrote:
> 
> calculate all legal moves (including captures, castling, etc.) for one
> side given a particular board position. It looks like GNU Chess has
> what I need, in the nextpos and nextdir arrays, but I would rather not
> take the time to figure out the code that generates those arrays.

I assume your looking at GNU chess 4? The code in GNU chess 5
for move generation is fairly readable (Leastwise it was the
first bit I understood).

GNUchess 5's rare ability to make illegal moves is (in all cases
we've figured out so far) more to do with the tree handling than
the move generation.

Afraid I'm not familiar with the version 4 code base.

-- 
Are you using the Internet to best effect ? www.eighth-layer.com
Tel: +44(0)1395 232769      ICQ: 116952768
Moderated discussion of teleworking at news:uk.business.telework
Technical Details
Message-ID: <3B78593E.16D5AB79@wretched.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.149.160.21!isdnet!195.200.0.51.MISMATCH!shale.ftech.net!news.ftech.net!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
References: <42bca911.0108131350.5d9dd143@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,4012bb1dd5ae9e1b
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2001-08-13 15:53:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.149.160.21!isdnet!195.200.0.51.MISMATCH!shale.ftech.net!news.ftech.net!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
From: Simon Waters <Simon@wretched.demon.co.uk>
Newsgroups: gnu.chess
Subject: Re: Seeking Easy Way to Calculate Legal Moves
Date: Mon, 13 Aug 2001 23:48:30 +0100
Organization: Eighth Layer Limited
Message-ID: <3B78593E.16D5AB79@wretched.demon.co.uk>
References: <42bca911.0108131350.5d9dd143@posting.google.com>
NNTP-Posting-Host: wretched.demon.co.uk
X-NNTP-Posting-Host: wretched.demon.co.uk:193.237.109.203
X-Trace: news.demon.co.uk 997743125 nnrp-10:3096 NO-IDENT wretched.demon.co.uk:193.237.109.203
X-Complaints-To: abuse@demon.net
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: en-GB, en-US, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21