Skip to content

Commit

Permalink
Adding comments to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiollende committed Mar 7, 2024
1 parent 0abb2fe commit 3ad11b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wikidata_service/WikiDataTest/Services/QuestionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public Question[] GenerateQuestionsCapitalsOf(CapitalCountry[] capitalCountries,
{
wrongId = r.Next(capitalCountries.Length);
}
// Adding the id of the wrongAnswer to the array
wrongIds[w - 1] = wrongId;
answers[w] = capitalCountries[wrongId].capitalLabel.value;
}
Expand Down

0 comments on commit 3ad11b0

Please sign in to comment.