Article View: gnu.chess
Article #5778Re: Indian Chess?
From: Gilles Fayad
Date: Fri, 13 Mar 1992 18:27
Date: Fri, 13 Mar 1992 18:27
40 lines
2684 bytes
2684 bytes
In article <1992Mar13.114342.139660@link-1.ts.bcc.ac.uk> ucgadkw@ucl.ac.uk (Dominik Wujastyk) writes: >I am forwarding the following query from my friend Harry Falk. >- begin forwarded query ------------------------------------------------------ >From: harry <FALK@DE.UNI-FREIBURG.RUF.IBM> >a collegue asks me to put his question before this audience: >is there a computer program playing chess according to (ancient) Indian >rules: queen only moving one step diagonally, bishops not much brighter etc.? >If not: would it be possible to write a new or patch an existing program >to implement the necessary rules? >Harry >- end forwarded query -------------------------------------- I am not sure what you refer to as "ancient Indian chess". If my memory is correct, they have quite a lot of variations. (No wonder, chess was invented there...). Now, as to modify an existing source code to change the moves of the pieces, that can be easily done IMHO. Beside some careful screening of the whole code for "embedded" rules (like captures en passant and castling), you should be able to make straightforward modifications to specific arrays that describe the moves. Gnuchess has (if I recall well, again), 2 such arrays: 1 for directions, and 1 for steps. Of course, the patched code will play incredibly bad, since the evaluation function that contains all the heuristics will be no longer valid. That also can be changed by code screening, and by modifying some arrays (in Gnuchess again). Overall, the skeleton of the program and the search algorithm should be ok, even though they have been specifically engineered and optimized for European chess (timing considerations, etc...). I think it might be as much time-consuming to reverse-engineer the code of a chess program and adapt it to your needs than to build it from scratch, with the benefit of the accumulated experience in European chess programs. The people who wrote Gnuchess will surely be of better advice. gilles
Technical Details
Message-ID:
<1992Mar13.182702.318@thunder.mcrcim.mcgill.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!gillesReferences:
<1992Mar13.114342.139660@link-1.ts.bcc.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,7f8c357a2f07db5e X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1992-03-13 10:41:37 PST Path: arc1-ca.pugleaf.net!sparky!uunet!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!gilles From: gilles@Damrod.McRCIM.McGill.EDU (Gilles Fayad) Newsgroups: gnu.chess Subject: Re: Indian Chess? Keywords: India, chess Message-ID: <1992Mar13.182702.318@thunder.mcrcim.mcgill.edu> Date: 13 Mar 92 18:27:02 GMT References: <1992Mar13.114342.139660@link-1.ts.bcc.ac.uk> Sender: news@thunder.mcrcim.mcgill.edu Organization: McGill University, McRCIM Lines: 41 Nntp-Posting-Host: damrod.mcrcim.mcgill.edu