Move class sealed

Base class for a chess move.

A move can be either a NormalMove or a DropMove.

Implementers
Annotations
  • @immutable

Constructors

Move({required Square to})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Square
The target square of this move.
final
uci String
Gets the UCI notation of this move.
no setter

Methods

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

fromUci(String str) Move?
Constructs a Move from an UCI string.