Example #1
0
        public void TestEightDigitString()
        {
            var cout       = EightDigitString.ToInts(GeneticProblem.MyTestValues[0]);
            var resultCOut = new EightDigitString(cout[0], cout[1], cout[2], cout[3], cout[4], cout[5], cout[6], cout[7]);

            System.Diagnostics.Debug.WriteLine(resultCOut.ToString());
        }
Example #2
0
        public bool IsGe(EightDigitString thisGuy)
        {
            if (string.Equals(ToString(), thisGuy.ToString()))
                return false;

            var me = EightDigitString.ToInts(this);
            var him = EightDigitString.ToInts(thisGuy);

            for (var i = 0; i < 8; i++)
            {
                if (me[i] >= him[i])
                    return true;
            }
            return false;
        }
Example #3
0
        public bool IsGe(EightDigitString thisGuy)
        {
            if (string.Equals(ToString(), thisGuy.ToString()))
            {
                return(false);
            }

            var me  = EightDigitString.ToInts(this);
            var him = EightDigitString.ToInts(thisGuy);

            for (var i = 0; i < 8; i++)
            {
                if (me[i] >= him[i])
                {
                    return(true);
                }
            }
            return(false);
        }
Example #4
0
 public void TestEightDigitString()
 {
     var cout = EightDigitString.ToInts(GeneticProblem.MyTestValues[0]);
     var resultCOut = new EightDigitString(cout[0], cout[1], cout[2], cout[3], cout[4], cout[5], cout[6], cout[7]);
     System.Diagnostics.Debug.WriteLine(resultCOut.ToString());
 }