Exemple #1
0
    public void StartPlay()
    {
        var brainerGameCreated = createGame.Invoke();

        mainComponent.DisplayMaxScore(scoreService.FindMaxScore());
        mainComponent.CreateResult(brainerGameCreated.Game.GetCurrentNumber(), brainerGameCreated.Results);
    }
Exemple #2
0
 void FireCreateEvent(object sender, LessThanOk.UI.Events.ButtonEventArgs e)
 {
     if (CreateGame != null)
     {
         CreateGame.Invoke(this, EventArgs.Empty);
     }
 }
Exemple #3
0
 private void HandleGameState(Line line)
 {
     if (line.Text.Contains("CREATE_GAME"))
     {
         CreateGame?.Invoke();
     }
 }