-
Notifications
You must be signed in to change notification settings - Fork 0
/
Projet 1.0.c
61 lines (56 loc) · 973 Bytes
/
Projet 1.0.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include<stdio.h>
#include<random>
void main()
{
int a,game;
printf(" hello \n do you want to add vocabulary? \n 1-Yes 2-No ");
scanf("\n Your answer: %d",a);
if (a==1)
{add_voc();}
else
{
printf("\n Choose your game mode: \n 1-sudden death 2-time trial 3-unlimited 4-1v1");
scanf("\n Your answer: %d",game);
switch(game)
{
case(1)
sudden_death();
case(2)
time_trial();
case(3)
unlimited();
case(4)
oneVone();
default
printf("you haven't entered a correct game number")
}
}
}
void sudden_death()
{
int score;
for (ligne=0;ligne<taille;ligne+=1)
{if (answer==traduction)
{
score++;
printf("/n bien !");
}
else
{printf("/n faux !")
}
}
}
void time_trial()
{
}
void unlimited()
{
}
void oneVone()
{
}
void aleatoire()
{
int alea;
alea=random_shuffle();
}