-
Notifications
You must be signed in to change notification settings - Fork 0
/
elus-dev.html
246 lines (236 loc) · 15.4 KB
/
elus-dev.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
240
241
242
243
244
245
246
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="ELUS - A logic puzzle game with hidden rules!">
<meta name="author" content="Adam Demjen">
<meta property="og:title" content="ELUS">
<meta property="og:type" content="website">
<meta property="og:description" content="A logic puzzle game with hidden rules">
<meta property="og:image" content="http://demjened.github.io/elus/elus.png">
<meta property="og:url" content="http://demjened.github.io/elus">
<title>ELUS</title>
<link rel="icon" href="favicon.ico" sizes="16x16" type="image/png">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/elus.css">
<link rel="stylesheet" href="css/font-awesome.css">
<script type="text/javascript" src="js/jquery-2.1.4.js"></script>
<script type="text/javascript" src="js/elus.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
<body>
<div class="container">
<div class="header jumbotron">
<div>
<h1>ELUS</h1>
</div>
<!-- header command buttons -->
<div class="menu-buttons">
<div id="button-new-game-grp" class="btn-group">
<button id="button-new-game" type="button" class="btn btn-lg btn-info">New game</button>
<button type="button" class="btn btn-lg btn-info dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Classic</a></li>
<li><a href="#">Random</a></li>
</ul>
</div>
<button id="button-cancel-game" class='btn btn-lg btn-warning'>Cancel game</button>
<button id="button-instructions" class='btn btn-lg btn-primary' data-toggle="modal" data-target="#instructions">Instructions</button>
<button id="button-about" class='btn btn-lg btn-primary' data-toggle="modal" data-target="#about">About</button>
<a id="button-github" class='btn btn-lg btn-primary' href="https://github.com/demjened/elus" target="_new">GitHub</a>
</div>
<span class="version"><!-- version --></span>
</div>
<div class="figures">
<!-- figures and choices will go here -->
</div>
<div class="statusbar">
<span class="statusbar-header fa fa-caret-right"></span>
<span class="statusbar-message">
<!-- statusbar messages will go here -->
</span>
</div>
<div class="statusbar-buttons">
<button id="button-next-level" class='btn btn-lg btn-success'>Next level</button>
<button id="button-finish-game" class='btn btn-lg btn-warning' pressed="true">Finish game</button>
</div>
<div id="instructions" class="instructions modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title">Instructions</h3>
</div>
<div class="modal-body">
<div id="instructions-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
<div class="carousel-inner" role="listbox">
<div class="item active">
<p>
The goal of <b>ELUS</b> is to correctly choose which <b>figure</b> comes next in sequence.<br>
</p>
<p>
<span class="fa figure-icon big yellow fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon small yellow fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon big yellow fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon big gray fa-question-circle"></span>
</p>
<p>
The first 3 figures are laid out for you.
</p>
<p>
<span class="correct"><b>Find the next 5 figures</b> that follow the sequence.</span>
</p>
<p>
<span class="incorrect">Avoid making <b>3 errors</b>.</span>
</p>
</div>
<div class="item">
<p>
Each figure has 3 <span class="attribute">attributes</span>:
</p>
<p>
<table>
<tr>
<td><b>SIZE</b></td>
<td>
<span class="attribute">Small</span>
<span class="fa figure-icon small gray fa-circle-o"></span>
</td>
<td>
or <span class="attribute">Big</span>
<span class="fa figure-icon big gray fa-circle-o"></span>
</td>
</tr>
<tr>
<td><b>COLOR</b></td>
<td>
<span class="attribute">Blue</span>
<span class="fa figure-icon big blue fa-circle-o"></span>
</td>
<td>
or <span class="attribute">Yellow</span>
<span class="fa figure-icon big yellow fa-circle-o"></span>
</td>
</tr>
<tr>
<td><b>SHAPE</b></td>
<td>
<span class="attribute">Circle</span>
<span class="fa figure-icon big gray fa-circle-o"></span>
</td>
<td>
or <span class="attribute">Lozenge</span>
<span class="fa figure-icon big gray fa-lozenge-o"></span>
</td>
</tr>
</table>
</p>
<p>
<i>(For example, this is a <b>Small Blue Lozenge</b>: <span class="fa figure-icon small blue fa-lozenge-o"></span>)</i>
</p>
</div>
<div class="item">
<p>
A hidden <span class="rule">rule</span> determines which figure comes next.
</p>
<p>
It is always based on an <span class="attribute">attribute</span> of the <b>last figure</b>.
</p>
<p align="center">
<span class="fa figure-icon big blue fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon big gray fa-circle-o"></span>
<span class="fa figure-icon big yellow fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon big gray fa-lozenge-o"></span>
</p>
<p>
(For example, the <span class="rule">rule</span> can be this: <i>If the last figure is <span class="attribute">Blue</span>, then choose <span class="attribute">Circle</span>, but if the last figure is <span class="attribute">Yellow</span>, choose <span class="attribute">Lozenge</span> instead</i>, regardless of their other <span class="attribute">attributes</span>.)
</p>
</div>
<div class="item">
<p>
In each round there are <b>3 possible figures</b>, but <b>only one is correct</b>, the others do not follow the <span class="rule">rule</span>.
</p>
<p align="center">
<span class="fa figure-icon big blue fa-circle-o"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon small yellow fa-lozenge-o"></span>
<span class="fa figure-icon small incorrect fa-close" style="margin-left: -4px; text-align: left"></span>
<span class="fa figure-icon small yellow fa-circle-o"></span>
<span class="fa figure-icon small correct fa-check" style="margin-left: -4px; text-align: left"></span>
<span class="fa figure-icon big blue fa-lozenge-o"></span>
<span class="fa figure-icon small incorrect fa-close" style="margin-left: -4px; text-align: left"></span>
</p>
<p>
<br>Choose the figure that you think follows the <span class="rule">rule</span>.
</p>
</div>
<div class="item">
<p>
Whether you chose a correct or incorrect figure, the <span class="rule">rule</span> will <b>apply to your selection</b> and the choices in the next round will be based on it.
</p>
<p align="center">
<span class="fa figure-icon small yellow fa-lozenge-o"></span>
<span class="fa figure-icon small incorrect fa-close" style="margin-left: -4px; text-align: left"></span>
<span class="fa figure-icon rule fa-caret-right"></span>
<span class="fa figure-icon big gray fa-question-circle"></span>
</p>
<p>
<br>It is OK to make some errors (choosing incorrect figures), especially on harder levels.
</p>
</div>
<div class="item">
<p>
In a <i>Classic</i> game there are <b>3 levels</b>, each with a more difficult rule than the previous one. In a <i>Random</i> game there is <b>only one level</b>, and the rule is randomly generated.<br>
<i>Hover over the <b>[ ? ] button</b> during the game to get some hints about the current rule.</i>
</p>
<p>
<b>Good luck and have fun playing ELUS!</b>
</p>
<p>
For more detailed instructions and tutorials visit the <a href="https://github.com/demjened/elus#elus" target="_new">ELUS GitHub page</a>.
</p>
</div>
</div>
<a class="left carousel-control collapse" href="#instructions-carousel" role="button" data-slide="prev">
<span class="fa fa-arrow-left"></span>
</a>
<a class="right carousel-control" href="#instructions-carousel" role="button" data-slide="next">
<span class="fa fa-arrow-right"></span>
</a>
</div>
</div>
</div>
</div>
</div>
<div id="about" class="about modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title">About</h3>
</div>
<div class="modal-body">
<p>ELUS by Adam Demjen (<a href="mailto:[email protected]">[email protected]</a>)</p>
<p><span style="font-size: 0.8em">ELUS is a neat logic game I saw in the video game Space Rangers 2 as a side mission. I liked its concept and decided to replicate it as a standalone game. I have not come up with the idea or the rules of the game.</span></p>
</div>
</div>
</div>
</div>
</div>
<!-- initialize game -->
<script>
ELUS.allFigures = ELUS.generateAllFigures();
ELUS.initialize();
</script>
</body>
</html>