Geschrieben von: / Posted by: Dann Corbit at 13 July 2000 09:55:38:
Als Antwort auf: / As an answer to: Re: Let Dr Chess 1.30.10 participate in any tournament. To Dann

geschrieben von: / posted by: Han at 13 July 2000 09:46:54:
What is this piece list? Can you give me an example that is as simple as TSCP?
So that it is easier to digest. Why not you write a draw detection for the tscp151 on your ftp? I will then look at the code there

If that is not possible, then just give me a simple example on that too, well the program just loves to repeat positions, and I find it hard to stop it:-)
A piece list is...
Err...
Um...
A list of pieces. Usually a list of black pieces and a separate list of white pieces. Often, the pawns are in the list too, or even separate lists for pawns.
Don't forget that ten bishops or knights are possible and also 9 queens.
Sometimes, the king square is also stored separately.
What's it for?
You don't have to iterate over each square of the board looking for what is there and what is not. You instantly know where all the pieces are. Makes evalutation go a lot better sometimes.
That's Tom's program. I mess around with it and make custom changes but I keep them to myself (except any [if any] Tom wants to add that I suggest). If Tom wants to make such changes and post them it is up to him.
Making wholesale changes to someone else's program and posting them back to the net is a bit hokey, unless it is only minor tweaky things {to my way of thinking}.
I actually have had a few exchanges with him on these notions, but I think he just wants to keep the code simple.
Lots of programs have piece lists (most of them, actually). If you want to see one, just download a few programs and nose around.
my ftp site