updateScores method

GenericGame updateScores(
  1. Map<PlayerID, double> scores
)

Returns a copy of the GenericGame with the scores added to allRoundScores

Implementation

GenericGame updateScores(Map<PlayerID, double> scores) => copyWith(
    allRoundScores:
        allRoundScores.add(players.map((p) => scores[p.id]!).toIList()));