Esempio n. 1
0
        public void EllcpTests()
        {
            OneLookLLCube cube = new OneLookLLCube();

            for (int k = 3776; k < cube.GetNumPositions(); k++)
            {
                cube.Solve();
                cube.SetUpPosition(k);
                cube.RandomUMove();
                int posNum = cube.GetPosNum();
                Assert.AreEqual(k, posNum, "failed on position " + k);
            }
        }
Esempio n. 2
0
        public void OneLookTests()
        {
            OneLookLLCube cube = new OneLookLLCube();

            for (int k = 0; k < cube.GetNumPositions(); k++)
            {
                cube.Solve();
                cube.SetUpPosition(k);
                if (!((k >= 460 && k < 480) || (k >= 940 && k < 980)))
                {
                    cube.RandomUMove();
                }
                int posNum = cube.GetPosNum();
                Assert.AreEqual(k, posNum, "failed on position " + k);
            }
        }