-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
145 lines (131 loc) · 5.93 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<title>Zolīte</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pnotify/3.2.1/pnotify.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pnotify/3.2.1/pnotify.brighttheme.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css" />
<link rel="stylesheet" href="example.css" />
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.5.0/bluebird.core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment-with-locales.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pnotify/3.2.1/pnotify.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pnotify/3.2.1/pnotify.animate.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.js"></script>
<script src="lib/GenericDataStructureUtilities.js"></script>
<script src="lib/Zole.js"></script>
<script src="lib/GameState.js"></script>
<script src="lib/GameInGameRun.js"></script>
<script src="lib/GameRun.js"></script>
<script src="lib/Dealer.js"></script>
<script src="lib/CardSet.js"></script>
<script src="lib/JsCard.js"></script>
<script src="lib/Players/Player.js"></script>
<script src="lib/Players/RandomMovesMaker.js"></script>
<script src="lib/Players/RandomMovesMakerCardSorter.js"></script>
<script src="lib/Players/UiPlayer.js"></script>
<script src="lib/PlayerOrder.js"></script>
<script src="lib/PulesManager.js"></script>
<script src="lib/UiAdapters/UiAdapter.js"></script>
<script src="lib/UiAdapters/UiAdapterCardsJs.js"></script>
</head>
<body>
<img class="preload" src="external/cards.js/img/cards.png"/>
<div class="game_box">
<div class="player_avatar player_1"><span class="name">Rob</span></div>
<div class="player_avatar player_2"><span class="name">Petar</span></div>
<div class="table_container">
<div id="card-table">
</div>
<div class="start_button_base">
<button type="button" class="btn btn-primary btn-lg">Start</button>
</div>
</div>
<div class="player_avatar player_0">
<span class="name">Katniss</span>
<select name="player_0_type">
<option value="UiPlayer">Human</option>
<option value="RandomMovesMakerCardSorter" selected="selected">Robot</option>
</select>
</div>
<table class="game_status hidden">
<thead>
<tr>
<th rowspan="2"><!-- Label column. --></th>
<th colspan="3">Game mode</th>
<th colspan="6">Points, tricks</th>
<th colspan="3">Result</th>
</tr>
<tr>
<th class="game_mode player_0"><span class="name"></span></th>
<th class="game_mode player_1"><span class="name"></span></th>
<th class="game_mode player_2"><span class="name"></span></th>
<th colspan="2" class="points player_0"><span class="name"></span></th>
<th colspan="2" class="points player_1"><span class="name"></span></th>
<th colspan="2" class="points player_2"><span class="name"></span></th>
<th class="chips player_0"><span class="name"></span></th>
<th class="chips player_1"><span class="name"></span></th>
<th class="chips player_2"><span class="name"></span></th>
</tr>
<tbody>
<tr class="template">
<td class="row_label"></td>
<td class="game_mode player_0"></td>
<td class="game_mode player_1"></td>
<td class="game_mode player_2"></td>
<td class="points player_0"></td>
<td class="tricks player_0"></td>
<td class="points player_1"></td>
<td class="tricks player_1"></td>
<td class="points player_2"></td>
<td class="tricks player_2"></td>
<td class="chips player_0"></td>
<td class="chips player_1"></td>
<td class="chips player_2"></td>
</tr>
</tbody>
</table>
<!--<div id="player_commands">-->
<!--<button id="buttonSortPlayerAHand">Sakārtot KO savas kārtis</button>-->
<!--</div>-->
</div>
<div class="project_info">
<p>
Random selection players playing 6 rounds of <a href="https://en.wikipedia.org/wiki/Zole"><i>zolīte</i> game</a>. Katniss sorts her cards by strength every time. We get to see Rob's cards, too. See the console for JSON result.
</p>
<p>
Choose "Human" for Katniss if you wish to play yourself.
</p>
<p>
The visual representation by <a href="https://github.com/einaregilsson/cards.js">Einar Egilsson's "cards.js" library</a>.
</p>
<p>
Only modern browsers expected.
<a href="https://github.com/JanisE/openZole"><img src="docs/GitHub-Mark-Light-32px.png" /></a>
</p>
</div>
<div id="game_mode_chooser" class="modal fade">
<div class="centering_container">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="btn-group btn-group-lg">
<button type="button" class="btn btn-primary" data-dismiss="modal" data-action="skip">Garām (Skip)</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" data-action="augšā">Augšā</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal" data-action="zole">Zole</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal" data-action="mazā zole">Mazā zole</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- load this at the bottom so the #card-table element exists -->
<script src="external/cards.js/cards.js"></script>
<script src="example_play.js" charset="utf-8"></script>
<script>$('#game_mode_chooser').modal({show: false, backdrop: 'static', keyboard: false})</script>
</body>
</html>