pas d'infobulle sur les mots d'une lettre
This commit is contained in:
@@ -150,6 +150,7 @@ class Grille implements ArrayAccess
|
|||||||
$lettres_ligne->branches,
|
$lettres_ligne->branches,
|
||||||
$lettres_colonne->branches
|
$lettres_colonne->branches
|
||||||
);
|
);
|
||||||
|
// Sélection des candidats les plus fertiles
|
||||||
foreach ($lettres_communes as $lettre => $_) {
|
foreach ($lettres_communes as $lettre => $_) {
|
||||||
$lettres_communes[$lettre] = log(count($lettres_ligne->branches[$lettre])) * count($lettres_colonne->branches[$lettre]) * gaussienne(ECART_TYPE, ECART_TYPE);
|
$lettres_communes[$lettre] = log(count($lettres_ligne->branches[$lettre])) * count($lettres_colonne->branches[$lettre]) * gaussienne(ECART_TYPE, ECART_TYPE);
|
||||||
}
|
}
|
||||||
@@ -196,7 +197,7 @@ class Grille implements ArrayAccess
|
|||||||
if ($y == $this->hauteur - 1) {
|
if ($y == $this->hauteur - 1) {
|
||||||
$mots = explode_pos(CASE_NOIRE, $this->get_colonne($x, $this->hauteur));
|
$mots = explode_pos(CASE_NOIRE, $this->get_colonne($x, $this->hauteur));
|
||||||
foreach ($mots as $rang => $mot) {
|
foreach ($mots as $rang => $mot) {
|
||||||
if (strlen($mot) < 2) continue;
|
//if (strlen($mot) < 2) continue;
|
||||||
if (strlen($mot > 2) && in_array($mot, array_merge(...$this->lignes, ...$this->colonnes))) continue 2;
|
if (strlen($mot > 2) && in_array($mot, array_merge(...$this->lignes, ...$this->colonnes))) continue 2;
|
||||||
else $this->colonnes[$x][$rang] = $mot;
|
else $this->colonnes[$x][$rang] = $mot;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,7 +174,9 @@ function mot_courant($mots, $position) {
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach ($definitions as $definition) : ?>
|
<?php foreach ($definitions as $definition) : ?>
|
||||||
|
<?php if (isset($definition[0])): ?>
|
||||||
<li><?= formatter_definition($definition) ?></li>
|
<li><?= formatter_definition($definition) ?></li>
|
||||||
|
<?php endif ?>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@@ -194,7 +196,9 @@ function mot_courant($mots, $position) {
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach ($definitions as $definition) : ?>
|
<?php foreach ($definitions as $definition) : ?>
|
||||||
|
<?php if (isset($definition[0])): ?>
|
||||||
<li><?= formatter_definition($definition) ?></li>
|
<li><?= formatter_definition($definition) ?></li>
|
||||||
|
<?php endif ?>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user