Beispiel #1
0
        public void OnMove(Move m)
        {
            cubeController.DoMove(m);

            if (m != instructions[currentInstr])
            {
                // TBD : what we are doing in case of incorrect move
                cubeAlgorithm.DoMoves(cubeController.GetMoves());
                UpdateData();

                return;
            }

            currentInstr++;
            board.HighlightNextMove();

            if (currentInstr >= instructions.Count)
            {
                UpdateData();
            }
        }
Beispiel #2
0
 public void OnMove(Move m)
 {
     moves.Add(m);
     cubeController.DoMove(m);
 }