🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1474

Re: Determine whether user is in check?

#1474
From: Simon Waters
Date: Wed, 02 Apr 2003 09:18
33 lines
2203 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yeremein wrote:
> I'm using GNU Chess 5.06 as a backend for a graphical chess program I'm
> writing.  Is there a way I can ask GNU Chess whether the human player is
> in check?

No, "show escape" gives an indirect answer (if it isn't mate).

> Also--can I ask GNU Chess whether a move is legal without actually
> making the move?

"show moves" should list legal moves.

The code has such tests, but they just don't have simple calls from the
text/xboard modes.

The format of the "show" command output is arbitary, in that it isn't
defined by the xboard protocol. If interchangable engines are important
to you, I suggest the Yahoo chess engines list is a good place to raise
such issues.

 Simon


-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+iqruGFXfHI9FVgYRAhbkAKCyT8+YNb3JpyAHtDhnlCYGBHN34wCgwpQk
h3kRiP4gAJdw7fwyNYrdGZ4=
=xUJj
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <b6ea06$iao$1$8300dec7@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
References: <b6do5g$ktf$1@terabinaries.xmission.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,4e33921e445802d2
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2003-04-02 01:20:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
From: Simon Waters <Simon@wretched.demon.co.uk>
Newsgroups: gnu.chess
Subject: Re: Determine whether user is in check?
Date: Wed, 02 Apr 2003 10:18:40 +0100
Organization: Eighth Layer Limited
Lines: 34
Message-ID: <b6ea06$iao$1$8300dec7@news.demon.co.uk>
References: <b6do5g$ktf$1@terabinaries.xmission.com>
NNTP-Posting-Host: wretched.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1049275207 18776 193.237.109.203 (2 Apr 2003 09:20:07 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 2 Apr 2003 09:20:07 +0000 (UTC)
In-Reply-To: <b6do5g$ktf$1@terabinaries.xmission.com>
X-Enigmail-Supports: pgp-inline, pgp-mime
X-Enigmail-Version: 0.71.0.0
X-Accept-Language: en-GB, en-US, en
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130