Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Quiescence vs swapoff

Author: Robert Hyatt

Date: 17:13:00 04/16/98

Go up one level in this thread


On April 16, 1998 at 09:38:29, Guillem Barnolas wrote:

>       Sorry, but hadn't read anything about swapoff before... could you
>sumarize how it works ??
>   I suppose i might get to date in such things.. should adquire a good
>book, but it's like everything, money... Could any of you also recommend
>me
>a good book to start on c.c programming ??
>
>      Thanxs and greetings from Guillem.


Here's the way I do it:

find all the pieces attacking the target "square", assume that the
least valuable piece captures the piece on square.  Then do the
same for the other side, and assume his least valuable piece will
recapture.  Continue this until one side has no more pieces that
can be used to capture on the target square.

now starting at the end, you "minimax" the scores back to the initial
position, which lets you at any ply make the capture (which means that
your opponent can recapture if he wants) or you can "stand pat" and
not capture again.  This gives a simple estimate of what's happening on
"square" although it overlooks things like pinned pieces, overloaded
pieces and so forth...



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.