Bishop class

Constructors

Bishop()

Properties

hashCode int
The hash code for this object.
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

Static Properties

chessPieces Map<String, PieceType>
no setter

Static Methods

file(int square, [BoardSize size = BoardSize.standard]) int
Gets the file for square, according to size.
onBoard(int square, [BoardSize size = const BoardSize(8, 8)]) bool
Determines whether a square is on the board.
rank(int square, [BoardSize size = BoardSize.standard]) int
Gets the rank for square, according to size.
square(int file, int rank, [BoardSize size = BoardSize.standard]) int
Returns the square index at file and rank, according to size.
squareName(int square, [BoardSize size = const BoardSize(8, 8)]) String
Returns the name for a square, according to chess conventions, e.g. c6, b1.
squareNumber(String name, [BoardSize size = const BoardSize(8, 8)]) int
Returns the square id for a square with name.

Constants

asciiA → const int
black → const Colour
boardStart → const int
colours → const List<Colour>
defaultPieceValue → const int
The value assigned to pieces that aren't explicitly valuated.
defaultSeed → const int
empty → const Square
fileA → const int
fileB → const int
fileC → const int
fileD → const int
fileE → const int
fileF → const int
fileG → const int
fileH → const int
fileI → const int
fileJ → const int
fileK → const int
fileL → const int
fileM → const int
fileN → const int
fileO → const int
fileP → const int
flagsStartBit → const int
The bit at which custom flags/state encoding starts in piece ints.
hand → const int
handBonusValue → const int
Pieces in hand are slightly more valuable.
initialStateBit → const int
The bit that represents whether a piece is in its custom state.
invalid → const int
mateLower → const int
mateUpper → const int
neutralHostile → const Colour
neutralPassive → const Colour
numPlayers → const int
playerDirection → const List<int>
playerName → const List<String>
rank1 → const int
rank2 → const int
rank3 → const int
rank4 → const int
rank5 → const int
rank6 → const int
rank7 → const int
rank8 → const int
rank9 → const int
rank10 → const int
rank11 → const int
rank12 → const int
rank13 → const int
rank14 → const int
rank15 → const int
rank16 → const int
unicodePieces → const Map<String, String>
version → const String
white → const Colour