public bool IsCheckAfterMove(FigureMoving fm) { Board after = Move(fm); Figure checkedKing = (MoveColor == Color.Black) ? Figure.whiteKing : Figure.blackKing; return(after.CanEatKing(whereIsCheckedKing: FindCheckedKing(checkedKing))); }
public bool IsCheak() { Board after = new Board(fen); after.moveColor = moveColor.FlipColor(); return(after.CanEatKing()); }
public bool IsCheck() { Board after = new Board(Fen); after.MoveColor = MoveColor.FlipColor(); return(after.CanEatKing()); }
/*******************/ public bool IsCheck() { Board after = new Board(fen); after.moveColor = moveColor.FlipColor(); //меняем цвет return(after.CanEatKing()); }
public bool IsCheck() { var after = new Board(Fen); after.MoveColor = MoveColor.FlipColor(); Figure checkedKing = (MoveColor == Color.Black) ? Figure.whiteKing : Figure.blackKing; Square whereIsCheckedKing = FindCheckedKing(checkedKing); return(after.CanEatKing(whereIsCheckedKing)); }
public bool IsCheakAfterMove(FigureMoving fm) { Board after = Move(fm); return(after.CanEatKing()); }