From 7bc651f7b5ad43d80a8be11891186256331390f3 Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Sun, 4 Feb 2024 19:45:26 +0100 Subject: [PATCH] AbfrageObJokerBenutzen --- build/test/out/c/quizduell.o | Bin 11418 -> 11678 bytes build/test/out/test_quizduell.out | Bin 116555 -> 116555 bytes 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 | 33 +++++++++++++++--------- 7 files changed, 25 insertions(+), 16 deletions(-) diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 628be8dacc035e47ac78ec1ccb82dd3a81d2a9b4..b58391dad43ba0d431c9c17dd889ca867cf99b51 100644 GIT binary patch delta 2797 zcmai$4Qx|Y6vyvmCx2~Ij1)P8z1lUI&V+){jVUi8THp1KxvXw85 zc4Jo7lqc3p$j~_#Fd7vUQkl9CSov}qLY8RM5M82zDT;}jVK%@$;*@952D|E>r zc|?Rh4*i*}zmkB^kc&8QhW=|SLUJ}K!5M;(N}jUyh(^(#fEDsDqd$Jz zZ}Zh`4@@>>>1&$_>rR`Z{mS?G>7~J%JGjKSkX~`L(>)r-ADFIO}Ohd{anv2 z7Fm($mKCd>-Vb!)%aoYYpqDAqmvmaOey8PIdy8x}RgoHlft=ANc&ao5HP=rv#{+{o zlS+!!!)7AUPj6~wyXU+XOpTW`rd6AO!RV!uV(nxzk*Jj#E6H6$zQ+!a2yKxXGc=~g zZ&l+Dsxhh=E5=yGGe*0oZjy2HBx5cxRP<0uu`XaUk?8SJW^9;Z_q?SA(~9qCOe?km zgK-y?6l)usi9}Q1)gRzfFigl39M55(ni^=P$(A_(|N{y)p z0fR?JCBDGd2vBMfu;~HQvuBVb>-Na@hQ3Ewr60_N5KcPu* zfg!^G2fNVhK_X@5Rd74KX)eWkh$qHM?wIG|eL&vni*AgM2mH;j%0aegck%_&A2SVy>in~tQZ7I&}@l?=-P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Gy(--ip4iDIsa4&~F1YRpM4Fo_Fyg<_L(J*m4BnEaJl>EX=pn zDYMO3Iac9*l%@JwoHFZ%B3Be0MHSl%#L=TzD(&KxqX-aRXkVDrT|EBzs~6wH4vF6X zB-@5+J@+JA5!dF_&vE=K+Rdqh%aHUr*}M-ZK=+UYB zUm?jAEl;C+gLv&}Oj=)ouszLQr&Ig+W60Vd-aiI0PS_uhv0QpYn2sxRDvq=D;V0eg zE0YG3V!($&r<}4Ni5B;@VcY?ZR7y8jm)GEnTdr6Q1Z1BoacJb`8?^x_XtV0(Oc0{f!R hQ$#+?rqiRY_*o33!O>Z1bqR)z$Na@3&$9Dj{|oF6l!*WU diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 745d4a3..c1ff0ed 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.016226099999812504 +:time: 0.01736479999999574 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 6c89c6a..c4c5b9c 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.030707300000131 +:time: 0.03556579999985843 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index d3eac8c..eb8593a 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.016036299999996118 +:time: 0.01705069999979969 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index fc813b8..a6a99ee 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.016368800000009287 +:time: 0.01840379999975994 diff --git a/src/quizduell.c b/src/quizduell.c index b152973..0048a09 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -31,21 +31,30 @@ int spieleKategorie(Kategorie* kategorie) { char jokerAntwort[10]; - 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); + do { + 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); - printf("Your answer: "); - scanf("%s", benutzerAntwort); + if (!jokerVerwendet) { + printf("\nDo you want to use the joker? (Y/N): "); + scanf("%s", jokerAntwort); + printf(jokerAntwort); + } - benutzerAntwort[0] = toupper(benutzerAntwort[0]); - getchar(); + printf("Your answer: "); + scanf("%s", benutzerAntwort); - if (pruefeAntwort(kategorie->fragen[i], benutzerAntwort[0])) { - printf("Correct!\n"); - punktzahl++; - } - else { - printf("Wrong! The correct Answer is %c\n", kategorie->fragen[i].korrekteAntwort); - } + benutzerAntwort[0] = toupper(benutzerAntwort[0]); + getchar(); + + if (pruefeAntwort(kategorie->fragen[i], benutzerAntwort[0])) { + printf("Correct!\n"); + punktzahl++; + } + else { + printf("Wrong! The correct Answer is %c\n", kategorie->fragen[i].korrekteAntwort); + } + + } while (0); } return punktzahl; }