Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Minimum Number of Bytes - encode castling within kings coordinates

Author: Russell Reagan

Date: 21:54:50 12/23/03

Go up one level in this thread


On December 23, 2003 at 23:58:19, Reinhard Scharnagl wrote:

>you are describing just the big translation table, I have spoken of.
>
>I will try to explain the nature of a solution I would like to have
>(which is still not complete and in devlopment).
>
>Suppose the castling rigths are the following bits: bwl, bwr, bbl, bbr.
>
>a) if both kings are at original place,
>   encode Kw = kb = (bwl, bwr, 0, bbl, bbr, 0)
>b) if only the white king is at original place,
>   1) O-O only -> place him immediately over or under the black king
>   2) O-O-O only -> place him immediately right or left to the black king
>   3) both castlings -> ... still no idea, sorry
>c) if only the black king is at original place,
>   1) O-O only -> place him immediately NW or SE the white king
>   2) O-O-O only -> place him immediately NE or SW to the white king
>   3) both castlings -> ... still no idea, sorry
>
>That this moment is the direction I am thinking of a solution.

Why do you only use the relative locations of the two kings? Instead of using
north, south, east, west, and combinations of those, why not do it like this:

If white king on a1 and black king on b1, then ...
If white king on b1 and black king on c1, then ...
If white king on c1 and black king on d1, then ...
...
If white king on e4 and black king on d5, then ...
and so on...

As KarinsDad pointed out, you have 484 possibilities to work with there. You
could do all kinds of things to get extra states (not exceeding 484, unless some
new method is introduced). For instance:

If white king is NW of black king and white king is on the left half of the
board, then that means ...

If white king is SW of black king and white king is in the lower left quadrant
of the board, then that means ...

If white king is SW of black king and the kings are in different quadrants, then
that means ...

If the white king is N of the black king and the white king is on rank 4, then
that means ...

If the white king is W of the black king and the white king is on file g, then
that means ...

You can fill in the "..." to mean whatever you want. Am I overlooking something
that will prevent this from working?



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.