getAllLegalMoves

fun getAllLegalMoves(board: Board, currentPlayerGameState: GameState): List<Move>

Returns a list of all legal moves for the current player.

Return

List of legal moves.

Parameters

board

The current board state.

currentPlayerGameState

The current game state for the player.