courseUseOf method
- ExerciseRound round
override
As notas da rodada viram find-key com a lista fixa (issue 4, TI04).
Implementation
@override
CourseUse? courseUseOf(ExerciseRound round) {
if (round is! QuestionRound) return null;
// A grafia de cada pergunta (TI03): o bloco escreve o bemol como bemol.
final notes = [for (final q in round.questions) ?q.spelled];
if (notes.isEmpty) return null;
final step = _step;
return findKeyCourseUse(
head: (
id: 'achar-a-tecla-${step.name}',
title: title,
accuracy: slipAccuracy(notes.length, notes.length - kFindKeyClean),
),
notes: notes,
octave: step.octave,
timeLimit: step.timeLimit,
);
}