From 198876a1c37b71963d0d90473dcd5b5013fd73f5 Mon Sep 17 00:00:00 2001 From: readhame Date: Tue, 28 Jul 2020 20:07:12 +0200 Subject: [PATCH] =?UTF-8?q?=20compteur=20HS=204x4=204x5=20et=205x5=20presq?= =?UTF-8?q?ue=20termin=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HyperSet/.idea/workspace.xml | 5 +- HyperSet/set.php | 6 +- HyperSet/vues/homePage.html | 2 +- HyperSet/vues/js/set.js | 336 ++++++++++++++++++++++++++--------- 4 files changed, 256 insertions(+), 93 deletions(-) diff --git a/HyperSet/.idea/workspace.xml b/HyperSet/.idea/workspace.xml index 663038c..fe91f5e 100644 --- a/HyperSet/.idea/workspace.xml +++ b/HyperSet/.idea/workspace.xml @@ -143,6 +143,7 @@ + @@ -186,10 +187,10 @@ - + - + diff --git a/HyperSet/set.php b/HyperSet/set.php index 7839885..bcd535f 100644 --- a/HyperSet/set.php +++ b/HyperSet/set.php @@ -64,17 +64,17 @@ if (isset($_GET['action']) && $_GET['action'] == 'deal') { $_SESSION['deckHS2'] = new Deck($_GET['action']); $_SESSION['gameHS2'] = new Game($_SESSION['deckHS2']); $game = $_SESSION['gameHS2']; - echo json_encode($game->start(24)); + echo json_encode($game->start(28)); }else if (isset($_GET['action']) && $_GET['action'] == 'dealHS3') { $_SESSION['deckHS3'] = new Deck($_GET['action']); $_SESSION['gameHS3'] = new Game($_SESSION['deckHS3']); $game = $_SESSION['gameHS3']; - echo json_encode($game->start(33)); + echo json_encode($game->start(48)); }else if (isset($_GET['action']) && $_GET['action'] == 'dealHS4') { $_SESSION['deckHS4'] = new Deck($_GET['action']); $_SESSION['gameHS4'] = new Game($_SESSION['deckHS4']); $game = $_SESSION['gameHS4']; - echo json_encode($game->start(42)); + echo json_encode($game->start(54)); } diff --git a/HyperSet/vues/homePage.html b/HyperSet/vues/homePage.html index 3566fc7..2e1cd07 100644 --- a/HyperSet/vues/homePage.html +++ b/HyperSet/vues/homePage.html @@ -220,7 +220,7 @@

HyperSets found: 0

Number of HyperSets:

-
+