Author: Gordon Swobe
Date: 19:41:38 01/03/99
Go up one level in this thread
On January 03, 1999 at 20:34:27, Robert Hyatt wrote:
>>I'm looking for code or advice for writing code to parse short algebraic
>>notation
>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...
Thanks Bob. How does WinBoard do it, for example? Essentially I want to be able
to emulate WinBoard's PGN file reading capability.
I have a visual chessboard control for displaying and moving the pieces. It has
a method which takes the column and row of any piece and moves it to a
destination column and row. For example 1.e4 looks like
m_ChessBoardCtrl.MovePiece(5,2,5,4);
It would be simple enough to convert long algebraic for use with this control,
if only I could find a way to convert short algebraic to long algebraic.
-gts
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.