-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-train.html
More file actions
320 lines (286 loc) · 14.7 KB
/
task-train.html
File metadata and controls
320 lines (286 loc) · 14.7 KB
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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/bootstrap-spinner.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-spinner.min.css">
<link rel="stylesheet" href="css/bootstrap-reboot.min.css">
<link rel="stylesheet" href="css/bootstrap-grid.min.css">
<link rel="stylesheet" href="css/fontawesome-all.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Modal containing computer assistant explanation -->
<div class="modal fade" id="computerAssistantModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Computer Assistant</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h3 style="text-align: center;">Computer Assistant</h3>
<p><br />During the game you may use the advice provided by a computer assistant. The computer assistant will
provide
you with the best course of action to take for yourself and the best course other players may take,
<em>according to
its own understanding</em>. The computer assistant suggestions are not necessarily the best possible
paths
for you or for the other players. The other players are necessarily pursuing the best path in terms of
maximizing the score, therefore if there exists a better solution, the other players will not perform the
path suggested by the computer assistant.</p>
<h3 style="text-align: center;">Example</h3>
<br />
<img src="img/instructions5.png" width="100%" class="center" />
<p>In this instance the computer assistant suggests for you to follow the path illustrated above. Following the
computer assistants’ advice would mean asking Player 1 for 3 white chips and Player 2 for 1 blue chip,
reaching the goal and having 5 chips remaining. Your final score would be:</p>
<ul>
<li>For reaching the goal : +150</li>
<li>For the remaining chips : 5*5 = 25</li>
<li>For the chip requests : 2*(-70) + 4*(-6) = -164</li>
<li>Overall : 150 + 25 – 164 = 11</li>
</ul>
<p>A better course of action under these circumstances would be to do <u>nothing</u>, and not reach the goal at
all. Your final score would be:</p>
<ul>
<li>For not reaching the goal : 0</li>
<li>For the remaining chips : 5*5 = 25</li>
<li>For the chip requests : 0</li>
<li>Overall : 0 + 25 + 0 = 25</li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Next</button>
</div>
</div>
</div>
</div>
<!-- Modal containing global explanation -->
<div class="modal fade" id="globalModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Explanation of Computer Assistant Suggestions</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>You will now read a short explanation of how the computer assistant comes up with possible exchange
suggestions.</p>
<p>The computer assistant compares all of the <em>shortest</em> paths and possible exchanges, between the
player and the goal. There are multiple shortest paths between the player and the goal and the computer
assistant considers all of them. It then chooses the path and possible exchanges that produce the maximum
scoring function while <em>always</em> reaching the target location.</p>
<p>It would take too long to calculate <em>all</em> of the possible paths from the players' initial position
to the goal so the computer assistant only considers <em>all</em> of the paths with the shortest distance
(there is more than one). The computer assistant also doesn't consider situations in which it might be best
to do nothing. This could lead to a wrong suggestion.</p>
<p>If a longer path exists in which there are no requests needed, and would therefore generate a higher score,
the computer assistant would not suggest it. Also if doing nothing is better than performing several
exchanges to reach the goal, the computer assistant would not suggest it.</p>
<p>The computer assistant calculates the path score as follows:
<ol>
<li>The player gets +150 points for reaching the goal.</li>
<li>The player gets +5 points for each extra chip.</li>
<li>It costs -70 points to request a chip from each player.</li>
<li>It costs -6 points for each chip requested.</li>
<li>The total score is the sum of all of these points.</li>
</ol>
</p>
<p>Consider the following game scenario :</p>
<img src="img/NoExplanation.png" width="300px" class="center" />
<p>The highlighted tiles below demonstrate the tiles the computer assistant will consider when attempting to
find a path from each player to the goal.</p>
<p>For the "ME" player the Computer Assistant will consider the following tiles :</p>
<img src="img/GlobalExplanationMe.png" width="300px" class="center" />
<p>For Player 1 the Computer Assistant will consider the following tiles :</p>
<img src="img/GlobalExplanationAgent1.png" width="300px" class="center" />
<p>For Player 2 the Computer Assistant will consider the following tiles :</p>
<img src="img/GlobalExplanationAgent2.png" width="300px" class="center" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Next</button>
</div>
</div>
</div>
</div>
<!-- Video for condition 0 - No Computer Assistant No Explanation -->
<div class="modal fade" id="videoModal0" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">User Interface Tutorial</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Please carefully watch the following instruction video describing the interface of the application
(contains audio).</p> <br />
<iframe width="740" height="340" src="https://www.youtube.com/embed/fgNk1-qjmOg" frameborder="0" allow=""
allowfullscreen></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Next</button>
</div>
</div>
</div>
</div>
<!-- Video for condition 1 - Computer Assistant No Explanation -->
<div class="modal fade" id="videoModal1" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">User Interface Tutorial</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Please carefully watch the following instruction video describing the interface of the application
(contains audio).</p> <br />
<iframe width="740" height="340" src="https://www.youtube.com/embed/p7mGixYD1t0" frameborder="0" allow=""
allowfullscreen></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Next</button>
</div>
</div>
</div>
</div>
<!-- Video for condition 2 - Computer Assistant with Explanation -->
<div class="modal fade" id="videoModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">User Interface Tutorial</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Please carefully watch the following instruction video describing the interface of the application
(contains audio).</p> <br />
<iframe width="740" height="340" src="https://www.youtube.com/embed/PQwEhTzr2z0" frameborder="0" allow=""
allowfullscreen></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Next</button>
</div>
</div>
</div>
</div>
<!-- Modal containing global explanation -->
<div class="modal fade" id="evalModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Game practice</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!--<p>You will now begin the practice session. You will be presented with eight small-scale scenarios which you
will have to answer correctly in order to
proceed. You have four minutes for each game. Your task is to achieve the highest score possible.</p>-->
<p>You will now begin the evaluation session. You will be presented with eight small-scale practice scenarios. Your task is to achieve the highest score possible.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Start</button>
</div>
</div>
</div>
</div>
<div>
<h3><span id="game">Practice game 1 out of 8. </span><span id="time">Time remaining for this game: 04:00.</span>
</h3>
</div>
<div id="grid" class="grid"></div>
<div id="gridbutton_wrapper">
<button class="btn btn-small btn-outline-primary" id="clear_path">Clear</button>
<button class="btn btn-small btn-outline-primary" id="restore_path">Restore Suggestions</button>
</div>
<div id="suggestion_wrapper"></div>
<div id="explanation_wrapper" style="display:none"></div>
<div id="global_explanation" style="display:none">
<p>The player gets +150 points for reaching the goal.<br />
The player gets +5 points for each extra chip.<br />
It costs -70 points to request a chip from each player.<br />
It costs -6 points for each chip requested.<br />
The total score is the sum of all of these points. </p>
</div>
<div id="local_explanation" style="display:none"></div>
<div id="wrapper_right">
<div id="initial_chips_wrapper">
<h3>Initial chip distribution</h3>
<div id="initial_chips"></div>
</div>
<hr />
<div id="gamestate_wrapper">
<h3>Path guidance</h3>
<div id="gamestate">
<table id="gamestate_table">
<tr>
<th class="td_player">Player</th>
<th class="td_success">Success</th>
<th class="td_nrplayersrequested">Number players requested*</th>
<th class="td_neededchips">Requested chips</th>
<th class="td_extrachips">Extra chips</th>
<th class="td_score">Score</th>
</tr>
</table>
* = Number of players which this player has requested chips from.
</div>
<div id="showpaths_wrapper"></div>
</div>
<hr />
<div id="trade_wrapper">
<h3 id="trade_header">My Chip Trade Request</h3>
<div id="trade"></div>
</div>
<div id="next">
<textarea id="next_text" cols="40" placeholder="Please explain your choice."></textarea>
<button id="next_btn" class="btn btn-success">Done</button>
</div>
</div>
<div class="clear"></div>
<script src="js/vendor/modernizr-3.6.0.min.js"></script>
<!-- TODO get jquery local -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>
window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')
</script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/grid.js"></script>
<script src="js/initial_grid.js"></script>
<script src="js/color_grid.js"></script>
<script src="js/color_trade.js"></script>
<script src="js/main_train.js"></script>
</body>
</html>