public bool IsCheck() { Board after = new Board(fen); after.moveColor = moveColor.FlipColor(); //меняем цвет return(after.CanBeatKing()); //есть ли шах после хода? }
public bool IsCheckAfterMove(FigureMoving fm) { Board after = Move(fm); return(after.CanBeatKing()); }