Rev 13715 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11375 | bpr | 1 | type=game |
13715 | obado | 2 | textarea="instruction data" |
3 | iEdit="instruction" |
||
4122 | bpr | 4 | |
4135 | bpr | 5 | :Reorder the labels (puzzle). |
4122 | bpr | 6 | |
4135 | bpr | 7 | The labels have all been mixed up and have to be reordered correctly. Only two labels can be exchanged at a time. |
8 | Click on one label first, then on the label you wish to replace the first one with. |
||
9 | |||
13477 | obado | 10 | <p class="wims_credits"> |
15179 | lemaire | 11 | Author of the model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
4122 | bpr | 12 | </p> |
13 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
4135 | bpr | 14 | Remove the above header if you destroy the model tags i.e. the lines starting |
15 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
||
4122 | bpr | 16 | |
17 | :%%%%%%%% Example parameters to be redefined %%%%%%%%%%%%%%%%% |
||
18 | |||
19 | :\title{Word Puzzle} |
||
5147 | bpr | 20 | :\author{Csilla, Ducrocq} |
5724 | bpr | 21 | :\email{} |
22 | :\credits{} |
||
13477 | obado | 23 | |
24 | :Instructions |
||
4122 | bpr | 25 | \text{instruction=Make sentences with the words below. First click on the word you want to move then on another word that it is to be replaced with.} |
13477 | obado | 26 | |
13705 | obado | 27 | :Amount of displayed questions (maximum 5) |
4122 | bpr | 28 | \text{N=2} |
13477 | obado | 29 | |
13705 | obado | 30 | :Main data |
4135 | bpr | 31 | Write the elements of the puzzle in the right order. Separate each element with a comma. |
4122 | bpr | 32 | \text{data=The, cat, ate, the, mouse. |
4135 | bpr | 33 | The, mouse, was, eaten, by, the, cat. |
34 | The, man, beat, the, dog. |
||
35 | The, dog, was, beaten, by, the, man. |
||
36 | Mary, has, watered, the, flowers. |
||
37 | The, flowers, have, been, watered, by, Mary. |
||
38 | } |
||
4122 | bpr | 39 | |
40 | :%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%% |
||
41 | |||
42 | \integer{M=rows(\data)} |
||
43 | \integer{N=min(\N,\M)} |
||
44 | \integer{N=min(\N,10)} |
||
45 | \text{liste=shuffle(\M)} |
||
46 | \text{liste=\liste[1..\N]} |
||
47 | \matrix{data=\data} |
||
48 | \matrix{data=\data[\liste;]} |
||
49 | \text{option=} |
||
50 | \for{j=1 to \N}{ |
||
51 | \integer{nb_item=items(\data[\j;])} |
||
52 | \text{option=wims(append line 1 x \nb_item to \option)} |
||
53 | } |
||
54 | \matrix{option=\option} |
||
55 | \text{STEP=wims(makelist r x for x=1 to \N)} |
||
56 | \steps{\STEP} |
||
13480 | obado | 57 | |
58 | \statement{ |
||
59 | <div class="instruction">\instruction</div> |
||
60 | \if{\N=1}{ |
||
61 | <div class="wimscenter">\embed{r 1, 400 x 60}</div> |
||
62 | }{ |
||
63 | \for{s=1 to \N}{ |
||
13488 | obado | 64 | <p>\s :</p> |
13480 | obado | 65 | <div class="wimscenter">\embed{r \s, 400 x 60}</div> |
66 | } |
||
67 | } |
||
4122 | bpr | 68 | } |
13480 | obado | 69 | |
4122 | bpr | 70 | \answer{1}{\data[1;];\option[1;] x 80}{type=puzzle}{option=text} |
71 | \answer{2}{\data[2;];\option[2;] x 80}{type=puzzle}{option=text} |
||
72 | \answer{3}{\data[3;];\option[3;] x 80}{type=puzzle}{option=text} |
||
73 | \answer{4}{\data[4;];\option[4;] x 80}{type=puzzle}{option=text} |
||
74 | \answer{5}{\data[5;];\option[5;] x 80}{type=puzzle}{option=text} |
||
75 | \answer{6}{\data[6;];\option[6;] x 80}{type=puzzle}{option=text} |
||
76 | \answer{7}{\data[7;];\option[7;] x 80}{type=puzzle}{option=text} |
||
77 | \answer{8}{\data[8;];\option[8;] x 80}{type=puzzle}{option=text} |
||
78 | \answer{9}{\data[9;];\option[9;] x 80}{type=puzzle}{option=text} |
||
79 | \answer{10}{\data[10;];\option[10;] x 80}{type=puzzle}{option=text} |