Example #1
0
 public void Play()
 {
     while (!IsGameOver)
     {
         RefreshDisplay?.Invoke(this, null);
         var diceRes = new int[2];
         NextTurn?.Invoke(this, new DiceEventArgs(diceRes));
         PlayNewTurn(diceRes);
     }
     Message?.Invoke(this, $"The Winner is the {Winner.Color} player!");
 }