1
0
This commit is contained in:
Daniel Tartavel 2022-09-23 21:25:57 +02:00
parent 21d16b6209
commit 9e8c68fc01

View File

@ -57,7 +57,7 @@ class schulze
for($i = 0;$i < count($v) - 1;$i++) for($i = 0;$i < count($v) - 1;$i++)
{ {
$s = $v[$i]; $s = $v[$i];
echo $i . "=> . " . $s . "\n"; echo $i . " => " . $s . "\n";
if ($i == 0) if ($i == 0)
{ {
echo "i = 0\n"; echo "i = 0\n";
@ -72,7 +72,7 @@ class schulze
{ {
echo "non egal\n"; echo "non egal\n";
print_r($w); print_r($w);
$w[$s] = 1; $w[$v[i+1]] = 1;
} }
} }
$w = $this->votify($w); $w = $this->votify($w);