Board2 D
class Board2D(rows: Int, cols: Int, outOfBoundsRegion: Region2D?) : Board<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>
Content copied to clipboard
Implementation of the Board interface for a 2d square board. The board size is rows x cols and each coordinate can have upto one Piece2D.
Constructors
Functions
addPiece
Link copied to clipboard
clearBoard
Link copied to clipboard
open override fun clearBoard()
Content copied to clipboard
getBoardState
Link copied to clipboard
getPiece
Link copied to clipboard
getPieceCoordinate
Link copied to clipboard
getPieces
Link copied to clipboard
isInBounds
Link copied to clipboard
removePiece
Link copied to clipboard