-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
218 lines (184 loc) · 8.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<title>Mysterium Card Reader</title>
</head>
<body>
<!-- form input page -->
<div class="container">
<div class="jumbotron" id="input">
<h1>Mysterium Card Reader</h1>
<p class="lead">Selects <a href="https://boardgamegeek.com/boardgame/181304/mysterium">Mysterium</a>
cards so that you don't have to.</p>
<form id="game-form">
<div class="form-row">
<div class="form-group col-sm">
<label class="form-label h4" for="numPlayers">Number of players <small class="text-muted">(including the ghost)</small></label>
<div class="input-group btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input type="radio" name="numPlayers" id="num-players-2" value="2"> 2
</label>
<label class="btn btn-secondary">
<input type="radio" name="numPlayers" id="num-players-3" value="3"> 3
</label>
<label class="btn btn-secondary active">
<input type="radio" name="numPlayers" id="num-players-4" value="4" checked> 4
</label>
<label class="btn btn-secondary">
<input type="radio" name="numPlayers" id="num-players-5" value="5"> 5
</label>
<label class="btn btn-secondary">
<input type="radio" name="numPlayers" id="num-players-6" value="6"> 6
</label>
<label class="btn btn-secondary">
<input type="radio" name="numPlayers" id="num-players-7" value="7"> 7
</label>
</div>
</div>
<div class="form-group col-sm">
<label class="form-label h4" for="difficulty">Difficulty</label>
<div class="input-group btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input type="radio" name="difficulty" id="difficulty-easy" value="easy"> Easy
</label>
<label class="btn btn-secondary active">
<input type="radio" name="difficulty" id="difficulty-medium" value="medium" checked> Medium
</label>
<label class="btn btn-secondary">
<input type="radio" name="difficulty" id="difficulty-hard" value="hard"> Hard
</label>
</div>
</div>
</div>
<div class="form-group">
<h4>Expansions</h4>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="exp-hs" name="expHiddenSigns">
<label class="form-check-label" for="exp-hs">Hidden Signs</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="exp-sl" name="expSecretsAndLies">
<label class="form-check-label" for="exp-sl">Secrets & Lies</label>
</div>
</div>
<div class="form-group">
<h4>Third round</h4>
<div class="form-check form-check-inline">
<input id="round3-objects" class="form-check-input" type="radio" name="round3" value="objects" checked>
<label class="form-check-label" for="round3-objects">Object cards</label>
</div>
<div class="form-check form-check-inline">
<input id="round3-stories" class="form-check-input" type="radio" name="round3" value="stories" disabled>
<label class="form-check-label" for="round3-stories">Story cards (requires Secrets & Lies)</label>
</div>
</div>
<div class="form-group">
<h4>Promo cards</h4>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="promo-1" name="promo[]" value="1">
<label class="form-check-label" for="promo-1">P1 (character)</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="promo-2" name="promo[]" value="2">
<label class="form-check-label" for="promo-2">P2 (location)</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="promo-3" name="promo[]" value="3">
<label class="form-check-label" for="promo-3">P3 (object)</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="promo-4" name="promo[]" value="4">
<label class="form-check-label" for="promo-4">P4 (object)</label>
</div>
<div class="form-check form-check-inline">
<input type="checkbox" class="form-check-input" id="promo-5" name="promo[]" value="5" disabled>
<label class="form-check-label" for="promo-5">P5 (story)</label>
</div>
</div>
<div class="form-group text-center">
<button type="submit" class="btn btn-primary">Read my cards</button>
</div>
</form>
</div>
<!-- output page -->
<div class="jumbotron d-none" id="output">
<div class="row">
<div class="col-md">
<h4>Clairvoyancy tokens</h4>
<p class="lead conditional conditional-2p conditional-3p">None</p>
<p class="lead conditional conditional-4p conditional-5p">1 – 4 only</p>
<p class="lead conditional conditional-6p conditional-7p">All (1 – 6)</p>
</div>
<div class="col-md">
<h4>Crows</h4>
<p class="lead conditional conditional-easy">1 per turn</p>
<p class="lead conditional conditional-medium">3 per game</p>
<p class="lead conditional conditional-hard">1 per game</p>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-4">
<h4>Character cards</h4>
<p id="out-characters" class="lead"></p>
</div>
<div class="col-md-6 col-lg-4">
<h4>Location cards</h4>
<p id="out-locations" class="lead"></p>
</div>
<div class="col-md-6 col-lg-4 conditional conditional-objects">
<h4>Object cards</h4>
<p id="out-objects" class="lead"></p>
</div>
<div class="col-md-6 col-lg-4 conditional conditional-stories">
<h4>Story cards</h4>
<p id="out-stories" class="lead"></p>
</div>
</div>
<div class="conditional conditional-2p conditional-3p">
<h4 class="conditional conditional-2p">Additional rules (2 players)</h4>
<h4 class="conditional conditional-3p">Additional rules (3 players)</h4>
<ul>
<li>
The <strong>clairvoyancy track</strong>, the related markers, and the
<strong>clairvoyancy tokens</strong> are not used.
</li>
<li>Each player plays with two psychics.</li>
<li>
During the <em>shared vision</em>, the three <strong>vision cards</strong> are
placed face up.
</li>
<li class="conditional conditional-2p">
Randomly create two additional groups of cards (with a character, a location and
<span class="conditional conditional-objects">an object</span>
<span class="conditional conditional-stories">a story</span>
in each group) using psychic cards discarded during the game, bringing the total
number of groups to four. Then place the tokens numbered 1 to 4 by the four groups
thus formed.
</li>
<li class="conditional conditional-3p">
Psychics vote openly rather than in secret. The two players with the role of
psychics must agree which group to identify as the suspected culprit's group and
place their two <strong>intuition tokens</strong> on it.
</li>
</ul>
</div>
<div class="row">
<div class="col text-center">
<button id="reset" class="btn btn-danger">Reset</button>
</div>
</div>
</div>
<hr>
<p class="text-center"><small>A doodle by <a href="https://mikkel.ca/">Mikkel Paulson</a>. Source code on <a href="https://github.com/MikkelPaulson/mysterium-card-reader">GitHub</a>.</small></p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>