public void OnCellClicked(CellIndices indices) { if (isGameBeingSolved) { return; } MoveCellAccordingToRules(indices); ++drawCounter; view.NotifyOnDrawCountChanged(drawCounter); if (IsCompleted()) { view.NotifyOnGameWon(drawCounter); drawCounter = 0; } }
private void RegisterAndTriggerWinEvent() { view.SetEventOnGameWon(OnGameWon); gameView.NotifyOnGameWon(1); }