centrer la grille
This commit is contained in:
parent
dd8dabd39c
commit
967d5de46c
5
dico.php
5
dico.php
@ -45,8 +45,7 @@ function mots_espaces($longueur) {
|
|||||||
fisherYatesShuffle($mots_de_n_lettres[$longueur]);
|
fisherYatesShuffle($mots_de_n_lettres[$longueur]);
|
||||||
foreach($mots_de_n_lettres[$longueur] as $mot) {
|
foreach($mots_de_n_lettres[$longueur] as $mot) {
|
||||||
yield $mot;
|
yield $mot;
|
||||||
$nb_mots++;
|
if (++$nb_mots > MAX_MOTS) {
|
||||||
if ($nb_mots > MAX_MOTS) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,7 +59,7 @@ function mots_espaces($longueur) {
|
|||||||
yield "$mot2 $mot1";
|
yield "$mot2 $mot1";
|
||||||
$nb_mots += 2;
|
$nb_mots += 2;
|
||||||
if ($nb_mots > MAX_MOTS) {
|
if ($nb_mots > MAX_MOTS) {
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user