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

CIF - Game Info - Characteristics


<xs:complexType name="Characteristics"> <xs:all> <xs:element name="gamedate" type="Date" minOccurs="0"/> <xs:element name="gametime" type="Time" minOccurs="0"/> <xs:element name="result" type="Result" minOccurs="0"/> <xs:element name="termination" type="Termination" minOccurs="0"/> <xs:element name="round" type="Round" minOccurs="0"/> <xs:element name="board" type="xs:nonNegativeInteger" minOccurs="0"/> <xs:element name="plycount" type="PlyCount" minOccurs="0"/> </xs:all> </xs:complexType> <xs:simpleType name="Round"> <xs:union memberTypes="Token RoundAndSubround"/> </xs:simpleType> <xs:simpleType name="RoundAndSubround"> <xs:restriction base="xs:string"> <xs:pattern value="[0-9]+(.[0-9]+)?"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="PlyCount"> <xs:restriction base="xs:nonNegativeInteger"> <xs:maxInclusive value="32767"/> <!-- (2**15) - 1 --> </xs:restriction> </xs:simpleType>

Both round and sub-round values must be less than 256, and cannot be zero. The sub-round is optional. It's also possible to use any string as a round information, but some applications can only use the round/sub-round form.

<xs:simpleType name="Termination"> <xs:restriction base="xs:string"> <xs:enumeration value="Normal"/> <!-- Game terminated in a normal fashion --> <xs:enumeration value="ByForfeit"/> <!-- Opponent did not show up --> <xs:enumeration value="Abandoned"/> <!-- Abandoned game --> <xs:enumeration value="Adjudication"/> <!-- Result due to third party adjudication process --> <xs:enumeration value="Disconnection"/> <!-- Game terminated due to disconnection --> <xs:enumeration value="Emergency"/> <!-- Game concluded due to unforeseen circumstances --> <xs:enumeration value="RulesInfraction"/> <!-- Administrative forfeit due to losing player's failure. --> <xs:enumeration value="TimeForfeit"/> <!-- Loss due to losing player's failure to meet time control requirements --> <xs:enumeration value="DrawClaim"/> <!-- One side claimed a draw --> <xs:enumeration value="NoOpponent"/> <!-- Point given for game with no opponent --> <xs:enumeration value="Unterminated"/> <!-- Game not terminated --> <xs:enumeration value="DrawByLaw"/> <!-- Game is drawn due to a regulation (75 move rule, fivefold repetition, no mating material) --> </xs:restriction> </xs:simpleType>

Any other termination reason will specified as a PGN tag, with name Termination.

<xs:simpleType name="Result"> <xs:union memberTypes="ResultID NAG"/> </xs:simpleType>

A game has a regular result (see below), or the result is given as a NAG (Numeric Annotation Glyph). A game don't has any result if and only if no result element is specified.

<xs:simpleType name="ResultID"> <xs:restriction base="xs:string"> <xs:enumeration value="*"/> <!-- Game still in progress, game abandoned, or result otherwise unknown --> <xs:enumeration value="1-0"/> <!-- White won the game --> <xs:enumeration value="0-1"/> <!-- Black won the game --> <xs:enumeration value="1/2"/> <!-- The game was a draw --> <xs:enumeration value="0-0"/> <!-- The game was declared lost for both players --> </xs:restriction> </xs:simpleType>


Google translation

Share this page

C/CIF at Sourceforge

C/CIF at Sourceforge

C/CIF at Launchpad

C/CIF at Launchpad