getAvailablePlays

fun getAvailablePlays(board: Board, myPieceType: PieceType): List<Coordinate>

Gets a list of available plays for the player with the specified piece type. A play is considered available if placing a piece of the given type at that position would result in capturing at least one of the opponent's pieces.

Return

A list of coordinates where the player can place their piece.

Parameters

board

The current state of the board.

myPieceType

The type of piece for the player (e.g., BLACK or WHITE).