Compteur HS 4x5 et Set 5x5

master
readhame 5 years ago
parent aa21f70ddd
commit e4a15a2e3d

@ -135,6 +135,9 @@
<workItem from="1595344550924" duration="1649000" />
<workItem from="1595405934952" duration="11919000" />
<workItem from="1595425032126" duration="2254000" />
<workItem from="1595502519582" duration="8852000" />
<workItem from="1595514911380" duration="1711000" />
<workItem from="1595527325944" duration="1234000" />
</task>
<servers />
</component>
@ -178,10 +181,10 @@
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state width="623" height="498" key="SwitcherDM/0.0.1920.1040@0.0.1920.1040" timestamp="1595243925469" />
<state x="1136" y="344" key="com.intellij.ide.util.TipDialog" timestamp="1595425843105">
<state x="1136" y="344" key="com.intellij.ide.util.TipDialog" timestamp="1595527689222">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="1136" y="344" key="com.intellij.ide.util.TipDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1595425843105" />
<state x="1136" y="344" key="com.intellij.ide.util.TipDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1595527689222" />
<state x="701" y="162" key="refactoring.ChangeSignatureDialog" timestamp="1593090265720">
<screen x="0" y="0" width="1920" height="1040" />
</state>

@ -31,13 +31,13 @@ if (isset($_GET['action']) && $_GET['action'] == 'deal') {
$_SESSION['deck3'] = new Deck($_GET['action']);
$_SESSION['game3'] = new Game($_SESSION['deck3']);
$game = $_SESSION['game3'];
echo json_encode($game->start(40));
echo json_encode($game->start(48));
} else if (isset($_GET['action']) && $_GET['action'] == 'deal4') {
$_SESSION['deck4'] = new Deck($_GET['action']);
$_SESSION['game4'] = new Game($_SESSION['deck4']);
$game = $_SESSION['game4'];
echo json_encode($game->start(50));
echo json_encode($game->start(70));
}else if (isset($_GET['action']) && $_GET['action'] == 'deal0') {
$_SESSION['deck0'] = new Deck($_GET['action']);
@ -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(20));
echo json_encode($game->start(24));
}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(24));
echo json_encode($game->start(33));
}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(24));
echo json_encode($game->start(42));
}

@ -60,7 +60,17 @@ h1 {
margin-left: -15%;
height: 1000px;
width: 1700px;
position: fixed;
}
.game-board4 {
margin-left: -25%;
height: 1000px;
width: 1700px;
}

@ -111,7 +111,7 @@
<p>Number of Sets: <span data-display="nbSets1" class="nbSets"></span></p>
<div class="game-board1" data-display="game-board1"></div>
<div id="carte1" class="game-board1" data-display="game-board1"></div>
</div>
<div id='game2' class="wrapper" style="display: none;">
@ -123,7 +123,7 @@
<p>Sets found: <span data-display="score2" class="score">0</span></p>
<p>Number of Sets: <span data-display="nbSets2" class="nbSets"></span></p>
<div class="game-board2" data-display="game-board2"></div>
<div id="carte2" class="game-board2" data-display="game-board2"></div>
</div>
<div id='game3' class="wrapper" style="display: none;">
<h1>Set 4x5 Bordures + à regler les images</h1>
@ -135,7 +135,7 @@
<p>Sets found: <span data-display="score3" class="score">0</span></p>
<p>Number of Sets: <span data-display="nbSets3" class="nbSets"></span></p>
<div class="game-board3" data-display="game-board3"></div>
<div id="carte3" class="game-board3" data-display="game-board3"></div>
</div>
<div id='game4' class="wrapper" style="display: none;">
<h1>Set 5x5 Bordures + à tester+ compteur + à regler les images </h1>
@ -147,7 +147,7 @@
<p>Sets found: <span data-display="score4" class="score">0</span></p>
<p>Number of Sets: <span data-display="nbSets4" class="nbSets"></span></p>
<div class="game-board3" data-display="game-board4"></div>
<div id="carte4" class="game-board4" data-display="game-board4"></div>
</div>
@ -168,7 +168,7 @@
<p>HyperSets found: <span data-display="scoreHS" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS" class="nbSets"></span></p>
<div class="game-boardHS" data-display="game-boardHS"></div>
<div id="carteHS" class="game-boardHS" data-display="game-boardHS"></div>
</div>
@ -181,7 +181,7 @@
<p>HyperSets found: <span data-display="scoreHS0" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS0" class="nbSets"></span></p>
<div class="game-boardHS0" data-display="game-boardHS0"></div>
<div id="carteHS0"class="game-boardHS0" data-display="game-boardHS0"></div>
</div>
<div id='gameHS1' class="wrapper" style="display: none;">
<h1>HyperSet 3x5 OK</h1>
@ -192,7 +192,7 @@
<p>HyperSets found: <span data-display="scoreHS1" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS1" class="nbSets"></span></p>
<div class="game-boardHS1" data-display="game-boardHS1"></div>
<div id="carteHS1" class="game-boardHS1" data-display="game-boardHS1"></div>
</div>
<div id='gameHS2' class="wrapper" style="display: none;">
@ -204,7 +204,7 @@
<p>HyperSets found: <span data-display="scoreHS2" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS2" class="nbSets"></span></p>
<div class="game-boardHS2" data-display="game-boardHS2"></div>
<div id="carteHS2" class="game-boardHS2" data-display="game-boardHS2"></div>
</div>
<div id='gameHS3' class="wrapper" style="display: none;">
@ -216,7 +216,7 @@
<p>HyperSets found: <span data-display="scoreHS3" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS3" class="nbSets"></span></p>
<div class="game-boardHS3" data-display="game-boardHS3"></div>
<div id="carteHS3" class="game-boardHS3" data-display="game-boardHS3"></div>
</div>
<div id='gameHS4' class="wrapper" style="display: none;">
@ -228,7 +228,7 @@
<p>HyperSets found: <span data-display="scoreHS4" class="score">0</span></p>
<p>Number of HyperSets: <span data-display="nbSetsHS4" class="nbSets"></span></p>
<div class="game-boardHS3" data-display="game-boardHS4"></div>
<div id="carteHS4" class="game-boardHS3" data-display="game-boardHS4"></div>
</div>

@ -79,27 +79,34 @@ function goHome(){
function showGameHS(){
document.getElementById('gameHS').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS();
}
function showGameHS0(){
document.getElementById('gameHS0').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS0();
}
function showGameHS1(){
document.getElementById('gameHS1').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS1();
}
function showGameHS2(){
document.getElementById('gameHS2').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS2();
}
function showGameHS3(){
document.getElementById('gameHS3').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS3();
}
function showGameHS4(){
document.getElementById('gameHS4').style.display='block';
document.getElementById('selectModeHyperSet').style.display='none';
Game.dealHS4();
}
@ -108,31 +115,42 @@ function showGameHS4(){
function showGame0(){
document.getElementById('game0').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal0();
}
function showGame(){
document.getElementById('game').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal();
}
function showGame1(){
document.getElementById('game1').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal1();
}
function showGame2(){
document.getElementById('game2').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal2();
}
function showGame3(){
document.getElementById('game3').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal3();
}
function showGame4(){
document.getElementById('game4').style.display='block';
document.getElementById('selectModeSet').style.display='none';
Game.deal4();
}
@ -214,50 +232,69 @@ function goSelect1(){
function goSelectMode(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game').style.display='none';
document.getElementById('carte').innerHTML = "";
}
function goSelectMode1(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game1').style.display='none';
document.getElementById('carte1').innerHTML = "";
}
function goSelectMode2(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game2').style.display='none';
document.getElementById('carte2').innerHTML = "";
}
function goSelectMode3(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game3').style.display='none';
document.getElementById('carte3').innerHTML = "";
}
function goSelectMode4(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game4').style.display='none';
document.getElementById('carte4').innerHTML = "";
}
function goSelectMode0(){
document.getElementById('selectModeSet').style.display='block';
document.getElementById('game0').style.display='none';
document.getElementById('carte0').innerHTML = "";
}
function goSelectModeHyperSet(){
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('gameHS').style.display='none';
document.getElementById('carteHS').innerHTML = "";
}
function goSelectModeHyperSet0(){
document.getElementById('gameHS0').style.display='none';
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('carteHS0').innerHTML = "";
}
function goSelectModeHyperSet1(){
document.getElementById('gameHS1').style.display='none';
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('carteHS1').innerHTML = "";
}
function goSelectModeHyperSet2(){
document.getElementById('gameHS2').style.display='none';
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('carteHS2').innerHTML = "";
}
function goSelectModeHyperSet3(){
document.getElementById('gameHS3').style.display='none';
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('carteHS3').innerHTML = "";
}
function goSelectModeHyperSet4(){
document.getElementById('gameHS4').style.display='none';
document.getElementById('selectModeHyperSet').style.display='block';
document.getElementById('carteHS4').innerHTML = "";
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save