예제 #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();
            }
        }
예제 #2
0
 public void OnMove(Move m)
 {
     moves.Add(m);
     cubeController.DoMove(m);
 }