Beispiel #1
0
        public bool IsMutant(string[] dna)
        {
            char[,] matrix = MatrixUtil.ConvertToMatrixAndValidate(dna);

            Guard.ThrowIfNullOrEmpty(dna, "Debe ingresar una cádena adn", nameof(dna));

            int mutantDnaCount = SearchMutantDna(matrix);

            return(mutantDnaCount >= NitrogenousBaseConstants.DnaMutantCountRules.COUNT_MATCHS_TO_MUTANT);
        }