Exemple #1
0
        public bool IsCheckAfterMove(FigureMoving fm)
        {
            Board  after       = Move(fm);
            Figure checkedKing = (MoveColor == Color.Black) ? Figure.whiteKing : Figure.blackKing;

            return(after.CanEatKing(whereIsCheckedKing: FindCheckedKing(checkedKing)));
        }
Exemple #2
0
        public bool IsCheak()
        {
            Board after = new Board(fen);

            after.moveColor = moveColor.FlipColor();
            return(after.CanEatKing());
        }
Exemple #3
0
        public bool IsCheck()
        {
            Board after = new Board(Fen);

            after.MoveColor = MoveColor.FlipColor();
            return(after.CanEatKing());
        }
Exemple #4
0
        /*******************/
        public bool IsCheck()
        {
            Board after = new Board(fen);

            after.moveColor = moveColor.FlipColor(); //меняем цвет
            return(after.CanEatKing());
        }
Exemple #5
0
        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));
        }
Exemple #6
0
        public bool IsCheakAfterMove(FigureMoving fm)
        {
            Board after = Move(fm);

            return(after.CanEatKing());
        }