-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
178 lines (150 loc) · 5.79 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Quirky</title>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="jquery-ui.min.js" type="text/javascript" ></script>
<script src="jquery.cookie.js" type="text/javascript"></script>
<script src="game-client.js" type="text/javascript"></script>
<link href="layout.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans|Chango' rel='stylesheet' type='text/css'>
</head>
<!--
Copyright (C) 2012 Juan Lasheras (http://www.juanl.org).
This file is part of Quirky.
Quirky is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Quirky is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Quirky. If not, see <http://www.gnu.org/licenses/>.
-->
<!--
@author [email protected] (Juan Lasheras)
-->
<body>
<!-- Lobby -->
<div id="lobby">
<div class="logo">Quirky</div>
<button id="howtobttn" onclick="drawHowTo();">How to play</button>
<div id="lobby_chat"></div>
<div id="lobby_game_panel" class="panel">
<div id="no_games" style="display: none;">
<p>No games yet :(</p>
<p>Make one!</p>
</div>
<div id="add_game">
<input type="text" class="text" required maxlength="12"
title="Game Room name (max 12 characters.)" />
<button>New Game</button>
</div>
<hr/>
<div id="games"><table id="games_tbl"></table></div>
</div>
</div>
<!-- Add Guest -->
<div id="add_guest" style="display: none;">
<div class="logo">Quirky</div>
<div id="add_guest_form">
<p>is an open source clone of the
<a href="http://www.google.com/search?q=qwirkle+board+game">Qwirkle</a> board game.</p>
<p>What would you like to be called?</p>
<input type="text" class="text" required maxlength="12"
title="User name (max 12 characters.)"/>
<button>Ok</button>
</div>
</div>
<!-- Chat -->
<div id="chat_panel" style="display: none;">
<div id="chat_input" style="display: none;">
<input type="text" class="text" required maxlength="500"
title="Chat text (max 500 characters.)" />
<button>Chat</button>
</div>
<div id="chat_log" class="text"></div>
</div>
<!-- Game Room -->
<div id="game_room" style="display: none;">
<div id="sideboard" class="panel">
<button id="leave_game">⇦ Leave Room</button>
<p id="turn"></p>
<button id="end_turn">End my turn</button>
<p>My Pieces (out of <span id="game_pieces"></span>)</p>
<div id="pieces"></div>
<div id="errors"></div>
<hr />
<p>Score</p>
<dl id="players"></dl>
</div>
<div id="game_room_main">
<div id="board"></div>
</div>
</div>
<!-- Loading Game -->
<div id="loading_game" style="display: none;">
<p>Loading.</p>
</div>
<!-- How to play -->
<div id="howto" style="display:none;">
<a href="">⇦ Back to Lobby</a>
<h1>How to play Quirky</h1>
<p>Quirky is played with 2 to 6 players. The goal of Quirky is to form
lines (rows & columns) of blocks such that:</p>
<ul>
<li>The line shares either a common shape <em>or</em> color.</li>
<li>No block is duplicated within the line.</li>
</ul>
<h2>Scoring</h2>
<ul>
<li>1 point for each block placed.</li>
<li>When adding to an existing line 1 point is scored for each existing
block in that line.</li>
<li>6 bonus points is scored when a line is "completed". This means that
the line has 6 blocks of all the same color or shape.</li>
<li>Once all blocks have been played the player with the highest score
wins.</li>
</ul>
<h2>Turn Steps</h2>
<ul>
<li>Either: play then draw:
<ul>
<li>Add blocks to the board. Blocks can only be added to a single line
per turn, at either side.</li>
<li>Draw more blocks until you have 6.</li>
</ul>
</li>
<li><em>or</em>, trade:
<ul>
<li>Trade in any number of blocks. If you are unable to play any
blocks this turn, this is your only option.</li>
</ul>
</li>
</ul>
<a href="">⇦ Back to Lobby</a>
</div>
<footer>
Created by <a href="http://www.twitter.com/jlas_">@jlas_</a>.
Fork it on <a href="http://www.github.com/jlas/quirky">GitHub</a>.
</footer>
<!-- subtle patterns attribution -->
<div about="http://subtlepatterns.com/about/"
style="display:none;">
<span property="dct:title">Subtle Patterns</span>
(<a rel="cc:attributionURL" property="cc:attributionName"
href="http://subtlepatterns.com">Subtle Patterns</a>) /
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
CC BY-SA 3.0</a>
</div>
</body>
<!-- Fork me banner -->
<a id="forkme" href="https://github.com/jlas/quirky">
<img style="position: absolute; top: 0; right: 0; border: 0;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"
alt="Fork me on GitHub">
</a>
</html>