Ejemplo n.º 1
0
        public void TwoEdgeTests()
        {
            OneLookLLCube cube = new OneLookLLCube();

            for (int k = 960; k < 3552; k++)
            {
                cube.Solve();
                cube.SetUpPosition(k);
                cube.RandomUMove();
                int posNum = cube.GetPosNum();
                Assert.AreEqual(k, posNum, "failed on position " + k);
            }
        }
Ejemplo n.º 2
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);
            }
        }
Ejemplo n.º 3
0
        public void EdgeOrientationTests()
        {
            OneLookLLCube cube = new OneLookLLCube();

            for (int k = 0; k < 36; k++)
            {
                int posNum = 72 * k + 960;
                cube.Solve();
                cube.SetUpPosition(posNum);
                cube.RandomUMove();
                cube.AufToDefault();
                int num = cube.GetEdgeOrientationNum();
                Assert.AreEqual(k % 6, num, "failed on position " + k);
            }
        }
Ejemplo n.º 4
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);
            }
        }
Ejemplo n.º 5
0
        public void CornerOrientationTests()
        {
            int           num;
            OneLookLLCube cube = new OneLookLLCube();

            for (int k = 0; k < 480; k += 24)
            {
                cube.Solve();
                cube.SetUpPosition(k);
                cube.RandomUMove();
                num = cube.GetCornerOrientationNum();
                Assert.AreEqual(k / 72, num, "failed on position " + k);
            }
            cube.Solve();
            cube.HOrientation();
            num = cube.GetCornerOrientationNum();
            Assert.AreEqual(6, num, "failed on h orientation");
            cube.U();
            num = cube.GetCornerOrientationNum();
            Assert.AreEqual(6, num, "failed on h orientation");
            cube.Solve();
            num = cube.GetCornerOrientationNum();
            Assert.AreEqual(7, num, "failed with corners oriented");
        }