GameBoard constructor
const
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
If boardPieces
, sentePiecesInHand
or gotePiecesInHand
are null, they are defaulted to empty
Implementation
const GameBoard({
required List<BoardPiece>? boardPieces,
required List<BoardPiece>? sentePiecesInHand,
required List<BoardPiece>? gotePiecesInHand,
}) : boardPieces = boardPieces ?? const [],
sentePiecesInHand = sentePiecesInHand ?? const [],
gotePiecesInHand = gotePiecesInHand ?? const [];