示例#1
0
        public override IEnumerable <Square> GetAvailableMoves(Board board)
        {
            var movesList        = DiagonalPieceChecker.GetAvailableDiagonalMoves(board, board.FindPiece(this));
            var lateralMovesList = LateralPieceChecker.GetAvailableLateralMoves(board, board.FindPiece(this));

            return(movesList.Concat(lateralMovesList));;
        }
示例#2
0
 public override IEnumerable<Square> GetAvailableMoves(Board board)
 {
     var movesList = (List<Square>)LateralPieceChecker.GetAvailableLateralMoves(board, board.FindPiece(this));
     return movesList.Concat(GetAvailableCastleMoves(board));
 }