﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace myMasterMind
{
    public class NumeroMM
    {
        private int cardinalita;
        public List<int> arrayNumero = new List<int>();
        public int count;

        public NumeroMM(int c, string numero)
        {
            cardinalita = c;
            count = numero.Length;
            try {
                for (int i = 0; i < count; i++)
                    arrayNumero.Add(Int32.Parse(numero.Substring(i, 1)));  //      aggiornare
            }
            catch(Exception e)
            {
                MessageBox.Show("Numero non valido");
            }
        }


     
        public int Cardinalita
        {
            get { return cardinalita; }
            set { cardinalita = value; }
        }
    }
}
