public void DoSingle(int[] maporigin) { isorig = false; cube2.SetCMap(maporigin); smally = 1; while (!isorig) { cube2.Mapo(); isorig = cube2.GetOrig(); if (!isorig) { smally++; } } Console.WriteLine("SMALLY: " + smally); }
public void DoSingleLevel(int[] powsin) { map2 = new int[nf]; map3 = new int[nf]; smop.ResetCubes(); for (int gttt = 0; gttt < nf; gttt++) { map2[gttt] = map[gttt]; } stillgoing = true; for (int aq = 0; aq < nc; aq++) { if (powsin[aq] == 0) { } else { for (int bq = 0; bq < powsin[aq]; bq++) { if (stillgoing) { smop.ResetCubes(); smop.SetCMap(map2); for (int cq = 0; cq < primes2[aq]; cq++) { smop.Mapo(); } map3 = smop.GetCube0(); for (int dq = 0; dq < nf; dq++) { map2[dq] = map3[dq]; } if (smop.GetOrig()) { stillgoing = false; } } } } } }