Rev 11375 | Rev 12170 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11501 | mquerol | 1 | type=order |
3759 | bpr | 2 | textarea="data" |
3 | |||
4 | :Mettre des étiquettes dans l'ordre (type puzzle). |
||
5 | |||
6 | Des étiquettes sont présentées dans le désordre. Il s'agit de les remettre dans l'ordre. |
||
7 | On ne peut qu'échanger deux étiquettes : pour cela, |
||
8 | cliquer sur la première puis sur la seconde. |
||
6132 | bpr | 9 | |
10 | $image_help |
||
11 | |||
3759 | bpr | 12 | <p> |
13 | Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
||
14 | </p> |
||
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
16 | |||
17 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
18 | (Ce sont les lignes qui commencent par un ':'.) |
||
19 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
20 | |||
21 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
22 | :\title{Puzzle de mots} |
||
5147 | bpr | 23 | :\author{Bernadette, Perrin-Riou} |
6132 | bpr | 24 | :\email{bpr@math.u-psud.fr} |
25 | :\credits{} |
||
3759 | bpr | 26 | :Consigne |
11375 | bpr | 27 | \text{instruction=Reconstituer les phrases. Pour échanger deux |
3759 | bpr | 28 | cartes, cliquer sur la première puis sur la seconde.} |
29 | :Nombre de questions proposées (maximum 5) |
||
30 | \text{N=2} |
||
31 | :Données principales. |
||
11375 | bpr | 32 | Mettre les constituants du puzzle en les séparant par des virgules. Il ne doit pas y avoir deux mots |
3759 | bpr | 33 | identiques. |
4049 | bpr | 34 | \text{data=Le, chat, a, attrapé, la, souris. |
4060 | bpr | 35 | Le, chien, ne, mange, pas, de, souris. |
3759 | bpr | 36 | } |
37 | |||
38 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
||
39 | |||
40 | \integer{M=rows(\data)} |
||
41 | \integer{N=min(\N,\M)} |
||
42 | \integer{N=min(\N,10)} |
||
43 | \text{liste=shuffle(\M)} |
||
44 | \text{liste=\liste[1..\N]} |
||
45 | \matrix{data=\data} |
||
46 | \matrix{data=\data[\liste;]} |
||
47 | \text{option=} |
||
48 | \for{j=1 to \N}{ |
||
49 | \integer{nb_item=items(\data[\j;])} |
||
50 | \text{option=wims(append line 1 x \nb_item to \option)} |
||
51 | } |
||
52 | \matrix{option=\option} |
||
53 | \text{STEP=wims(makelist r x for x=1 to \N)} |
||
54 | \steps{\STEP} |
||
55 | \statement{\instruction |
||
6132 | bpr | 56 | \if{\N=1}{ |
57 | <p class="wimscenter">\embed{r 1, 400 x 60}</p> |
||
3759 | bpr | 58 | }{ |
59 | \for{s=1 to \N}{<p> \s : </p> |
||
6132 | bpr | 60 | <p class="wimscenter">\embed{r \s, 400 x 60}</p> |
3759 | bpr | 61 | } |
62 | } |
||
63 | } |
||
64 | \answer{1}{\data[1;];\option[1;] x 80}{type=puzzle}{option=text} |
||
65 | \answer{2}{\data[2;];\option[2;] x 80}{type=puzzle}{option=text} |
||
66 | \answer{3}{\data[3;];\option[3;] x 80}{type=puzzle}{option=text} |
||
67 | \answer{4}{\data[4;];\option[4;] x 80}{type=puzzle}{option=text} |
||
68 | \answer{5}{\data[5;];\option[5;] x 80}{type=puzzle}{option=text} |
||
69 | \answer{6}{\data[6;];\option[6;] x 80}{type=puzzle}{option=text} |
||
70 | \answer{7}{\data[7;];\option[7;] x 80}{type=puzzle}{option=text} |
||
71 | \answer{8}{\data[8;];\option[8;] x 80}{type=puzzle}{option=text} |
||
72 | \answer{9}{\data[9;];\option[9;] x 80}{type=puzzle}{option=text} |
||
73 | \answer{10}{\data[10;];\option[10;] x 80}{type=puzzle}{option=text} |