Cute Chess  0.1
Public Member Functions | List of all members
EpdRecord Class Reference

An EPD (Extended Position Description) record. More...

#include <epdrecord.h>

Public Member Functions

 EpdRecord ()
 
QString fen () const
 
bool hasOpcode (const QString &opcode) const
 
QStringList operands (const QString &opcode) const
 
bool parse (QTextStream &stream)
 

Detailed Description

An EPD (Extended Position Description) record.

EPD describes chess positions and operations that can be performed at those positions. Normally EPD is used to build test suites of challenging positions that a chess engine can try to solve, but they can also be used as an opening suite for picking different starting positions for a series of games.

EPD at the Chess Programming Wiki: http://chessprogramming.wikispaces.com/Extended+Position+Description

At the moment the EpdRecord class can be used to parse individual records from EPD files, but in the future it may also be used to build new EPD test suites etc.

See also
OpeningSuite

Constructor & Destructor Documentation

EpdRecord::EpdRecord ( )

Creates a new empty EPD record.

Member Function Documentation

QString EpdRecord::fen ( ) const

Returns the record's FEN string.

bool EpdRecord::hasOpcode ( const QString opcode) const

Returns true if the record contains an opcode that matches opcode; otherwise returns false.

QStringList EpdRecord::operands ( const QString opcode) const

Returns the list of operands for opcode. An empty list is returned if the operation doesn't have any operands.

bool EpdRecord::parse ( QTextStream stream)

Reads and parses a record from stream. Returns true if successful; otherwise returns false.


The documentation for this class was generated from the following files: