diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 9281a14..9e44f6d 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 8a182a8..029b766 100755 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 95c16f9..b94be7a 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.01640070000007654 +:time: 0.0162731000000349 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass deleted file mode 100644 index 7b365ee..0000000 --- a/build/test/results/test_quizduell.pass +++ /dev/null @@ -1,18 +0,0 @@ ---- -:source: - :path: test - :file: test_quizduell.c -:successes: -- :test: test_erstelleFrage - :line: 11 - :message: '' - :unity_test_time: 0 -:failures: [] -:ignores: [] -:counts: - :total: 1 - :passed: 1 - :failed: 0 - :ignored: 0 -:stdout: [] -:time: 0.031963899999936984 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 4b271e3..a98d86c 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.015579099999968093 +:time: 0.016043299999864757 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index ef21bf8..488d63e 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.01601919999995971 +:time: 0.016211100000191436 diff --git a/src/quizduell.c b/src/quizduell.c index 37f991b..46fed8b 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -20,6 +20,15 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant } +int spieleKategorie(Kategorie* kategorie) { + + for (int i = 0; i < kategorie->anzahlFragen; i++) { + char benutzerAntwort[10]; + + printf("\nQuestion %d:\n%s", i + 1, kategorie->fragen[i].frage); + } +} + void zeigeVerfuegbareKategorien(Kategorie kategorien[]) { printf("\nChoose a Category:\n"); if (kategorien[0].fragen != NULL) printf("Mountains\n");