Browse Source

Aufruffunktion

remotes/origin/mathespieledev
Lennart Goetze 11 months ago
parent
commit
1a76c737b9
  1. 2
      build/test/results/test_SchereSteinPapier.pass
  2. 2
      build/test/results/test_WortSpiel.pass
  3. 2
      build/test/results/test_ageinseconds.pass
  4. 2
      build/test/results/test_bmi.pass
  5. 2
      build/test/results/test_minirechner.pass
  6. 2
      build/test/results/test_zahlenraten.pass
  7. 19
      src/MatheSpiele.c
  8. 5
      src/MatheSpiele.h
  9. 20
      test/test_MatheSpiele.c

2
build/test/results/test_SchereSteinPapier.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.05505930000072112
:time: 0.06440469999870402

2
build/test/results/test_WortSpiel.pass

@ -59,4 +59,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.5986981999994896
:time: 0.056614699999045115

2
build/test/results/test_ageinseconds.pass

@ -23,4 +23,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.050159799997345544
:time: 0.05363690000012866

2
build/test/results/test_bmi.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.3213505999992776
:time: 0.05756960000144318

2
build/test/results/test_minirechner.pass

@ -83,4 +83,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.049012799998308765
:time: 0.05367609999666456

2
build/test/results/test_zahlenraten.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04845479999858071
:time: 0.0543950000028417

19
src/MatheSpiele.c

@ -0,0 +1,19 @@
#include "MatheSpiele.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int run_mathespiele() {
srand((unsigned int)time(NULL));
int rounds;
printf("Wie viele Fragen moechten Sie beantworten? ");
scanf("%d", &rounds);
// Das Spiel durchführen
runMathGame(rounds);
return 0;
}

5
src/MatheSpiele.h

@ -0,0 +1,5 @@
#ifndef MATHESPIELE_H
#define MATHESPIELE_H
#endif // MATHESPIELE_H

20
test/test_MatheSpiele.c

@ -0,0 +1,20 @@
#ifdef TEST
#include "unity.h"
#include "MatheSpiele.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_MatheSpiele_NeedToImplement(void)
{
TEST_IGNORE_MESSAGE("Need to Implement MatheSpiele");
}
#endif // TEST
Loading…
Cancel
Save