deboguage
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 4f775a1afa
commit fa3e241041

@ -247,9 +247,9 @@ class UserController
$idPartie = $_GET['idPartie']; $idPartie = $_GET['idPartie'];
$index = $_GET['index']; $index = $_GET['index'];
$lastIndex = $model->getLastIndex($idPartie); $lastIndex = $model->getLastIndex($idPartie);
echo $lastIndex;
if ($lastIndex != 0 && $index == $lastIndex + 1) { if ($lastIndex != 0 && $index == $lastIndex + 1) {
if ($model->checkGameIsEnd($idPartie)) { if ($model->checkGameIsEnd($idPartie)) {
echo" end";
$this->endGame(); $this->endGame();
return; return;
} }

Loading…
Cancel
Save