From 17b0e141060f7edd0a75672514bf7a094a2b17e6 Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Sun, 4 Feb 2024 19:05:22 +0100 Subject: [PATCH] KategorienZeigen --- build/test/results/test_casualQuiz.pass | 2 +- build/test/results/test_quizduell.pass | 2 +- build/test/results/test_timequiz.pass | 2 +- build/test/results/test_wwm.pass | 2 +- src/quizduell.c | 13 ++++++++++++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 18ed9bf..782f869 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.016070999999953983 +:time: 0.016537700000014866 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index ee16347..398acc9 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016301499999997304 +:time: 0.01670110000003433 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 120ec59..ac2d091 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.016418199999975513 +:time: 0.01629889999998113 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index b54d492..7b9c355 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.016148299999997562 +:time: 0.01620580000002292 diff --git a/src/quizduell.c b/src/quizduell.c index 668c436..11af694 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -16,6 +16,11 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant } +void zeigeVerfuegbareKategorien(Kategorie kategorien[]) { + printf("\nChoose a Category:\n"); + if (kategorien[0].fragen != NULL) printf("Mountains\n"); +} + void quizduell() { printf("Welcome to the singleplayer quizduell!\n"); @@ -25,6 +30,12 @@ void quizduell() { kategorien[0].anzahlFragen = MAX_QUESTIONS_PER_CATEGORY; kategorien[0].joker = 1; - return; + while (1) { + char auswahl[50]; + + zeigeVerfuegbareKategorien(kategorien); + + return; + } } \ No newline at end of file