Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: "Piece List" - Administration?

Author: Andreas Guettinger

Date: 12:27:20 03/03/03

Go up one level in this thread


Thanks Russel, but that was not the problem I want to solve. I already have an
array similar to board[] that contains the locations of my pieces in the
piecelist.
Until now I just maintain a list which is not sorted. When a capture occurs, I
just swap the captured piece with the last piece and do figures--; in undomove()
I just add the piece at the last position and do figures++. Because of this, my
piecelist ist not sorted in the searchtree.  But a sorted list would make SEE
more easy, because I can start with the figure at the end of the list (lowest
values) and don't have to sort the attacking/defending pieces.
Danns idea would allow to maintain the piecelist sorted by value. What I don't
like about that idea that I would have to rewrite domove() genmove() etc. :-))

regards
Andy



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.