示例#1
0
 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.");
 }
示例#3
0
 public void GameOver(WinEventArgs winArgs)
 {
     view.GameOver(winArgs);
     input.GameOver(winArgs);
 }
 public void GameOver(WinEventArgs e)
 {
     GameWinner(e.Turns);
 }
示例#5
0
 public void GameOver(WinEventArgs winArgs)
 {
     GetController().Reset();
 }
示例#6
0
 public void GameOver(WinEventArgs winArgs)
 {
     Console.WriteLine(winArgs);
 }
 public void GameOver(WinEventArgs e)
 {
     Console.WriteLine("Game Over. It took you {0} turns.", e.Turns);
 }