diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index ec2516a..c49c379 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01621530000011262 +:time: 0.0158051999997042 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 25fa003..2ff80c8 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.03237170000011247 +:time: 0.01642370000035953 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 0b88f76..3f03b0a 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016029299999900104 +:time: 0.01555129999997007 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index bf6e941..43ca8e9 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.01667379999980767 +:time: 0.016281299999718613 diff --git a/src/quizduell.c b/src/quizduell.c index fff2f66..92e2685 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -47,6 +47,35 @@ int spieleKategorie(Kategorie* kategorie) { char korrekteAntwort = kategorie->fragen[i].korrekteAntwort; int gestrichen = 0; + + for (char option = 'A'; option <= 'D'; option++) { + if (option != korrekteAntwort && gestrichen < 2) { + switch (option) { + case 'A': + strcpy(kategorie->fragen[i].antwortA, "XXXXXX"); + gestrichen++; + break; + case 'B': + strcpy(kategorie->fragen[i].antwortB, "XXXXXX"); + gestrichen++; + break; + case 'C': + strcpy(kategorie->fragen[i].antwortC, "XXXXXX"); + gestrichen++; + break; + case 'D': + strcpy(kategorie->fragen[i].antwortD, "XXXXXX"); + gestrichen++; + break; + } + } + } + + // Zeigt die Antworten erneut an + printf("\nA) %s\nB) %s\nC) %s\nD) %s\n", kategorie->fragen[i].antwortA, kategorie->fragen[i].antwortB, kategorie->fragen[i].antwortC, kategorie->fragen[i].antwortD); + + break; + } } }