protected override void OnEnable()
        {
            var index = ProbabilityUtility.PickIndex(behaviours);

            for (int i = 0; behaviours != null && i < behaviours.Length; i++)
            {
                behaviours[i].gameObject.SetActive(i == index);
            }
        }
Пример #2
0
 public void DivisorCountOfANumber()
 {
     this.Result = ProbabilityUtility.GetAllCombinationsProducts(OptionalInput.GetPrimeFactors().ProcessList(this.LogList));
 }
Пример #3
0
 public void Calculate()
 {
     this.Result = NumericSources.YieldTriangleNumbers()
                   .FirstOrDefault(x => ProbabilityUtility.GetAllCombinationsProducts(x.GetPrimeFactors().ProcessList(this.LogList)) > DivisorCount);
 }
Пример #4
0
 public void CalculatePathCount()
 {
     // The length is always the same (X+Y). It always consists of 20 movements left and 20 right
     // The number of pathes is the number of combinations of 10 selections on a pool of 20 spots.
     TotalComb = ProbabilityUtility.GetCombinations(GridX + GridY, GridX);
 }