diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 56428e2..fbafff5 100755 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/out/test_wwm.out b/build/test/out/test_wwm.out index a4c954c..70a210f 100755 Binary files a/build/test/out/test_wwm.out and b/build/test/out/test_wwm.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 66b0ab1..e85cee3 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.03200719999995272 +:time: 0.01796970000032161 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 240e582..fb42ca9 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.02661990000001424 +:time: 0.014309700000012526 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index ec2613c..f929b3d 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.024552200000016455 +:time: 0.014682400000310736 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 47e9179..fdf9ca4 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.02601670000001377 +:time: 0.014739700000063749 diff --git a/src/timequiz.c b/src/timequiz.c index 9e53409..84b8e8f 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -26,5 +26,18 @@ void timequiz() { char* temp = answers[i][0]; answers[i][0] = answers[i][j]; answers[i][j] = temp; + + if (j == 0) { + correctAnswers[i] = 1; + } + else if (j == 1) { + correctAnswers[i] = 2; + } + else if (j == 2) { + correctAnswers[i] = 3; + } + else { + correctAnswers[i] = 4; + } } }