Example #1
0
 private void UpdateResultMessage()
 {
     if (_game.GameState == GameState.Draw)
     {
         ResultMessage.Message    = "DRAW!";
         ResultMessage.Visibility = Visibility.Visible;
     }
     else if (_game.GameState == GameState.Win)
     {
         ResultMessage.Message    = $"{_game.NextPlayer().Name} WON!";
         ResultMessage.Visibility = Visibility.Visible;
     }
 }