Article View: gnu.chess
Article #363GNU Chess state variables
From: Marcin Sacha
Date: Sun, 13 Nov 2005 18:46
Date: Sun, 13 Nov 2005 18:46
23 lines
2013 bytes
2013 bytes
Hi! First of all few words about my goal. I'm trying to develop stateless chess engine, that is, a routine which tells the next move on the chess board, depending on the current state of the game, passed as an argument. In other words, I'm trying to develop routine like this: Move getNextMove( GameState state ); GNU Chess project is perfect for my needs (because it is an open source project :) and I plan to refactor its code to get one routine, as shown above. But I'm not sure, which variables hold the game state, and which of them can be reinitialized at the begining of each call. As I read on the net and inspect the code, the gnu chess algorithm is generaly stateless and it depends on relatively small amount of variables. I figured out, that game state should contain this variables: board, Game, GameCnt, Game50, nmovesfrombook, cboard, ExchCnt. But maybe it's not enough? Can anybody help me, there are more variables, especially used for scoring and hashing? Thanx in advance. Marcin
Technical Details
Message-ID:
<Pine.GSO.4.62.0511131443200.29593@mion.elka.pw.edu.pl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!blackbush.cw.net!cw.net!newsfeed.cw.net!news-FFM2.ecrc.de!news0.de.colt.net!news-fra1.dfn.de!newsfeed.pionier.net.pl!news2.icm.edu.pl!news.pw.edu.pl!mion.elka.pw.edu.pl!msachaShow Full Headers
Complete Article Headers
X-Google-Thread: 10d71d,30c691b1a87c9173,start X-Google-Attributes: gid10d71d,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!blackbush.cw.net!cw.net!newsfeed.cw.net!news-FFM2.ecrc.de!news0.de.colt.net!news-fra1.dfn.de!newsfeed.pionier.net.pl!news2.icm.edu.pl!news.pw.edu.pl!mion.elka.pw.edu.pl!msacha From: Marcin Sacha <msacha@mion.elka.pw.edu.pl> Newsgroups: gnu.chess Subject: GNU Chess state variables Date: Sun, 13 Nov 2005 19:46:57 +0100 Organization: Warsaw University of Technology Lines: 23 Message-ID: <Pine.GSO.4.62.0511131443200.29593@mion.elka.pw.edu.pl> NNTP-Posting-Host: mion.elka.pw.edu.pl Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: julia.coi.pw.edu.pl 1131907628 7818 194.29.160.35 (13 Nov 2005 18:47:08 GMT) X-Complaints-To: usenet@pw.edu.pl NNTP-Posting-Date: Sun, 13 Nov 2005 18:47:08 +0000 (UTC)