master
readhame 5 years ago
parent 67fa9bfc5d
commit df4f042cfd

@ -131,6 +131,7 @@
<workItem from="1595241049078" duration="8933000" /> <workItem from="1595241049078" duration="8933000" />
<workItem from="1595252250296" duration="15000" /> <workItem from="1595252250296" duration="15000" />
<workItem from="1595260179440" duration="1355000" /> <workItem from="1595260179440" duration="1355000" />
<workItem from="1595326918655" duration="983000" />
</task> </task>
<servers /> <servers />
</component> </component>
@ -174,10 +175,10 @@
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state width="623" height="498" key="SwitcherDM/0.0.1920.1040@0.0.1920.1040" timestamp="1595243925469" /> <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="1595260187442"> <state x="1136" y="344" key="com.intellij.ide.util.TipDialog" timestamp="1595326948648">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>
<state x="1136" y="344" key="com.intellij.ide.util.TipDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1595260187442" /> <state x="1136" y="344" key="com.intellij.ide.util.TipDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1595326948648" />
<state x="701" y="162" key="refactoring.ChangeSignatureDialog" timestamp="1593090265720"> <state x="701" y="162" key="refactoring.ChangeSignatureDialog" timestamp="1593090265720">
<screen x="0" y="0" width="1920" height="1040" /> <screen x="0" y="0" width="1920" height="1040" />
</state> </state>

@ -48,13 +48,13 @@ if (isset($_GET['action']) && $_GET['action'] == 'deal') {
$_SESSION['deckHS'] = new Deck($_GET['action']); $_SESSION['deckHS'] = new Deck($_GET['action']);
$_SESSION['gameHS'] = new Game($_SESSION['deckHS']); $_SESSION['gameHS'] = new Game($_SESSION['deckHS']);
$game = $_SESSION['gameHS']; $game = $_SESSION['gameHS'];
echo json_encode($game->start(12)); echo json_encode($game->start(10));
} else if (isset($_GET['action']) && $_GET['action'] == 'dealHS0') { } else if (isset($_GET['action']) && $_GET['action'] == 'dealHS0') {
$_SESSION['deckHS0'] = new Deck($_GET['action']); $_SESSION['deckHS0'] = new Deck($_GET['action']);
$_SESSION['gameHS0'] = new Game($_SESSION['deckHS0']); $_SESSION['gameHS0'] = new Game($_SESSION['deckHS0']);
$game = $_SESSION['gameHS0']; $game = $_SESSION['gameHS0'];
echo json_encode($game->start(8)); echo json_encode($game->start(7));
}else if (isset($_GET['action']) && $_GET['action'] == 'dealHS1') { }else if (isset($_GET['action']) && $_GET['action'] == 'dealHS1') {
$_SESSION['deckHS1'] = new Deck($_GET['action']); $_SESSION['deckHS1'] = new Deck($_GET['action']);
$_SESSION['gameHS1'] = new Game($_SESSION['deckHS1']); $_SESSION['gameHS1'] = new Game($_SESSION['deckHS1']);

@ -100,7 +100,7 @@ h1 {
} }
.game-boardHS { .game-boardHS {
margin-left: -1%; margin-left: 2%;
height: 800px; height: 800px;
width: 800px; width: 800px;
transform: rotate(90deg); transform: rotate(90deg);

@ -517,7 +517,7 @@ var Game = {
self.$boardHS.append(cardNode); self.$boardHS.append(cardNode);
// display 4 cards per row // display 4 cards per row
if ((index+1) % 3 === 0) { if ((index+1) % 2 === 0) {
self.$boardHS.append($('<div>')); self.$boardHS.append($('<div>'));
} }

Loading…
Cancel
Save