NormalMove class
Represents a chess move, possibly a promotion.
Constructors
- NormalMove({required Square from, required Square to, Role? promotion})
-
const
Properties
- from → Square
-
The origin square of this move.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- promotion → Role?
-
The role of the promoted piece, if any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to → Square
-
The target square of this move.
finalinherited
- uci → String
-
Gets UCI notation, like
g1f3
for a normal move,a7a8q
for promotion to a queen.no setteroverride
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.
override