CastlingFormat enum

Determines how castling rights are represented in FEN strings. There are certain positions in variants such as Chess960, in which the standard 'KQkq' format could present an ambiguity. See this link for more details.

Inheritance

Constructors

CastlingFormat()
const

Values

standard → const CastlingFormat

The standard castling format labels rights as 'KQkq', regardless of the position of the rooks.

shredder → const CastlingFormat

Uses the letters for the files that the rooks start on to represent castling rights. For example, the default chess position's castling rights would be rendered as 'HAha'.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CastlingFormat>
A constant List of the values in this enum, in order of their declaration.