Board Hex
class BoardHex(verticalLength: Int, maximumWidth: Int, outOfBoundsRegion: Region2D?) : Board<BoardHex, MoveGeneratorHex, PieceHex, 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 PieceHex.
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