Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Ambiguous moves in algebraic notation

Author: Sven Reichard

Date: 09:08:51 06/30/02

Go up one level in this thread


On June 28, 2002 at 18:58:03, Russell Reagan wrote:

>On June 28, 2002 at 05:26:20, Sven Reichard wrote:
>
>>I do a similar thing. I have the following class (a bit simplified and written
>>from memory):
>>
>>class SanNotation
>>{
>>public:
>>  SanNotation(const Game&, const Move*);
>>  SanNotation(const Game&, const std::string&);
>>
>>  const Move* getMove() const;
>>  const std::string getString() const;
>>private:
>>  // <snip>
>>};
>
>Do you have a Game class and a Position class? Or is there no position structure
>and only a game structure?
>
I have a Game class and a Board class. The Board class contains only what you
see on the board - i.e., just the pieces, although this is also where bitboards
will go in the future (if I decide to use them). The Game class contains a Board
and additional information, like side to move, castling rights, e.p. squares. I
use the Game class here because I need the additional information to determine
the correct notation.
>
>Thanks for the info. These will be very helpful.
You're welcome :)
Sven.
>Russell



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.