Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to parse moves?

Author: Robert Hyatt

Date: 17:34:27 01/03/99

Go up one level in this thread


On January 03, 1999 at 18:01:54, Gordon Swobe wrote:

>I'm looking for code or advice for writing code to parse short algebraic
>notation to long algebraic, e.g., from "1.e4 e5" to "1.e2-e4 e7-e5". This will
>be for use in a PGN reader that I am writing in C++/MFC.
>
>Any advice, code, resources, etc would be appreciated. Thanks!
>
>-gts


the best way is to write some code to generate all legal moves for a
position, and then use the algebraic input to weed out moves from this
list, hopefully ending up with only one move left.  This is the simplest
way to do this I know of...




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.