Subversion Repositories wimsdev

Rev

Rev 13705 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11375 bpr 1
type=game
13705 obado 2
textarea="instruction data"
3
iEdit="instruction"
3766 bpr 4
 
13705 obado 5
:Reconstitute a picture (puzzle type).
3766 bpr 6
 
13705 obado 7
A picture is cut into pieces that are put in the mess.
8
You have to reconstruct the original image.
9
You can only exchange two pieces: to do this, click on the first then on the second.
3766 bpr 10
 
13477 obado 11
<p class="wims_credits">
15179 lemaire 12
Author of the model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a>
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 %%%%%%%%%%%%%%%%%
13705 obado 20
:\title{Picture puzzle}
5147 bpr 21
:\author{Bernadette, Perrin-Riou}
5724 bpr 22
:\email{bpr@math.u-psud.fr}
23
:\credits{}
13477 obado 24
 
25
:Instructions
13705 obado 26
\text{instruction=Rebuild the image.
27
To swap two pieces, click on the first and then on the second.}
3766 bpr 28
 
13477 obado 29
:Main data.
13705 obado 30
Each line corresponds to an image
31
The first item is the name of the image that should be loaded
32
 into the images folder of the exercise once it is saved.
33
The second item is the size of the image.
34
The third item indicates cutting.
35
The fourth item is optional and can be an indication or the name of the image.
36
\text{data=photos/bird.gif,320x240,4 x 3,it's a bird.
3766 bpr 37
photos/bloom.gif,320x240,3 x 4
38
}
11544 obado 39
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
3766 bpr 40
 
41
\text{data=randrow(\data)}
42
 
43
\text{v=wims(replace internal x by , in \data[3])}
44
\integer{taille=80*\v[1]}
45
 
13480 obado 46
\statement{
47
  <div style="padding:10px;">
48
    <div class="instruction">\instruction</div>
49
    \if{\data[4] !=}{
50
      <strong>\data[4]</strong>
51
    }
52
  </div>
5723 bpr 53
  <div class="wimscenter">\embed{r 1, \data[2]}</div>
3766 bpr 54
}
13480 obado 55
 
3766 bpr 56
\answer{1}{\data[1];\data[3] x 80}{type=puzzle}{option=nonstop}