Subversion Repositories wimsdev

Rev

Rev 11375 | Rev 13477 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11375 Rev 11544
Line 4... Line 4...
4
:Mélange de lettres
4
:Mélange de lettres
5
Faire un mot avec des lettres. Jusqu'à 5 listes de mots peuvent être entrées.
5
<p>Faire un mot avec des lettres. Jusqu'à 5 listes de mots peuvent être entrées.
6
Un mot au hasard dans chaque liste est pris à chaque fois. Une indication
6
  Un mot au hasard dans chaque liste est pris à chaque fois. Une indication
7
peut être mise pour chaque mot.
7
  peut être mise pour chaque mot.</p>
8
<p>
-
 
9
<span class="wims_warning">$wims_name_warning</span>. Vous devez vérifier
8
<p><span class="wims_warning">$wims_name_warning</span>.
10
que d'autres mots ne sont pas faisables avec les mêmes lettres
9
  Vous devez vérifier que d'autres mots ne sont pas faisables avec les mêmes lettres
11
ou mettre une indication qui permette de différencier.
10
  ou mettre une indication qui permette de différencier.</p>
12
<p>
-
 
13
Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr>
11
<p>Author of the model: Bernadette Perrin-Riou <bpr@math.u-psud.fr></p>
14
</p>
-
 
15
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
12
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
16
 
13
 
17
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
14
Remove the above header if you destroy the model tags! (The lines starting
18
(Ce sont les lignes qui commencent par un ':'.)
-
 
19
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
15
with a ':'.) Otherwise the exercise might not be taken back by Createxo.
20
 
16
 
21
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
17
:%%%%%%%% Sample parameters to be redefined %%%%%%%%%%%%%%%%%
22
 
18
 
23
:\title{Faire un mot avec des lettres }
19
:\title{Faire un mot avec des lettres }
24
:\author{Bernadette, Perrin-Riou}
20
:\author{Bernadette, Perrin-Riou}
25
:\email{bpr@math.u-psud.fr}
21
:\email{bpr@math.u-psud.fr}
26
:\credits{}
22
:\credits{}
Line 51... Line 47...
51
:Quatrième liste de mots
47
:Quatrième liste de mots
52
\text{data4=}
48
\text{data4=}
53
:Cinquième liste de mots
49
:Cinquième liste de mots
54
\text{data5=}
50
\text{data5=}
55
 
51
 
56
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
52
:%%%%%%%%%%%%%% Nothing to modify until statement %%%%%%%%%%%%%%%%
57
\matrix{data1=\data1}
53
\matrix{data1=\data1}
58
\text{mot1=wims(nonempty items \data1[;1])}
54
\text{mot1=wims(nonempty items \data1[;1])}
59
\text{mot1=items(\mot1)>=2 ? shuffle(\mot1)}
55
\text{mot1=items(\mot1)>=2 ? shuffle(\mot1)}
60
\text{mot1=\mot1[1]}
56
\text{mot1=\mot1[1]}
61
\text{indication1=wims(select \data1 where column 1 issametext \mot1)}
57
\text{indication1=wims(select \data1 where column 1 issametext \mot1)}
Line 137... Line 133...
137
\text{mot5=wims(replace internal _ by &nbsp; in \mot5)}
133
\text{mot5=wims(replace internal _ by &nbsp; in \mot5)}
138
\text{Mot=}
134
\text{Mot=}
139
\text{STEP=wims(makelist r x for x=1 to \N)}
135
\text{STEP=wims(makelist r x for x=1 to \N)}
140
\text{STEP=r1}
136
\text{STEP=r1}
141
\nextstep{\STEP}
137
\nextstep{\STEP}
-
 
138
 
-
 
139
::You don't need to modify this in general.
142
 
140
 
143
\statement{
141
\statement{
144
\for{a=1 to \step-1}{
142
\for{a=1 to \step-1}{
145
  \if{\a <= \N}{
143
  \if{\a <= \N}{
146
  <div style="font-size:large;padding:6px; margin-left:10px;wdith:50%;
144
  <div style="font-size:large;padding:6px; margin-left:10px;wdith:50%;
147
  border: 1px solid #555555;">\Mot[\a;]
145
  border: 1px solid #555555;">\Mot[\a;]
148
  \if{ \indication[\a;] notsametext xxx }{ (\indication[\a;]) }</div>
146
  \if{ \indication[\a;] notsametext xxx }{ (\indication[\a;]) }</div>
149
  }
147
  }
150
}
148
}
151
\if{\step <= \N}{
149
\if{\step <= \N}{
152
\instruction
150
\instruction
153
<div class="wimscenter">\embed{r \step,50 x 50}
151
<div class="wimscenter">\embed{r \step,50 x 50}
154
\if{ \indication[\step;] notsametext xxx }{
152
\if{ \indication[\step;] notsametext xxx }{
155
(<span style="font-size:large;">\indication[\step;]</span>) }
153
(<span style="font-size:large;">\indication[\step;]</span>) }
156
</div>
154
</div>
157
}
155
}
158
}
156
}
-
 
157
 
159
\answer{}{\mot1}{type=dragfill}{option=nonstop}
158
\answer{}{\mot1}{type=dragfill}{option=nonstop}
160
\answer{}{\mot2}{type=dragfill}{option=nonstop}
159
\answer{}{\mot2}{type=dragfill}{option=nonstop}
161
\answer{}{\mot3}{type=dragfill}{option=nonstop}
160
\answer{}{\mot3}{type=dragfill}{option=nonstop}
162
\answer{}{\mot4}{type=dragfill}{option=nonstop}
161
\answer{}{\mot4}{type=dragfill}{option=nonstop}
163
\answer{}{\mot5}{type=dragfill}{option=nonstop}
162
\answer{}{\mot5}{type=dragfill}{option=nonstop}