isKingInCheck

fun isKingInCheck(kingColor: PieceColor, board: Board): Boolean

Checks if the king of the given kingColor is in check on the board.

Return

True if the king is in check, false otherwise.

Parameters

kingColor

The color of the king to check.

board

The board to check on.