Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3426 bpr 1
type=game
2
textarea="data"
3
 
4
:Frise chronologique
5
Evénements à classer du type frise chronologique.
6
<p>
7
Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr>
8
</p>
9
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
10
 
11
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
12
(Ce sont les lignes qui commencent par un ':'.)
13
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
14
 
15
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
16
:\title{Frise chronologique}
17
:\author{Bernadette Perrin-Riou}
18
:Consigne
19
\text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.}
20
:Nombre de mots maximum (maximum 10)
21
\text{N=5}
22
:couleur de la flèche
23
\text{couleur=orange}
24
:Largeur des étiquettes
25
\text{facteur=100}
26
:Hauteur des étiquettes
27
\integer{height=100}
28
:Données principales.
29
\text{data=1515,Bataille de Marignan
30
1680,Création de la Comédie Française
31
1789,Révolution française
32
1830,Les Trois Glorieuses
33
1831,Révolte des Canuts à Lyon
34
1848,Décret abolissant l'esclavage
35
1889,Inauguration de la tour Eiffel à Paris
36
1944,Les femmes acquièrent le droit de vote
37
1981,Abolition de la peine de mort}
38
 
39
:%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%%
40
 
41
\real{M=\N-0.3}
42
\text{xrange=-1,\N+1}
43
\text{yrange=-5,5}
44
 
45
\text{cnt=rows(\data)}
46
\text{shu=shuffle(\cnt)}
47
\text{shu=\shu[1..\N]}
48
\text{shu=wims(sort numeric item \shu)}
49
\text{data=row([\shu],\data)}
50
\matrix{rep=\data}
51
\integer{size=(1.5*\facteur)*(\M+1)}
52
\integer{height2=4*\height}
53
\text{size=\size,\height2}
54
\text{fleche=xrange \xrange
55
yrange \yrange
56
lines \couleur,\M,1,-1,1,-1,-1,\M,-1,\M,-2,\N+0.5,0,\M,2,\M,1
57
fill 0,0,\couleur
58
}
59
 
60
\text{STEP=wims(makelist r x for x=1 to 2*\N)}
61
\steps{\STEP}
62
\text{positionbas=}
63
\text{positionhaut=}
64
\for{j=0 to \N-1}{
65
  \text{fleche=\fleche
66
  line \j-0.1,-1,\j-0.1,-2,\couleur
67
  line \j-0.1,0.7,\j-0.1,2,\couleur}
68
  \text{ans=pari([2*\j+1,2*\j+2])}
69
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
70
 \text{positionbas=\positionbas
71
 r\ans[1],\v[1] x \v[2]}
72
 \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
73
 \text{positionhaut=\positionhaut
74
r\ans[2],\v[1] x \v[2]}
75
 }
76
 \text{position=\positionbas
77
 \positionhaut}
78
 \text{urlfleche=draw(\size
79
\fleche)}
80
\statement{\instruction
81
<center>
82
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
83
\position}
84
</center>
85
}
86
\positionbas
87
\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
88
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
89
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}
90
\answer{}{\rep[2;2]}{type=clickfill}{option=shuffle}
91
\answer{}{\rep[3;1]}{type=clickfill}{option=shuffle}
92
\answer{}{\rep[3;2]}{type=clickfill}{option=shuffle}
93
\answer{}{\rep[4;1]}{type=clickfill}{option=shuffle}
94
\answer{}{\rep[4;2]}{type=clickfill}{option=shuffle}
95
\answer{}{\rep[5;1]}{type=clickfill}{option=shuffle}
96
\answer{}{\rep[5;2]}{type=clickfill}{option=shuffle}
97
\answer{}{\rep[6;1]}{type=clickfill}{option=shuffle}
98
\answer{}{\rep[6;2]}{type=clickfill}{option=shuffle}
99
\answer{}{\rep[7;1]}{type=clickfill}{option=shuffle}
100
\answer{}{\rep[7;2]}{type=clickfill}{option=shuffle}
101
\answer{}{\rep[8;1]}{type=clickfill}{option=shuffle}
102
\answer{}{\rep[8;2]}{type=clickfill}{option=shuffle}
103
\answer{}{\rep[9;1]}{type=clickfill}{option=shuffle}
104
\answer{}{\rep[9;2]}{type=clickfill}{option=shuffle}
105
\answer{}{\rep[10;1]}{type=clickfill}{option=shuffle}
106
\answer{}{\rep[10;2]}{type=clickfill}{option=shuffle}