HOME XML-SCHEMA XML-EXAMPLES CHESS VARIANTS FBR MBN ANCP FAQ RESOURCES ABOUT

CIF - Start Position


<xs:simpleType name="StartPosition"> <xs:union memberTypes="IDN FEN StandardID"/> </xs:simpleType> <xs:simpleType name="IDN"> <xs:restriction base="xs:positiveInteger"/> </xs:simpleType> <xs:simpleType name="FEN"> <xs:restriction base="Token"/> </xs:simpleType> <xs:simpleType name="StandardID"> <xs:restriction base="xs:string"> <xs:enumeration value=":standard"/> </xs:restriction> </xs:simpleType>

A start position can be defined in three ways:

IDN (Unique Identification Number)

Chess 960 positions will be mapped to a position number between 1 and 960.

C/CIF is supporting an extended IDN for Shuffle Chess positions. The Shuffle Chess position number is derived from the Chess 960 position number in the following way (introduced by the application José):

  1. The king is between the two rooks, and all castling rights are given: this is a Chess 960 position. Thus the position number is between 1 and 960.
  2. The king is right from the rooks: the number for this Shuffle Chess position is between 961 and 1920.
  3. The king is left from the rooks: the number for this Shuffle Chess position is between 1921 and 2880.
  4. The king is between the two rooks, but no castling rights are given: add 3×960 to the corresponding Chess 960 position, thus the position number is between 2881 and 3840.

The C/CIF library provides utility functions for the conversion between FENs and IDNs.

FEN (Forsyth–Edwards Notation)

The start position may be given as a FEN. For chess variants an extended version of a FEN may be required, but currently extensions are only defined for some dedicated variants:

StandardID

The start position is the standard position of the specified chess variant. In standard chess the standard start position has position number 518.



Google translation

Share this page

C/CIF at Sourceforge

C/CIF at Sourceforge

C/CIF at Launchpad

C/CIF at Launchpad