Esempio n. 1
0
 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;
                     }
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public void DoSingleRun2()
 {
     cube0.ResetCubes();
     map = cube0.GetCube0();
     for (int ae = 0; ae < l; ae++)
     {
         rmove          = random.Next(0, nmovez);
         rdir           = random.Next(0, 2);
         moveseq[ae, 0] = rmove;
         moveseq[ae, 1] = rdir;
         for (int af = 0; af < nf; af++)
         {
             map2[af] = moveset[rmove, af];
         }
         cube0.SetCMap(map2);
         cube0.Mapo();
         if (rdir == 1)
         {
             if (type == 3)
             {
                 cube0.Mapo();
             }
             else if (type == 1)
             {
                 cube0.Mapo();
                 cube0.Mapo();
                 cube0.Mapo();
             }
             else
             {
                 cube0.Mapo();
                 cube0.Mapo();
             }
         }
     }
     map     = cube0.GetCube0();
     maporig = cube0.GetCube0();
     moon.Start2(map);
     moon.DoSingleLevel(checko);
     tf = moon.GetStillGoing();
 }