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} |
||
3541 | bpr | 28 | :utilise les deux items des données principales (0), seulement la première colonne (1), seulement la deuxième colonne (2) |
29 | \text{choix=0} |
||
3426 | bpr | 30 | :Données principales. |
5129 | bpr | 31 | Mettre les données dans l'ordre où elles doivent apparaître. |
3426 | bpr | 32 | \text{data=1515,Bataille de Marignan |
33 | 1680,Création de la Comédie Française |
||
34 | 1789,Révolution française |
||
35 | 1830,Les Trois Glorieuses |
||
36 | 1831,Révolte des Canuts à Lyon |
||
37 | 1848,Décret abolissant l'esclavage |
||
38 | 1889,Inauguration de la tour Eiffel à Paris |
||
39 | 1944,Les femmes acquièrent le droit de vote |
||
40 | 1981,Abolition de la peine de mort} |
||
41 | |||
42 | :%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%% |
||
43 | |||
44 | \real{M=\N-0.3} |
||
45 | \text{xrange=-1,\N+1} |
||
3541 | bpr | 46 | \text{yrange=\choix=0 ? -5,5:-2,5} |
47 | \text{yrange=\choix=1 ? -5,2} |
||
3426 | bpr | 48 | \text{cnt=rows(\data)} |
49 | \text{shu=shuffle(\cnt)} |
||
50 | \text{shu=\shu[1..\N]} |
||
51 | \text{shu=wims(sort numeric item \shu)} |
||
52 | \text{data=row([\shu],\data)} |
||
53 | \matrix{rep=\data} |
||
54 | \integer{size=(1.5*\facteur)*(\M+1)} |
||
55 | \integer{height2=4*\height} |
||
56 | \text{size=\size,\height2} |
||
57 | \text{fleche=xrange \xrange |
||
58 | yrange \yrange |
||
59 | lines \couleur,\M,1,-1,1,-1,-1,\M,-1,\M,-2,\N+0.5,0,\M,2,\M,1 |
||
3541 | bpr | 60 | fill 0,\0,\couleur |
3426 | bpr | 61 | } |
62 | |||
3541 | bpr | 63 | \text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)} |
64 | \text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)} |
||
65 | \text{STEP=\choix=2 ? wims(values 2*x for x=1 to \N)} |
||
66 | \text{STEP=wims(makelist r x for x in \STEP)} |
||
3426 | bpr | 67 | \steps{\STEP} |
68 | \text{positionbas=} |
||
69 | \text{positionhaut=} |
||
70 | \for{j=0 to \N-1}{ |
||
3541 | bpr | 71 | \text{fleche=\choix=0 or \choix=1 ? \fleche |
72 | line \j-0.1,-1,\j-0.1,-2,\couleur} |
||
73 | \text{fleche=\choix=0 or \choix=2 ? \fleche |
||
3426 | bpr | 74 | line \j-0.1,0.7,\j-0.1,2,\couleur} |
75 | \text{ans=pari([2*\j+1,2*\j+2])} |
||
76 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
||
77 | \text{positionbas=\positionbas |
||
78 | r\ans[1],\v[1] x \v[2]} |
||
79 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
||
80 | \text{positionhaut=\positionhaut |
||
81 | r\ans[2],\v[1] x \v[2]} |
||
82 | } |
||
3541 | bpr | 83 | \text{position=\choix=1 or \choix=0? \positionbas} |
84 | \text{position=\choix=2 or \choix=0? \position |
||
3426 | bpr | 85 | \positionhaut} |
3541 | bpr | 86 | text{position=\positionbas |
87 | \positionhaut} |
||
3426 | bpr | 88 | \text{urlfleche=draw(\size |
89 | \fleche)} |
||
90 | \statement{\instruction |
||
91 | <center> |
||
92 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
||
93 | \position} |
||
94 | </center> |
||
95 | } |
||
3541 | bpr | 96 | |
3426 | bpr | 97 | \answer{}{\rep[1;1]}{type=clickfill}{option=shuffle} |
98 | \answer{}{\rep[1;2]}{type=clickfill}{option=shuffle} |
||
99 | \answer{}{\rep[2;1]}{type=clickfill}{option=shuffle} |
||
100 | \answer{}{\rep[2;2]}{type=clickfill}{option=shuffle} |
||
101 | \answer{}{\rep[3;1]}{type=clickfill}{option=shuffle} |
||
102 | \answer{}{\rep[3;2]}{type=clickfill}{option=shuffle} |
||
103 | \answer{}{\rep[4;1]}{type=clickfill}{option=shuffle} |
||
104 | \answer{}{\rep[4;2]}{type=clickfill}{option=shuffle} |
||
105 | \answer{}{\rep[5;1]}{type=clickfill}{option=shuffle} |
||
106 | \answer{}{\rep[5;2]}{type=clickfill}{option=shuffle} |
||
107 | \answer{}{\rep[6;1]}{type=clickfill}{option=shuffle} |
||
108 | \answer{}{\rep[6;2]}{type=clickfill}{option=shuffle} |
||
109 | \answer{}{\rep[7;1]}{type=clickfill}{option=shuffle} |
||
110 | \answer{}{\rep[7;2]}{type=clickfill}{option=shuffle} |
||
111 | \answer{}{\rep[8;1]}{type=clickfill}{option=shuffle} |
||
112 | \answer{}{\rep[8;2]}{type=clickfill}{option=shuffle} |
||
113 | \answer{}{\rep[9;1]}{type=clickfill}{option=shuffle} |
||
114 | \answer{}{\rep[9;2]}{type=clickfill}{option=shuffle} |
||
115 | \answer{}{\rep[10;1]}{type=clickfill}{option=shuffle} |
||
116 | \answer{}{\rep[10;2]}{type=clickfill}{option=shuffle} |