private async Task PlayGameAsync(GameHistoryEntryViewModel gameHistoryEntry)
{
RoundResult result;
do
{
result = await Game.PerformNextRoundAsync();
OutputText += result.OutputText;
foreach (var roundPartialHistory in result.History)
{
gameHistoryEntry.History.Add(roundPartialHistory);
}
} while (!result.IsFinished && IsGameInProgress && !IsGamePaused);
if (result.IsFinished && IsGameInProgress)
{
await MakeEndGameConfiguration(result);
}
}