Browse Source

gespielteKategorie

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
2b5151c718
  1. BIN
      build/test/out/c/quizduell.o
  2. BIN
      build/test/out/test_quizduell.out
  3. 2
      build/test/results/test_casualQuiz.pass
  4. 18
      build/test/results/test_quizduell.pass
  5. 2
      build/test/results/test_timequiz.pass
  6. 2
      build/test/results/test_wwm.pass
  7. 9
      src/quizduell.c

BIN
build/test/out/c/quizduell.o

BIN
build/test/out/test_quizduell.out

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01640070000007654
:time: 0.0162731000000349

18
build/test/results/test_quizduell.pass

@ -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

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.015579099999968093
:time: 0.016043299999864757

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01601919999995971
:time: 0.016211100000191436

9
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[]) { void zeigeVerfuegbareKategorien(Kategorie kategorien[]) {
printf("\nChoose a Category:\n"); printf("\nChoose a Category:\n");
if (kategorien[0].fragen != NULL) printf("Mountains\n"); if (kategorien[0].fragen != NULL) printf("Mountains\n");

Loading…
Cancel
Save