GameBoard class
A model representing a shogi game board
- Available extensions
Constructors
-
GameBoard({required List<
BoardPiece> ? boardPieces, required List<BoardPiece> ? sentePiecesInHand, required List<BoardPiece> ? gotePiecesInHand}) -
Creates a GameBoard with a list of board pieces
and sente's and gote's pieces in hand
const
- GameBoard.empty()
-
Creates an empty GameBoard
const
Properties
-
boardPieces
→ List<
BoardPiece> -
A list of board pieces
final
-
gotePiecesInHand
→ List<
BoardPiece> -
A list of sente's pieces in hand
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Returns whether the GameBoard is empty
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sentePiecesInHand
→ List<
BoardPiece> -
A list of sente's pieces in hand
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