public void Handle(IHaveThisNumber message) { sudokuBoard[message.Row - 1, message.Column - 1] = message.Number; Console.Clear(); PrintBoard(); --valuesLeft; if (valuesLeft == 0) { Console.WriteLine("DONE!"); } }
private void WhenHaveCellValue() { if (cellNumber.HasValue && !isSolved) { isSolved = true; IHaveThisNumber message = new IHaveThisNumber(cellNumber.Value, rowIndex, columnIndex); BroadcastMessage(message); Context.Parent.Tell(message); printerActor.Tell(message); Context.Stop(Self); } }
private void Handle(IHaveThisNumber message) { gameBoard[message.Row - 1, message.Column - 1] = message.Number; }