Fix king moves.

This commit is contained in:
Marco 2023-06-28 08:32:17 +02:00
parent 6b4dea5145
commit 2d5eacb351

View File

@ -17,5 +17,5 @@ func (k King) GetColor() types.ChessColor {
}
func (k King) GetAllNonBlockedMoves(board Board, fromSquare types.Coordinate) []types.Coordinate {
return []types.Coordinate{}
return board.GetNonBlockedKingMoves(fromSquare)
}