plus rapide
This commit is contained in:
1 parent
5aa5da8c53
commit
c2e4b8ae53
1 file changed
+1
-1
@@ -46,7 +46,7 @@ function dico($longueur_max) {
|
||||
function mots_espaces($longueur_max) {
|
||||
$dico = dico($longueur_max);
|
||||
for ($longueur = $longueur_max; $longueur >= 2; $longueur--) {
|
||||
for ($position_espace = $longueur - 2; $position_espace >= 1; $position_espace--) {
|
||||
for ($position_espace = $longueur - 1; $position_espace >= 1; $position_espace--) {
|
||||
$mots_suivants = $dico[$longueur - $position_espace - 1];
|
||||
foreach ($dico[$position_espace]->arrayIterator() as $premier_mot => $definition) {
|
||||
$premier_mot[] = CASE_NOIRE;
|
||||
|
||||
Reference in new issue
Block a user