chorusesClean property
Por volta da forma: true quando ela saiu sem wrong nem missed e
todos os ataques dela já foram julgados (EX10, regra 7).
Implementation
List<bool> get chorusesClean {
if (attacks.isEmpty) return const [];
final count = _chorusOf(attacks.last).toInt() + 1;
final total = <int, int>{};
for (final attack in attacks) {
final chorus = _chorusOf(attack).toInt();
total[chorus] = (total[chorus] ?? 0) + 1;
}
return [
for (var c = 0; c < count; c++)
(_bad[c] ?? 0) == 0 && (_seen[c] ?? 0) == (total[c] ?? 0),
];
}