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