Example #1
0
        private void OnGameScoreCalculated(object sender, GameScoreEventArgs e)
        {
            _wordGridFactory.UpdateWordScores(e.Scores);

            TotalScoreLabel.Text      = $"Total: {e.TotalScore}";
            TotalScoreLabel.IsVisible = true;
        }
Example #2
0
 private void IgsConnector_GameScoredAndCompleted(object sender, GameScoreEventArgs e)
 {
     if (Phase.Type != GamePhaseType.LifeDeathDetermination)
     {
         SetPhase(GamePhaseType.LifeDeathDetermination);
     }
     (Phase as LifeAndDeathPhase).ScoreIt(new Scores(e.BlackScore, e.WhiteScore));
 }
Example #3
0
 private void _igs_GameScoredAndCompleted(object sender, GameScoreEventArgs e)
 {
     /*
      * if (e.GameInfo == this._game)
      * {
      *  this._game.GameController.EndGame();
      *  Scores scores = new Scores()
      *  {
      *      BlackScore = e.BlackScore,
      *      WhiteScore = e.WhiteScore
      *  };
      *  MessageBox.Show($"Black score: {scores.BlackScore}\nWhite score: {scores.WhiteScore}\n\n" +
      *                  (scores.BlackScore > scores.WhiteScore
      *                      ? "Black wins!"
      *                      : (Math.Abs(scores.BlackScore - scores.WhiteScore) < 0.1f
      *                          ? "It's a draw!"
      *                          : "White wins!")),
      *      "Game completed!",
      *      MessageBoxButtons.OK,
      *      MessageBoxIcon.Information);
      * }*/
 }