Computer Chess Club Archives


Search

Terms

Messages

Subject: Programing: List of Pieces

Author: Martin Bauer

Date: 08:41:31 07/09/02


Hello,

I want to keep track about the pieces and their position on the board, so that
the move generator and the evaluation function are knowing where the pieces are
placed:

1. white bishop c1
2. black king g1
3. white pawn a2
and so on

No problem so far, but when doing a capture move the captured piece must be
deleted in the List. Is there a "trick" to find effiziently the position of that
captured piece in the List, to avoid sequetial search? Anyone knows an URL
whrere this is desribed?

Regards

Martin



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.