Article View: gnu.chess
Article #1507Re: Looking for advice in chess programing
From: Simon Waters
Date: Fri, 18 Oct 2002 17:53
Date: Fri, 18 Oct 2002 17:53
43 lines
2974 bytes
2974 bytes
Mind wrote: > > For the evaluation function am using an (elementary) evaluation based on > material balance and some consideration about development , pawn structures > and king protection : and this is my problem : this evaluation is very > elementary and making the program playing really bad. > > Am looking for considerations I may include in my evaluation function. > What is the vealuation function used in today chess prog (gnuchess for > example). What Am I missing ? any help is very appreciated (articles, web > refernces, source code). I listed out some the things Crafty uses it in evaluation function in the following note of computer chess. http://www.wretched.demon.co.uk/Chess.htm Mobility, and centralisation, are two terms you didn't mention, that feature heavily in most programs. GNU Chess uses a lazy evaluation, where the material deficit is larger than any previously seen positional compensation, it assumes a cut down evaluation function is sufficient to recognise a position where material has been lost unnecessarily. I think this will keep. GNU Chess also recognises specific ending in he evaluation function, so as to win KBNvK, or to try and evaluate KPvK quickly. GNU Chess and Crafty are both available as source, amongst other engines, if you need more ideas. > Is there some consideration for the size of the opening book (am using a > little book : 5 openings) ? Is this really important ? I think in opening books quality is as important as quantity, even if you only give it a handful of lines for each side, for as long as they are well thought out it'll still be playing good chess. Of course at the higher levels of chess a comprehensive knowledge of opening positions is necessary to avoid wasting time reinventing old analysis, at least computers don't tire whilst rediscovering old opening theory.
Technical Details
Message-ID:
<3DB04A8E.E394CE79@wretched.demon.co.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mailReferences:
<aopdhu$2qu$1@news-reader11.wanadoo.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,f52f8ecdcbddc873 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 2002-10-18 10:53:30 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Waters <Simon@wretched.demon.co.uk> Newsgroups: gnu.chess Subject: Re: Looking for advice in chess programing Date: Fri, 18 Oct 2002 18:53:18 +0100 Organization: Eighth Layer Limited Lines: 43 Message-ID: <3DB04A8E.E394CE79@wretched.demon.co.uk> References: <aopdhu$2qu$1@news-reader11.wanadoo.fr> NNTP-Posting-Host: wretched.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.demon.co.uk 1034963610 24250 193.237.109.203 (18 Oct 2002 17:53:30 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 18 Oct 2002 17:53:30 +0000 (UTC) X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.19 i686) X-Accept-Language: en-GB, en-US, en