Subversion Repositories wimsdev

Rev

Rev 11375 | Rev 13477 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11375 bpr 1
type=game
3766 bpr 2
textarea="data"
3
 
4
:Reconstituer une image (type puzzle).
5
 
6
Une image est coupée en morceaux et les morceaux sont mis dans le désordre.
7
Il s'agit de reconstituer l'image.
8
On ne peut qu'échanger deux étiquettes : pour cela,
9
cliquer sur la première puis sur la seconde.
10
 
11
<p>
11544 obado 12
Author of the model: Bernadette Perrin-Riou <bpr@math.u-psud.fr>
3766 bpr 13
</p>
14
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
15
 
11544 obado 16
Remove the above header if you destroy the model tags! (The lines starting
17
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
3766 bpr 18
 
11544 obado 19
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
3766 bpr 20
:\title{Puzzle d'images}
5147 bpr 21
:\author{Bernadette, Perrin-Riou}
5724 bpr 22
:\email{bpr@math.u-psud.fr}
23
:\credits{}
3766 bpr 24
:Consigne
7718 bpr 25
\text{instruction=Mettre l'image dans l'ordre.
3766 bpr 26
Pour échanger deux cartes, cliquer sur la première puis sur la seconde.}
27
 
28
:Données principales.
29
Chaque ligne correspond à une image. Le premier item est le nom de l'image
5719 bpr 30
qui doit être chargée dans le dossier images de l'exercice une fois l'exercice sauvé.
5129 bpr 31
Le deuxième item est la taille de l'image.
32
Le troisième item indique le découpage.
33
Le quatrième item est facultatif et peut être une indication ou le nom de l'image
3766 bpr 34
\text{data=photos/bird.gif,320x240,4 x 3,il s'agit d'un oiseau.
35
photos/bloom.gif,320x240,3 x 4
36
}
11544 obado 37
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
3766 bpr 38
 
39
\text{data=randrow(\data)}
40
 
41
\text{v=wims(replace internal x by , in \data[3])}
42
\integer{taille=80*\v[1]}
43
 
44
\statement{<div style="padding:10px;">
45
\instruction
46
\if{\data[4] !=}{
5723 bpr 47
  <p style="font-weight:bold;">\data[4]</b>
3766 bpr 48
}
49
</div>
5723 bpr 50
  <div class="wimscenter">\embed{r 1, \data[2]}</div>
3766 bpr 51
}
52
\answer{1}{\data[1];\data[3] x 80}{type=puzzle}{option=nonstop}