From b912212789ed7227ee2dbedde755b74fc72e48cf Mon Sep 17 00:00:00 2001 From: Kevin Schellberg Date: Tue, 6 Feb 2024 12:48:51 +0100 Subject: [PATCH] refactoring: Refactoring9 --- build/test/out/c/quizduell.o | Bin 13570 -> 13574 bytes build/test/out/test_quizduell.out | Bin 131548 -> 131548 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 | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 9548522553e9078e9af044364840301623eb41c0..943ddd02c9a644d16533cfd6b552996c1f6f0180 100644 GIT binary patch delta 2304 zcmZvee@xV69LJyMejgn7J%zM`j^l?XpdKN)C>ECoNH=67n_$vxnp_4Y1|G8?%X8ot zVMuyBIa$s!bJ-uXbeGiFAVe0n(y(xD+E&zJ-WaPkW~Bywp69vy)VaRfeZQ~g{r-GD z&*%GmAD+?H*wJXN@30bnJr^=()3K2IU78=dR84$vsWM?)Z zKe8d34bBw!@54QXIW)<%CA?bGMk{>ds)>qvWL(uDktjv%dP02NY5|OW-L`I(8@@hY z!-$&$o$z&yg2?{VE~kV!by;xFH}d-iaqrX>R*0&K>eN9(kG=pV^L3rS$>;R-sMBIN z3WgBwHDsJJpicMd*HIm-&}VJBw*_Tj-zsRPQ@sr(#?`yL5L{oVci`@g)Pe^E_@G#X zDEl7*seOnCQsoddPLyHw4*OhR3Vmw~uBF0>oB==X)tSeTlOnvC)_CJpG>YSmPYgK) zBI9thh4vBJDSFvA#5*ci-aJ0Pun?d0f6G{q8hIQVg>~xVZAI5<#?6<84I7tGg@jL1!8ThR&44r+jKEbn-lQ zZ0OT`b_<+ZHlG-zQ!F!S8~efHr5>P@nqzaqO0x#(81pFG*j=laW&)k0d&5)8uasV3 zR~AjMQ;P$xNdqAdz-#kowULlj!2H<@zej-ivnE`U{EeROWl8omw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4a3f5f8..aa0233e 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.019236000021919608 +:time: 0.020077599998330697 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 217de4b..bdd67a5 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -51,4 +51,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04335140000330284 +:time: 0.039269100001547486 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 2b27e48..0c1305d 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.01822980001452379 +:time: 0.022210399998584762 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 0bb492c..d5a6f13 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.018483799998648465 +:time: 0.024773599987383932 diff --git a/src/quizduell.c b/src/quizduell.c index 7e6f709..5080597 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -93,7 +93,7 @@ int spieleKategorie(Kategorie* kategorie) { break; // Wenn der Joker bereits verwendet wurde, beendet die Schleife ohne nachzufragen } - printf("Your answer: "); + printf("Enter your choice (A/B/C/D): "); scanf("%9s", benutzerAntwort); benutzerAntwort[0] = toupper(benutzerAntwort[0]);