-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (90 loc) · 4.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<link rel="stylesheet" href="res/css/style.css">
<title>Sticks gane</title>
</head>
<body>
<div data-name="app" class="pure-g">
<!--Menu page-->
<div data-name="menu" data-type="page" class="pure-u-1 pure-u-md-3-4">
<div class="pure-u-5-5 menu_title">The Awesome sticks game!</div>
<div class="pure-u-5-5"></div>
<div class="menu_buttons pure-u-5-5">
<button data-target="start.game" data-params="single" class="pure-button">1 player</button>
<button data-target="start.game" data-params="multi" class="pure-button">2 players</button>
</div>
<div class="pure-u-5-5"></div>
<div class="menu_buttons pure-u-5-5">
<button data-target="app.help" class="pure-button button-success">Help</button>
</div>
</div>
<!--Game page-->
<div data-name="board" data-type="page" class="pure-u-1 pure-u-md-3-4">
<div class="game_players pure-u-5-5">
<div class="player_1" data-name="player_1" data-type="player"></div>
<div class="player_2" data-name="player_2" data-type="player"></div>
</div>
<div class="pure-u-5-5"></div>
<div class="game_board pure-u-5-5">
<div class="content"></div>
</div>
<div class="pure-u-5-5"></div>
<div class="game_controllers pure-u-5-5">
<button class="pure-button" data-target="game.takeItem" data-params="1"> Draw 1</button>
<button class="pure-button" data-target="game.takeItem" data-params="2"> Draw 2</button>
<button class="pure-button" data-target="game.takeItem" data-params="3"> Draw 3</button>
</div>
<div class="pure-u-5-5">
<hr>
</div>
<div class="pure-u-5-5" data-name="monitor" data-type="tracker" style="text-align: center;">
<div class="content">
monitor
</div>
</div>
<div class="pure-u-5-5">
<hr>
</div>
<div class="game_controllers pure-u-5-5">
<button data-target="restart.game" class="pure-button button-secondary">Restart</button>
<button data-target="app.exit" class="pure-button button-success">Exit</button>
<button data-target="app.help" class="pure-button button-success">Help</button>
</div>
</div>
<!--Help page-->
<div data-name="help" data-type="page" class="pure-u-1 pure-u-md-3-4">
<div class="pure-u-5-5">
<h2>Game rules</h2>
<ul>
<li>You can draw 1 to 3 sticks from the pile</li>
<li>If only one stick left next player loses</li>
<li>If you accidentally draw the last stick you lose</li>
</ul>
<h3>Dev tips</h3>
<ul>
<li>AI level can be altered from: app/game.js by changing "AILevel" var to dummy/normal/master</li>
</ul>
</div>
<div class="pure-u-5-5"></div>
<div class="pure-u-5-5">
<hr>
</div>
<div class="pure-u-5-5 menu_buttons">
<button class="pure-button" data-target="app.back" data-params="home.page">back</button>
</div>
</div>
</div>
<script src="app/tools.js"></script>
<script src="app/events.js"></script>
<script src="app/game.js"></script>
<script src="app/player.js"></script>
<script src="app/ui.js"></script>
<script src="app/app.js"></script>
<script src="app/boot.js"></script>
</body>
</html>