Move class

A model representing a shogi game move

Annotations
  • @immutable

Constructors

Move({required PlayerType player, required PieceType piece, required Position? from, required Position to, bool isPromotion = false, bool isCapture = false, bool isDrop = false, String? asKif})
const

Properties

asKif String?
A representation of the move in kif notation
final
from Position?
The original position
final
hashCode int
The hash code for this object.
no setteroverride
isCapture bool
Whether the move captures an oppenent's piece
final
isDrop bool
Whether the move drops a piece onto the board
final
isPromotion bool
Whether the move promotes the piece
final
piece PieceType
The piece
final
player PlayerType
The player
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to Position
The new position
final

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 ==(dynamic other) bool
The equality operator.
override