Exemplo n.º 1
0
 public void StartWithMap(int[] mapin)
 {
     map = mapin;
     smop.ResetCubes();
     smop.SetCMap(map);
     stillgoing = true;
     for (int aaq = 0; aaq < nr; aaq++)
     {
         for (int fq = 0; fq < nc; fq++)
         {
             powz[fq] = posslist[aaq, fq];
         }
         DoSingleLevel(powz);
         tfvs[aaq] = stillgoing;
     }
 }
Exemplo 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();
 }
Exemplo n.º 3
0
 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);
 }