public void Score() { Scores = new GameScores(this); foreach (var player in Players) { Scores.Score(player); } }
public void LogGameEnd(GameScores scores) { _builder .AppendLine("The game has ended!") .AppendLine() .AppendLine("----- SCORES -----"); foreach (var item in scores) { _builder .AppendFormat("{0}: {1}", item.Key.Name, item.Value) .AppendLine(); } _builder.AppendLine(); var winner = scores.Winner; _builder.AppendLine(); _builder.AppendLine(winner.Name + " is the winner!"); }