Started to work on king threats
This commit is contained in:
@@ -8,10 +8,6 @@ final class Rook: Piece, LinearMoves {
|
||||
return getLinearMoves(from: position)
|
||||
}
|
||||
|
||||
override var legalPositions: [Square.Position] {
|
||||
return pseudoLegalPositions.filter { isLegal(on: $0) }
|
||||
}
|
||||
|
||||
override func isLegal(on pos: Square.Position) -> Bool {
|
||||
super.isLegal(on: pos)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user