xboard-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XBoard-devel] Re: [Bug-XBoard] Winboard bugs


From: Daniel Mehrmann
Subject: Re: [XBoard-devel] Re: [Bug-XBoard] Winboard bugs
Date: Sun, 22 Feb 2004 05:53:51 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040124

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Mann wrote:

Thanks Tim. I must say i never looked into this file. But this sound
easy for me. My first brain storming:

- -using type def struct for save data about each move.
- -each move have:
        -signend 32Bit Zorbist key (hash) over all pieces + castle right + ep +
OnMove: We need this to detect 3x draw position
        -unsigend char for castle right (Using 4 bits)
        -Counter for last taken piece (50 move rule)
        -unsigend char promotion store (4 bits)
        -64 field array for ep mask
Thats all very simple. We don't need a "high performance" stuff as my
engine do it ;)


Checking if pawn can go 2 fields that should your move generator do: if
2/7 = 2 fields otherwise 1.

My big problem is that i really have no glue about the chess rules of
other chess variants :( So i don't know what we need for this special
things. My engine plays only normal chess ;)

Tomorrow i will look into the file and then we will see what we really need.





| Well, moves.c already has a move generator in it.  It's just that its
| callers don't take the game history into account right now.  I think it
| also doesn't take a flag to say whether we're in the wildcastle variant,
| so you can castle from the d-file even when we aren't.  I'm pretty sure
| it does look for castling in/through/out of check.  What's mostly needed
| is to keep track of whether the kings and rooks have moved and which if
| any pawn was pushed two squares on the previous move.  You'd have to add
| in that information to make a different move generator handle these
| cases just as much as to make the current one handle them.
|
| On Sun, 22 Feb 2004 02:02:51 +0100, Daniel Mehrmann
<address@hidden> wrote:
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAODXfPt1V5Pj1nvYRAmvSAJ9aMlnMjJFyajhxPu/UMOzq3yFMBACghAcw
BWdcmDAuSSSmU1CKBVsGHsY=
=o8un
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]