Example #1
0
        public bool IsCheck()
        {
            Board after = new Board(fen);

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

            return(after.CanBeatKing());
        }