public Game(Board board) { _board = board; _board.BoardFilled += (s, e) => { Result = new WinEventArgs { TimeCompleted = DateTime.Now, TimeStarted = _timeOfFirstMove, Turns = Turns, FilledEvent = e }; Winner?.Invoke(s, Result); }; }
public void GameOver(WinEventArgs e) { MessageBox.Show("Game Over. It took you " + e.Turns + " turns."); }
public void GameOver(WinEventArgs winArgs) { view.GameOver(winArgs); input.GameOver(winArgs); }
public void GameOver(WinEventArgs e) { GameWinner(e.Turns); }
public void GameOver(WinEventArgs winArgs) { GetController().Reset(); }
public void GameOver(WinEventArgs winArgs) { Console.WriteLine(winArgs); }
public void GameOver(WinEventArgs e) { Console.WriteLine("Game Over. It took you {0} turns.", e.Turns); }