score property

  1. @override
({int hits, int total}) get score
override

Acertos de total ataques, para o RoundResult.

Implementation

@override
({int hits, int total}) get score {
  final c = chords.score;
  final m = melody?.score;
  return (hits: c.hits + (m?.hits ?? 0), total: c.total + (m?.total ?? 0));
}