-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
executable file
·543 lines (484 loc) · 25 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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<!doctype html>
<html>
<head>
<title>Mahjong Solitaire by Keith Gabryelski</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Mahjong solitaire is a single player matching game that uses a set of mahjong tiles rather than cards written by Keith Gabryelski." />
<meta property="og:url" content="https://rawgit.com/keithgabryelski/backbone-mahjong/master/index.html" />
<meta property="og:type" content="Game" />
<meta property="og:title" content="Mahjong Solitaire" />
<meta property="og:description" content="Mahjong solitaire is a single player matching game that uses a set of mahjong tiles rather than cards written by Keith Gabryelski." />
<meta property="og:image" content="https://rawgit.com/keithgabryelski/backbone-mahjong/master/images/MahjongSolitaire.png" />
<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" type="text/css" href="css/styles.css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/flick/jquery-ui.css" />
<link href="css/jasny-bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-slider.css" rel="stylesheet">
<link href="css/tilesets/chinasage/style.css" rel="stylesheet">
<link href="css/tilesets/enc/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css">
</head>
<body>
<div id="content" class="container-fluid" style="height: 100%"></div>
<!-- Templates -->
<script type="text/template" id="tpl-splash">
<div id="splashscreen" class="jumbotron" style="height: 100%">
<div class="row">
<div class="col-sm-6">
<h1>Mahjong Solitaire</h1>
<h2>by <a href="https://github.com/keithgabryelski">keithgabryelski</a></h2>
<h3>version 1.1.20160301</h3>
</div>
<div id="splash_icon" class="col-sm-6">
<span id="splash_icon_bottom" class="splash_icon_bottom" style="font-size: 64px;"></span>
<span id="splash_icon_top" class="splash_icon_top" style="font-size: 64px;"></span>
</div>
</div>
</div>
</script>
<script type="text/template" id="tpl-instructions">
<h2>How To Play Mahjong!</h2>
<h3>The Game</h3>
<p>
Mahjong is a matching game using a set of 144 <i>Mahjong Tiles</i>
arranged in a special layout.
</p>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img class="img-responsive img-rounded" src="images/layouts/the-turtle-layout.png" alt="The Turtle Layout">
<div class="carousel-caption">
<h3>The Turtle Layout</h3>
</div>
</div>
<div class="item">
<img class="img-responsive img-rounded" src="images/layouts/the-castle-layout.png" "The Castle Layout">
<div class="carousel-caption">
<h3>The Castle Layout</h3>
</div>
</div>
<div class="item">
<img class="img-responsive img-rounded" src="images/layouts/harmony-layout.png" alt="Harmony Layout">
<div class="carousel-caption">
<h3>Harmony Layout</h3>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div> <!-- Carousel -->
<h3>The Objective</h3>
You win by removing all tiles from the board.
<h3>The Play</h3>
<p>
You can remove one pair of tiles at a time. The pair must <i>match</i> and must be <i>unblocked</i>.
</p>
<p>
Unblocked tiles are those tiles that are not covered and are not adjacent to another tile either on its
left or right.
</p>
<img class="img-responsive img-rounded" src="images/examples/matching-tiles-example.jpg">
<p>
In the above example, the highlighted tiles are all unblocked. The
arrow points between two tiles that match (and thus removalable).
</p>
<h3>The Tiles</h3>
<p>
There are two honor tile sets: <i>Dragons</i> and <i>Winds</i>,
three suited tile sets: <i>Character</i>, <i>Bamboo</i>, and
<i>Circle</i> and two other tile sets known as <i>Seasons</i> and
<i>Flowers</i>
Honor and suited tiles match when they are identical. All Season
Tiles match each tile in their as and all Flower Tiles match each
tile in their set.
</p>
<h4>Wind Honor Tiles</h4>
<p>
There are four sets of each of the wind tiles: <i>East Wind</i>, <i>South Wind</i>, <i>West Wind</i>, and <i>North Wind</i>.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_wind"><span class="tile_top">🀀</span></span>
<span class="tile tile_sample on_board highlighted category_wind"><span class="tile_top">🀁</span></span>
<span class="tile tile_sample on_board highlighted category_wind"><span class="tile_top">🀂</span></span>
<span class="tile tile_sample on_board highlighted category_wind"><span class="tile_top">🀃</span></span>
</p>
<h4>Dragon Honer Tiles</h4>
<p>
There are four sets of each of the dragon tiles: <i>Red Dragon</i>, <i>Green Dragon</i>, and <i>White Dragon</i>.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_dragon tile_red_dragon"><span class="tile_top">🀄</span></span>
<span class="tile tile_sample on_board highlighted category_dragon tile_green_dragon"><span class="tile_top">🀅</span></span>
<span class="tile tile_sample on_board highlighted category_dragon tile_white_dragon"><span class="tile_top">🀆</span></span>
</p>
<p>
There are three suited tiles: Characters, Bamboos, and Circles
</p>
<h4>Character Suit Tiles</h4>
<p>
There are four sets of the nine character suited tiles numbered 1 through 9.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀇</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀈</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀉</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀊</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀋</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀌</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀍</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀎</span></span>
<span class="tile tile_sample on_board highlighted category_character_suit"><span class="tile_top">🀏</span></span>
</p>
<h4>Bamboo Suit Tiles</h4>
<p>
There are four sets of the nine bamboo suited tiles numbered 1 through 9.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀐</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀑</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀒</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀓</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀔</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀕</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀖</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀗</span></span>
<span class="tile tile_sample on_board highlighted category_bamboo_suit"><span class="tile_top">🀘</span></span>
</p>
<h4>Circle Suit Tiles</h4>
<p>
There are four sets of the nine circle suited tiles numbered 1 through 9.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀙</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀚</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀛</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀜</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀝</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀞</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀟</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀠</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit"><span class="tile_top">🀡</span></span>
</p>
<h4>Flower Tiles</h4>
<p>
There is one set of flower tiles.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_circle_suit tile_plum_flower"><span class="tile_top">🀢</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_orchid_flower"><span class="tile_top">🀣</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_bamboo_flower"><span class="tile_top">🀤</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_chrysanthemum_flower"><span class="tile_top">🀥</span></span>
</p>
<h4>Season Tiles</h4>
<p>
There is one set of season tiles.
</p>
<p align="center">
<span class="tile tile_sample on_board highlighted category_circle_suit tile_spring_season"><span class="tile_top">🀦</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_summer_season"><span class="tile_top">🀧</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_autumn_season"><span class="tile_top">🀨</span></span>
<span class="tile tile_sample on_board highlighted category_circle_suit tile_winter_season"><span class="tile_top">🀩</span></span>
</p>
<button id="backButton" class="btn btn-primary">Back</button>
</script>
<script type="text/template" id="tpl-tile-set-gallery">
<h2>The mahjong tile sets</h2>
<p>
Here are some tiles
<form>
<select id="tile_renderer_selector" class="form-control">
<% app.tileRenderers.each(function(tile_renderer) { %>
<option value="<%= tile_renderer.get('ID') %>"<%= this.plug_id == tile_renderer.get('ID') ? " SELECTED" : "" %> ><%= tile_renderer.get('name') %></option>
<% }); %>
</select>
</form>
</p>
<p>
<% for (var i = 0; i < collection.length; ++i) { %>
<% var tile = collection[i]; %>
<% var tile_image = this.plug.get_tile_image(tile); %>
<%= tile_image.addClass("highlighted").css({float: "left"})[0].outerHTML %>
<% } %>
</p>
<p>
<br/>
<br/>
<button id="backButton" class="btn btn-primary">Back</button>
</p>
</script>
<script type="text/template" id="tpl-configuration">
<p class="lead">Welcome to Mahjong Solitaire!</p>
<p>For information on how to play, please see the <a href="#instructions">instructions</a>, you can also visit the <a href="#tile_set_gallery">Tile Set Gallery</a></p>
<form role="form">
<fieldset>
<legend>Board Layout</legend>
<div class="row form-group">
<div class="col-sm-2 pull-top">
<img id="layout_img" src="<%= app.boardLayouts.findWhere({ID: parseInt(board_layout_id)}).get('image_url') %>" height="96" width="128" style="min-width: 128px;max-width: 128px;min-height: 96px;max-height: 96px;">
</div>
<div class="col-sm-10 pull-top">
<select id="layout_selector" class="form-control">
<% app.boardLayouts.each(function(layout) { %>
<% var selected = (board_layout_id == layout.get('ID') ? " SELECTED" : ""); %>
<option value="<%= layout.get('ID') %>" <%= selected %> > <%= layout.get('name') %> </option>
<% }); %>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Dealing Style</legend>
<div class="form-group row">
<div id="dealing_style_description" class="col-sm-2 pull-top">
<%= app.dealingStyles.findWhere({ID: parseInt(dealing_style_id)}).get('description') %>
</div>
<div class="col-sm-10 pull-top">
<select id="dealing_style_selector" class="form-control">
<% app.dealingStyles.each(function(dealing_style) { %>
<option value="<%= dealing_style.get('ID') %>"<%= dealing_style_id == dealing_style.get('ID') ? " SELECTED" : "" %> ><%= dealing_style.get('name') %></option>
<% }); %>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Background</legend>
<div class="form-group row">
<div class="col-sm-2 pull-top">
<img id="background_img" src="<%= app.backgrounds.findWhere({ID: parseInt(background_id)}).get('image_url') %>" height="96" width="128" style="min-width: 128px;max-width: 128px;min-height: 96px;max-height: 96px;">
</div>
<div class="col-sm-10 pull-top">
<select id="background_selector" class="form-control">
<% app.backgrounds.each(function(background) { %>
<% var selected = (background_id == background.get('ID') ? " SELECTED" : ""); %>
<option value="<%= background.get('ID') %>"<%= selected %> ><%= background.get('name') %></option>
<% }); %>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Tiles</legend>
<div class="form-group row">
<div id="tile_renderer_description" class="col-sm-2 pull-top">
<%= app.tileRenderers.findWhere({ID: parseInt(tile_renderer_id)}).get('description') %>
</div>
<div class="col-sm-10 pull-top">
<select id="tile_renderer_selector" class="form-control">
<% app.tileRenderers.each(function(tile_renderer) { %>
<option value="<%= tile_renderer.get('ID') %>"<%= tile_renderer_id == tile_renderer.get('ID') ? " SELECTED" : "" %> ><%= tile_renderer.get('name') %></option>
<% }); %>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Volume</legend>
<div class="form-group row">
<div class="col-xs-12">
<input id="audio_volume_slider" data-slider-id="audioVolumeSlider" type="text" data-slider-min="0" data-slider-max="100" data-slider-step="5" data-slider-value="75"/>
</div>
</div>
</fieldset>
<div class="form-group row">
<div class="col-xs-12">
<button type="submit" class="btn btn-primary">Start Game</button>
</div>
</div>
</form>
</script>
<script type="text/template" id="tpl-board-history">
<table id="history_with_scrollbar">
<tr id="scroll">
<% _.each(collection, function(tile_pair, index, collection) { %>
<% tile_pair = collection.at(index); %>
<td><%= tile_pair.get('tile1').get('view').outerHTML %></td>
<td><%= tile_pair.get('tile2').get('view').outerHTML %></td>
<td> </td>
<% }, this); %>
</tr>
</table>
</script>
<script type="text/template" id="tpl-board-status">
<div class="panel panel-default">
<div class="panel-body">
<h3 class="panel-title"><%= status %></h3>
<div>Matches Available: <span id="matches_available"><%= tiles_having_matches.length %></span></div>
<div>Tiles Left: <span id="tiles_left"><%= tiles_on_board.length %></span></div>
<div>Timer: <span id="timer"><%= timer > (60 * 60) ? (new Date(timer * 1000)).toUTCString().match(/(\d\d:\d\d:\d\d)/)[0] : (new Date(timer * 1000)).toUTCString().match(/\d\d:(\d\d:\d\d)/)[1] %></span></div>
</div>
</div>
</script>
<script type="text/template" id="tpl-game-timer">
<%= timer > (60 * 60) ? (new Date(timer * 1000)).toUTCString().match(/(\d\d:\d\d:\d\d)/)[0] : (new Date(timer * 1000)).toUTCString().match(/\d\d:(\d\d:\d\d)/)[1] %>
</script>
<script type="text/template" id="tpl-game-status">
<%= status %>
</script>
<script type="text/template" id="tpl-game-details">
<div>Tiles Left: <%= tiles_on_board.length %></div>
<div>Matches Available: <%= tiles_having_matches.length %></div>
</script>
<script type="text/template" id="tpl-board-controls">
</script>
<script type="text/template" id="tpl-mahjong">
<div class="row" style="height: 100%;">
<div id="mahjongBoard" class="panel-body" style="position: relative; margin:0; padding: 0; height: 100%;"></div>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-inner">
<div class="row">
<div class="col-sm-4 nav navbar-brand"><%= board_layout_name %></div>
<div class="col-sm-4 navbar-brand">Mahjong Solitaire</div>
<div class="col-sm-4 pull-right nav navbar-brand" id="mahjongGameStatus"></div>
</div>
</div>
</nav>
<nav class="navbar navbar-inverse navbar-fixed-bottom" role="navigation">
<div class="navbar-inner">
<div class="row">
<div class="col-sm-12">
<button id="hintButton" class="btn btn-default navbar-btn hint">Hint</button>
<button id="undoButton" class="btn btn-default navbar-btn undo">Undo</button>
<button type="button" class="btn btn-default navbar-btn" data-toggle="offcanvas" data-target="#history_area">History</button>
<button id="mahjongGameTimer" class="btn navbar-btn btn-danger pull-right" data-toggle="modal" data-target="#pauseModal"></button>
</div>
</div>
</div>
</nav>
<div id="pauseModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Mahjong Solitaire Paused</h4>
</div>
<div class="modal-body">
<p class="lead">The Game is Paused.</p>
<p id="mahjongGameDetails"></p>
</div>
<div class="modal-footer">
<button id="quitButton" type="button" class="btn btn-default btn-danger" data-dismiss="modal">Quit</button>
<button id="pausePanelClose" class="btn btn-default" data-dismiss="modal">Continue</button>
</div>
</div>
</div>
</div>
<div id="history_area" class="panel panel-default panel-bottom offcanvas navbar-fixed-bottom">
<div class="panel-heading">
<h3 class="panel-title">History</h3>
</div>
<div id="mahjongBoardHistory" class="panel-body"></div>
</div>
</div>
</script>
<!-- Templates -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.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/mobile-detect/1.3.1/mobile-detect.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
<script src="js/vendor/jasny-bootstrap.min.js"></script>
<script src="js/vendor/underscore.js"></script>
<script src="js/vendor/backbone.js"></script>
<script src="js/vendor/jquery.cookie.js"></script>
<script src="js/vendor/backbone-cookies.js"></script>
<script src="js/vendor/bootstrap-slider.js"></script>
<script src="js/support/array.js"></script>
<script src="js/support/math.js"></script>
<script src="js/App.js"></script>
<script src="js/models/Type.js"></script>
<script src="js/models/BoardLayout.js"></script>
<script src="js/models/Background.js"></script>
<script src="js/models/Configuration.js"></script>
<script src="js/models/Deck.js"></script>
<script src="js/models/TileMatchingStyle.js"></script>
<script src="js/models/TileCategory.js"></script>
<script src="js/models/TileCategoryGroup.js"></script>
<script src="js/models/Tile.js"></script>
<script src="js/models/Position.js"></script>
<script src="js/models/PositionedTile.js"></script>
<script src="js/models/TilePair.js"></script>
<script src="js/models/TileSet.js"></script>
<script src="js/models/TileRenderer.js"></script>
<script src="js/models/AudioBoard.js"></script>
<script src="js/models/DealingStyle.js"></script>
<script src="js/collections/Types.js"></script>
<script src="js/collections/BoardLayouts.js"></script>
<script src="js/collections/Backgrounds.js"></script>
<script src="js/collections/TileMatchingStyles.js"></script>
<script src="js/collections/TileCategories.js"></script>
<script src="js/collections/TileCategoryGroups.js"></script>
<script src="js/collections/Tiles.js"></script>
<script src="js/collections/Decks.js"></script>
<script src="js/collections/TilePairs.js"></script>
<script src="js/collections/Positions.js"></script>
<script src="js/collections/PositionedTiles.js"></script>
<script src="js/collections/TileRenderers.js"></script>
<script src="js/collections/TileSets.js"></script>
<script src="js/collections/DealingStyles.js"></script>
<script src="js/models/BoardStatus.js"></script>
<script src="js/data/BoardLayouts.js"></script>
<script src="js/data/Backgrounds.js"></script>
<script src="js/data/TileMatchingStyles.js"></script>
<script src="js/data/TileCategoryGroups.js"></script>
<script src="js/data/TileCategories.js"></script>
<script src="js/data/Tiles.js"></script>
<script src="js/data/Decks.js"></script>
<script src="js/models/Board.js"></script>
<script src="js/data/AudioBoard.js"></script>
<script src="js/logical/HitMaster.js"></script>
<script src="js/logical/Dealer.js"></script>
<script src="js/logical/TileManager.js"></script>
<script src="js/logical/TileOracle.js"></script>
<script src="js/logical/BoardManager.js"></script>
<script src="js/logical/tile_plugs/UnicodeTilePlug.js"></script>
<script src="js/logical/tile_plugs/UnicodeWithColoredBackTilePlug.js"></script>
<script src="js/logical/tile_plugs/CssSpriteTilePlug.js"></script>
<script src="js/logical/tile_plugs/EncCssSpriteTilePlug.js"></script>
<script src="js/logical/tile_plugs/ImageTilePlug.js"></script>
<script src="js/logical/TileAdapter.js"></script>
<script src="js/logical/TileManager.js"></script>
<script src="js/logical/MahjongGame.js"></script>
<script src="js/logical/Dealer.js"></script>
<script src="js/logical/dealers/BlindForwardDealer.js"></script>
<script src="js/logical/dealers/RandomDealer.js"></script>
<script src="js/logical/dealers/ReverseDealer.js"></script>
<script src="js/logical/dealers/RandomButCheckedDealer.js"></script>
<script src="js/views/splash.js"></script>
<script src="js/views/instructions.js"></script>
<script src="js/views/tile_set_gallery.js"></script>
<script src="js/views/configuration.js"></script>
<script src="js/views/board_status.js"></script>
<script src="js/views/board_controls.js"></script>
<script src="js/views/board_history.js"></script>
<script src="js/views/game_timer.js"></script>
<script src="js/views/game_status.js"></script>
<script src="js/views/game_details.js"></script>
<script src="js/views/mahjong.js"></script>
<script src="js/data/TileRenderers.js"></script>
<script src="js/data/DealingStyles.js"></script>
<script src="js/logical/examiner/Node.js"></script>
<script src="js/logical/examiner/Move.js"></script>
<script src="js/logical/examiner/Moves.js"></script>
<script src="js/logical/examiner/Examiner.js"></script>
<script>
window.onload = function() {
app.init();
}
</script>
</body>
</html>