Move class sealed

Base class for a chess move.

A move can be either a NormalMove or a DropMove.

Implementers
Annotations
  • @immutable

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
squares Iterable<Square>
Returns an iterable of all squares involved in this move.
no setter
to Square
The target square of this move.
final
uci String
Gets the UCI notation of this move.
no setter

Methods

hasSquare(Square square) bool
Returns true if square is a square of this move.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(String str) Move?
Parses a UCI string into a move.