public async Task PlayNextGameAsync() { var nextCompetitors = Elimination.GetNextCompetitors(); if (nextCompetitors != null) { await SetArenaMessage(ArenaMessageHelper.GetInitialMessage(nextCompetitors)); var gameHistoryEntry = new GameHistoryEntryViewModel() { GameDescription = Elimination.GetGameDescription(), History = new ObservableCollection <RoundPartialHistory>() }; Game.SetupNewGame(nextCompetitors); GameHistory.Add(gameHistoryEntry); OutputText += "Game starting: " + gameHistoryEntry.GameDescription + "\n"; await PlayGameAsync(gameHistoryEntry); } }
public async Task MakeEndGameConfiguration(RoundResult result) { Elimination.SetLastDuelResult(result.FinalResult); ScoreList.SaveScore(result.FinalResult); await SetArenaMessage(ArenaMessageHelper.GetEndGameMessage(result.FinalResult)); }