Pawn moves
This commit is contained in:
@@ -85,7 +85,6 @@ public class Piece: Hashable {
|
||||
if let p = s.piece {
|
||||
if p.color == color { return false }
|
||||
if let king = p as? King {
|
||||
#warning("It could be in check or behind another piece.")
|
||||
delegate?.notify(.kingInCheck(self, on: king))
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user