public void OllTests()
        {
            OllCube cube = new OllCube();

            for (int k = 0; k < 57; k++)
            {
                cube.Solve();
                cube.SetUpPosition(k);
                cube.AufToDefault();
                int num = cube.GetPosNum();
                Assert.AreEqual(k, num, "failed on position " + k);
            }
        }
Exemple #2
0
        private void SetUpOllButton_Click(object sender, EventArgs e)
        {
            if (!Cube.IsOll())
            {
                MessageBox.Show("Not a valid OLL position", "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            var cube   = new OllCube(Cube.Stickers);
            int posNum = cube.GetPosNum();

            _callback(AlgSet.OLL, posNum);
            this.Close();
        }