Article View: gnu.chess
Article #2172Re: swapoff function?
From: Simon Waters
Date: Tue, 26 Dec 2000 17:29
Date: Tue, 26 Dec 2000 17:29
22 lines
2062 bytes
2062 bytes
mink wrote: > > I try to understand the logic used in swapoff function ( the one used to > give the score to the generated move ) but still don't have any luck. Can > anyone here explain me in detail ? Swapoff is used to determine if it is safe to capture without actually growing the tree of possible moves. The idea being; if I can capture on a square with 2 pawns and you can capture only with pieces - even if I capture first I'll come out ahead in an exchange. So we calculate all the captures and order by the value of the capturing piece. It is used to order moves from the move generator as it helps make sure more of the search time is spent on captures that win rather than lose material. My experience with the code suggests that there may be less computationally complex ways of ordering moves, that may be as beneficial, or more so, than the swapoff. As the results of test cases have proved sensitive to minor changes to the code in sort.c
Technical Details
Message-ID:
<3A48D590.BE1990F4@wretched.demon.co.uk>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!colt.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mailReferences:
<9250pn$ics$1@news.ksc.co.th>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,b14285c4d889ef91 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 2000-12-26 09:30:04 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!colt.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail From: Simon Waters <Simon@wretched.demon.co.uk> Newsgroups: gnu.chess Subject: Re: swapoff function? Date: Tue, 26 Dec 2000 17:29:52 +0000 Organization: Eighth Layer Limited Message-ID: <3A48D590.BE1990F4@wretched.demon.co.uk> References: <9250pn$ics$1@news.ksc.co.th> Reply-To: Simon@wretched.demon.co.uk NNTP-Posting-Host: wretched.demon.co.uk X-NNTP-Posting-Host: wretched.demon.co.uk:193.237.109.203 X-Trace: news.demon.co.uk 977851793 nnrp-01:25951 NO-IDENT wretched.demon.co.uk:193.237.109.203 X-Complaints-To: abuse@demon.net X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.17 i686) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22