Subversion Repositories wimsdev

Rev

Rev 13477 | Rev 13705 | 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
 
13477 obado 11
<p class="wims_credits">
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{}
13477 obado 24
 
25
:Instructions
7718 bpr 26
\text{instruction=Mettre l'image dans l'ordre.
3766 bpr 27
Pour échanger deux cartes, cliquer sur la première puis sur la seconde.}
28
 
13477 obado 29
:Main data.
3766 bpr 30
Chaque ligne correspond à une image. Le premier item est le nom de l'image
5719 bpr 31
qui doit être chargée dans le dossier images de l'exercice une fois l'exercice sauvé.
5129 bpr 32
Le deuxième item est la taille de l'image.
33
Le troisième item indique le découpage.
34
Le quatrième item est facultatif et peut être une indication ou le nom de l'image
3766 bpr 35
\text{data=photos/bird.gif,320x240,4 x 3,il s'agit d'un oiseau.
36
photos/bloom.gif,320x240,3 x 4
37
}
11544 obado 38
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
3766 bpr 39
 
40
\text{data=randrow(\data)}
41
 
42
\text{v=wims(replace internal x by , in \data[3])}
43
\integer{taille=80*\v[1]}
44
 
13480 obado 45
\statement{
46
  <div style="padding:10px;">
47
    <div class="instruction">\instruction</div>
48
    \if{\data[4] !=}{
49
      <strong>\data[4]</strong>
50
    }
51
  </div>
5723 bpr 52
  <div class="wimscenter">\embed{r 1, \data[2]}</div>
3766 bpr 53
}
13480 obado 54
 
3766 bpr 55
\answer{1}{\data[1];\data[3] x 80}{type=puzzle}{option=nonstop}