-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
239 lines (223 loc) · 11.1 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>numGUESS</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/buzz/1.1.10/buzz.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/js/bootstrap-select.min.js"></script>
<script src="js/application.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/css/bootstrap-select.min.css">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<!-- <audio autoplay loop>
<source src="sounds/8-punk-8-bit-music.mp3">
</audio> -->
<div class="container-fluid">
<!-- LEFT SIDE ON OPTIONS AND DURING GAME -->
<section class="left-side col-xs-6"> <!-- left side -->
<header>
<h1>numGUESS</h1>
</header>
<!-- LEFT SIDE DURING OPTIONS ONLY -->
<div id="options-screen"> <!-- style="display: none"--> <!-- hide when game starts -->
<div class="row">
<div class="options-buttons col-xs-8 col-xs-push-2"> <!-- options target score -->
<select id="set-target-score" class="selectpicker col-xs-12" title="Target Score">
<option>20</option>
<option>30</option>
<option>40</option>
<option>50</option>
</select>
</div> <!-- options target score -->
</div> <!-- row -->
<div class="row">
<div class="options-buttons col-xs-8 col-xs-push-2"> <!-- options sprite size -->
<select id="set-sprite-size" class="selectpicker col-xs-12" title="Sprite Size">
<option>3x3</option>
<option>3x4</option>
<option>3x5</option>
</select>
</div> <!-- options sprite size -->
</div> <!-- row -->
<div class="row">
<div class="options-buttons col-xs-8 col-xs-push-2"> <!-- options orientation -->
<select id="set-orientation" class="selectpicker col-xs-12" title="Orientation">
<option value="normal">Normal</option>
<option value="inverse">Inverse (Upside-down)</option>
<option value="mirror">Mirror</option>
<option value="inverse-mirror">Inverse Mirror</option>
</select>
</div> <!-- options orientation -->
</div> <!-- row -->
<div class="row">
<button type="button" id="start-button" class="btn btn-lg btn-default col-xs-4 col-xs-push-4">Start</button>
</div>
</div> <!-- id=options -->
<!-- LEFT SIDE DURING GAME ONLY -->
<div id="play-box" style="display: none"> <!-- style="display: none"-->
<div class="row">
<div id="player-one" class="scorebox col-xs-3 col-xs-push-1">
<p>Player 1</p>
<p id="player-one-score">0</p>
</div> <!-- col-xs-3 -->
<div class="scorebox col-xs-3 col-xs-push-1">
<p>Target</p>
<p id="target-score">0</p>
</div> <!-- col-xs-3 -->
<div id="player-two" class="scorebox col-xs-3 col-xs-push-1">
<p>Player 2</p>
<p id="player-two-score">0</p>
</div> <!-- col-xs-3 -->
</div> <!-- row -->
<div class="row buttons">
<button class="guess-buttons btn btn-default" value="0">0</button>
<button class="guess-buttons btn btn-default" value="1">1</button>
<button class="guess-buttons btn btn-default" value="2">2</button>
<button class="guess-buttons btn btn-default" value="3">3</button>
<button class="guess-buttons btn btn-default" value="4">4</button>
<button class="guess-buttons btn btn-default" value="5">5</button>
<button class="guess-buttons btn btn-default" value="6">6</button>
<button class="guess-buttons btn btn-default" value="7">7</button>
<button class="guess-buttons btn btn-default" value="8">8</button>
<button class="guess-buttons btn btn-default" value="9">9</button>
<button id="pass-button" class="btn btn-lg btn-default">PASS</button>
<button id="reset-cells-button" class="btn btn-lg btn-default" style="display: none">NEXT ROUND</button>
<button id="restart-button" class="btn btn-lg btn-default" style="display: none">RESTART</button>
</div> <!-- row -->
<div class="results-text row">
<p id="results-text1"></p> <!-- DO NOT DELETE - ingame text added here -->
</div> <!-- NB1 row -->
<div class="results-text row">
<p id="results-text2"></p> <!-- DO NOT DELETE - ingame text added here -->
</div> <!-- NB2 row -->
<div class="results-text row">
<p id="results-text3"></p> <!-- DO NOT DELETE - ingame text added here -->
</div> <!-- NB2 row -->
</div> <!-- play-box -->
</section> <!-- left side -->
<!-- RIGHT SIDE DURING OPTIONS ONLY -->
<section class="right-side col-xs-6"> <!-- right-side-->
<div id="instructions-screen"> <!-- hide when game starts -->
<h3>Instructions</h3>
<p>Player one clicks a square to reveal part of a number between 0 and 9.</p>
<p>They can either guess the number or pass the turn to player 2.</p>
<p>Guess correctly to score the value of that number, plus a point for each remaining square uncovered. (For example, guessing the number 7 with 4 squares still covered would score 11 points.)</p>
<p>Guess incorrectly and the points are awarded to the opposing player.</p>
<p>The game continues until one of the players reaches the chosen target score.</p>
</div> <!-- instructions & start -->
<!-- RIGHT SIDE DURING GAME ONLY (size3x3)-->
<div id="game-screen3x3" class="game-screen" style="display: none"> <!-- hide when game ends -->
<div class="row">
<div id="c0" class="c0 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c1" class="c1 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c2" class="c2 game-cell col-xs-4">
</div>
</div> <!-- row -->
<div class="row">
<div id="c3" class="c3 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c4" class="c4 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c5" class="c5 game-cell col-xs-4">
</div>
</div> <!-- row -->
<div class="row">
<div id="c6" class="c6 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c7" class="c7 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c8" class="c8 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
</div> <!-- id="game-screen3x3" -->
<!-- RIGHT SIDE DURING GAME ONLY (size3x4)-->
<div id="game-screen3x4" class="game-screen" style="display: none"> <!-- hide when game ends -->
<div class="row">
<div id="c0" class="c0 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c1" class="c1 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c2" class="c2 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c3" class="c3 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c4" class="c4 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c5" class="c5 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c6" class="c6 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c7" class="c7 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c8" class="c8 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c9" class="c9 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c10" class="c10 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c11" class="c11 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
</div> <!-- id="game-screen3x4" -->
<!-- RIGHT SIDE DURING GAME ONLY (size3x5)-->
<div id="game-screen3x5" class="game-screen" style="display: none"> <!-- hide when game ends -->
<div class="row">
<div id="c0" class="c0 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c1" class="c1 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c2" class="c2 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c3" class="c3 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c4" class="c4 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c5" class="c5 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c6" class="c6 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c7" class="c7 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c8" class="c8 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c9" class="c9 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c10" class="c10 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c11" class="c11 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
<div class="row">
<div id="c12" class="c12 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c13" class="c13 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
<div id="c14" class="c14 game-cell col-xs-4">
</div> <!-- col-xs-4 -->
</div> <!-- row -->
</div> <!-- id="game-screen3x5" -->
</section> <!-- right-side -->
</div> <!-- container fluid -->
</body>
</html>