akaaafk commited on
Commit
72f453d
·
verified ·
1 Parent(s): 9bceb2a

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1602221_bonafide.pt +3 -0
  2. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1602348_bonafide.pt +3 -0
  3. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1603570_bonafide.pt +3 -0
  4. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1604514_bonafide.pt +3 -0
  5. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1758215_bonafide.pt +3 -0
  6. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1759688_bonafide.pt +3 -0
  7. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1760119_bonafide.pt +3 -0
  8. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1760255_bonafide.pt +3 -0
  9. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1761897_bonafide.pt +3 -0
  10. benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1765046_bonafide.pt +3 -0
  11. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_553_index.html/index.html +55 -0
  12. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/all-r.html +44 -0
  13. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/checkanswer.js +281 -0
  14. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/index.html +79 -0
  15. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/institvte.html +96 -0
  16. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/all-r.html +44 -0
  17. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/checkanswer.js +281 -0
  18. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/code.hex +138 -0
  19. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/gnireenigne.html +71 -0
  20. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/index.html +57 -0
  21. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/mirror-outline.pdf +0 -0
  22. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/schem.pdf +0 -0
  23. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/all-r.html +44 -0
  24. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/break-room.html +59 -0
  25. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/checkanswer.js +281 -0
  26. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/index.html +142 -0
  27. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/all-r.html +44 -0
  28. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/auditorium-2.html +50 -0
  29. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/auditorium.html +94 -0
  30. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/checkanswer.js +281 -0
  31. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/index.html +46 -0
  32. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/checkanswer.js +281 -0
  33. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/dialects.html +62 -0
  34. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/index.html +67 -0
  35. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/tp-a.html +76 -0
  36. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/checkanswer.js +281 -0
  37. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/eschatology.html +51 -0
  38. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/index.html +67 -0
  39. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/tp-b.html +55 -0
  40. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/checkanswer.js +281 -0
  41. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/index.html +67 -0
  42. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/migraine.html +72 -0
  43. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/tp-c.html +75 -0
  44. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/checkanswer.js +281 -0
  45. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/index.html +67 -0
  46. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/prestidigitation.html +30 -0
  47. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/tp-d.html +94 -0
  48. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-e.html/checkanswer.js +281 -0
  49. benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-e.html/football.html +74 -0
  50. benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Documentation~/images/SpriteTab_order.png +3 -0
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1602221_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bd11cb58dd6c9080a79cebbf697122836b664b9199329656482ccf18dc05d24
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1602348_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af5ad5a875f1ee9423fbb626ee4f41e8db7bdef6801aa875c94c9cd347434171
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1603570_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6164e9f58f86b35f71b3334e7d89a85744153c4a6eb646f3e64eb583f73c90e5
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1604514_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6daf8d954324003d5da016bcf9aca7141bd8eb96da430c5595f4375ead7b58bc
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1758215_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de6d75d456c660b9725ea02f9210b8295c5d7a5e368960dd4761c0f42d40a760
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1759688_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:688c6d500bae1cf16d136f41b7ba9b729482c4d338cbf281ccff705713c8e3ea
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1760119_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4c3c93008924a521b29d5643c30cbbdafb017e535bfe46b858aa7989f0fa94f
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1760255_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f0f4bdddcaee1b5aa6fd0adbd6d9e6654900e62865f4710c777a259720d5650
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1761897_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d809ffe32d1c56ffef6b81c3a15a174858b7f1d49485786f46a5d754f5ebed45
3
+ size 49378
benchmark/IOAI/IOAI-2025/GAITE-Contest/Synthetic_Speech_Detector/training_set/bonafide/LA_E_1765046_bonafide.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fc97add4189f69ebe3057134ef426a6646c87a5085ab30e30faa44bc4ed5f88
3
+ size 49378
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_553_index.html/index.html ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>Chemistry Lab</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#cccccc" text="#666666"><!--CUT--><div align=right><small><a href="../../../solutions/chemistry-lab.html">(Solution)</a></small></div><!--CUT--><FONT FACE="helvetica">
10
+ Room: 6.553
11
+ Exits: <a href = "../4_943/index.html">N</a>&nbsp;
12
+ <a href = "../3_671/index.html">SE</a>&nbsp;
13
+ <a href = "../6_305/index.html">W</a>&nbsp;
14
+ <a href = "../5_815/index.html">U</a>&nbsp;
15
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>(<a href="../../../solutions/all-r.html">Shortcuts</a>)</small><h1>6.553</h1>
16
+
17
+
18
+ <h2>Chemistry Lab</h2>
19
+
20
+ <p>
21
+
22
+ <em>Whatever they did at this facility, it must have been extremely high-tech, given the equipment in this lab--most of it still making low bubbling noises. Even stranger is the range of things they were apparently experimenting on, arrayed on a table. Just looking at this stuff, you shake your head and wonder: what's next?</em>
23
+
24
+ <p>
25
+
26
+ <blockquote>
27
+ Xena<br>
28
+ Jelly<br>
29
+ Delirium<br>
30
+ Florentine<br>
31
+ Prozac<br>
32
+ Vampire<br>
33
+ Bananas <br>
34
+ Blood<br>
35
+ Mustard<br>
36
+ Elephantine<br>
37
+ Gasoline<br>
38
+ Anodyne<br>
39
+ Hero<br>
40
+ Ranch<br>
41
+ Brass<br>
42
+ Immortality <br>
43
+ Memory<br>
44
+ Confusion<br>
45
+ Kingdom<br>
46
+ Hydrox<br>
47
+ Superman
48
+ </blockquote>
49
+
50
+ <p><hr><p>
51
+
52
+
53
+ </FONT>
54
+ </BODY><script src="/checkanswer.js" type="module"></script>
55
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/all-r.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>ACMECorp: Shortcuts to R puzzles</TITLE>
8
+ <!---<BASE HREF="">--->
9
+ </HEAD>
10
+ <BODY BGCOLOR="CCCCCC" TEXT="#666666"><FONT FACE="helvetica">
11
+ <h1>Shortcuts to R puzzles</h2>
12
+ <ul>
13
+ <li><a href="../teamGuest/R/0_000/index.html">0.000</a> Entryway</li>
14
+ <li><a href="../teamGuest/R/1_102/index.html">1.102</a> Corridor</li>
15
+ <li><a href="../teamGuest/R/1_248/index.html">1.248</a> Pavilion</li>
16
+ <li><a href="../teamGuest/R/1_534/index.html">1.534</a> Shop</li>
17
+ <li><a href="../teamGuest/R/1_655/index.html">1.655</a> Machine Room</li>
18
+ <li><a href="../teamGuest/R/1_853/index.html">1.853</a> Screening Room</li>
19
+ <li><a href="../teamGuest/R/2_195/index.html">2.195</a> Lounge</li>
20
+ <li><a href="../teamGuest/R/2_426/index.html">2.426</a> Barn</li>
21
+ <li><a href="../teamGuest/R/2_723/index.html">2.723</a> Tea Room</li>
22
+ <li><a href="../teamGuest/R/2_828/index.html">2.828</a> Studio</li>
23
+ <li><a href="../teamGuest/R/3_232/index.html">3.232</a> Breezeway</li>
24
+ <li><a href="../teamGuest/R/3_361/index.html">3.361</a> Print Room</li>
25
+ <li><a href="../teamGuest/R/3_671/index.html">3.671</a> Cockpit</li>
26
+ <li><a href="../teamGuest/R/3_805/index.html">3.805</a> Art Gallery</li>
27
+ <li><a href="../teamGuest/R/4_127/index.html">4.127</a> Garage</li>
28
+ <li><a href="../teamGuest/R/4_364/index.html">4.364</a> Ballroom</li>
29
+ <li><a href="../teamGuest/R/4_748/index.html">4.748</a> Geological Garden</li>
30
+ <li><a href="../teamGuest/R/4_943/index.html">4.943</a> Biological Gargen</li>
31
+ <li><a href="../teamGuest/R/5_092/index.html">5.092</a> Cubicle</li>
32
+ <li><a href="../teamGuest/R/5_519/index.html">5.519</a> The Hall of Chess</li>
33
+ <li><a href="../teamGuest/R/5_815/index.html">5.815</a> Attic</li>
34
+ <li><a href="../teamGuest/R/6_305/index.html">6.305</a> Chapel</li>
35
+ <li><a href="../teamGuest/R/6_553/index.html">6.553</a> Chemistry Lab</li>
36
+ <li><a href="../teamGuest/R/6_689/index.html">6.689</a> Classroom</li>
37
+ <li><a href="../teamGuest/R/7_175/index.html">7.175</a> Gnireenigne Lab</li>
38
+ <li><a href="../teamGuest/R/7_413/index.html">7.413</a> Break Room</li>
39
+ <li><a href="../teamGuest/R/7_702/index.html">7.702</a> Auditorium</li>
40
+ </ul>
41
+ <hr>
42
+ </FONT>
43
+ </BODY>
44
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/index.html ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>Institvte of Diversified Obscurity</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#cccccc" text="#666666"><!--CUT--><div align=right><small><a href="../../../solutions/institvte.html">(Solution)</a></small></div><!--CUT--><FONT FACE="helvetica">
10
+ Room: 6.689
11
+ Exits: <a href = "../4_364/index.html">N</a>&nbsp;
12
+ <a href = "../3_232/index.html">E</a>&nbsp;
13
+ <a href = "../0_000/index.html">S</a>&nbsp;
14
+ <a href = "../7_413/index.html">D</a>&nbsp;
15
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>(<a href="../../../solutions/all-r.html">Shortcuts</a>)</small><h1>6.689</h1>
16
+
17
+ <h2>Classroom</h2>
18
+
19
+ <em>This appears to have once been a teaching facility of some
20
+ sort, although the machines around the edges no longer seem
21
+ to be functioning. A pile of pamphlets on a nearby table
22
+ advertises a "recommended course of study for an all-around
23
+ education."</em>
24
+
25
+ <p>
26
+
27
+ </font>
28
+ <pre>
29
+ 18.386 Nonlinear Dynamics and Chaos
30
+ 9.414 Language and Thought
31
+ 21H.458 Anarchism
32
+ 14.292 Antitrust Seminar
33
+ 7.414 Applied Statistics
34
+
35
+ 17.437 Causes of War: Theory and Method
36
+ 22.631 Plasma Transport Theory
37
+ 21L.488 Romantic Poetry
38
+ 9.088 Human Memory and Learning
39
+ 11.251 Advanced Writing Seminar
40
+
41
+ 6.034 Artificial Intelligence
42
+ 14.134 Game Theory
43
+ 18.339 Wavelets and Filter Banks
44
+ 11.007 Resolving Public Disputes
45
+ 12.534 Dynamics of Complex Systems
46
+
47
+ 3.075 Polymer Physics
48
+ 21W.747 Rhetoric
49
+ 2.896 Principles of Axiomatic Design
50
+ 12.000 Solving Complex Problems
51
+ 5.571 Chemistry in Industry
52
+
53
+ 18.131 Functions of a Complex Variable
54
+ 4.206 Visualization
55
+ 6.784 Applied Superconductivity
56
+ 2.800 Tribology
57
+ 15.521 Taxes and Business Strategy
58
+
59
+ 16.331 Stochastic Estimation and Control
60
+ 1.158 Application of Technology
61
+ 1.211 Airline Schedule Planning
62
+ 2.165 Robotics
63
+ 16.893 System Architecture
64
+
65
+ 1.010 Uncertainty in Engineering
66
+ 24.973 More Advanced Syntax
67
+ HST.580 Complex Biological Control Systems
68
+ 24.231 Ethics
69
+ 17.425 International Strategy
70
+
71
+ 4.376 Dimensions of Time
72
+ 11.123 Big Plans
73
+ 24.125 Paradox and Infinity
74
+ 6.251 Multivariable Control Systems
75
+ 15.080 Decision Analysis
76
+ </pre>
77
+
78
+ </BODY><script src="/checkanswer.js" type="module"></script>
79
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_6_689_index.html/institvte.html ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Institvte of Diversified Obscurity</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>R Puzzle: Institvte of Diversified Obscurity</h2>
12
+ <h3>by Matt Sakai</h3>
13
+
14
+ <p>
15
+
16
+ Basically, this is a list of class numbers and class names.
17
+ The classes are all real classes at MIT and can be found in the
18
+ bulletin (print or on the web). The numbers for some of them are not correct,
19
+ though. For example, "18.386 Nonlinear Dynamics and Chaos" is
20
+ actually 18.385.
21
+
22
+ <p>
23
+
24
+ Take the difference between the incorrect and correct numbers--in
25
+ the above example, 1--and take that letter of the name of the
26
+ subject. (Subject numbers that are correct are used for spacing.)
27
+
28
+ <p>
29
+
30
+ <table border="1" cellspacing="4">
31
+ <tr align=center><td>Puzzle #<td>Real #<td>Name<td>Letter</tr>
32
+ <tr><td>18.386<td>18.385<td>Nonlinear Dynamics and Chaos<td align="center">n</tr>
33
+ <tr><td>9.414<td>9.402<td>Language and Thought<td align="center">t</tr>
34
+ <tr><td>21H.458<td>21H.452<td>Anarchism<td align="center">h</tr>
35
+ <tr><td>14.292<td>14.292<td>Antitrust Seminar<td>&nbsp;</tr>
36
+ <tr><td>7.414<td>7.410<td>Applied Statistics<td align="center">l</tr>
37
+ <tr><td>17.437<td>17.432<td>Causes of War: Theory and Method<td align="center">e</tr>
38
+ <tr><td>22.631<td>22.616<td>Plasma Transport Theory<td align="center">t</tr>
39
+ <tr><td>21L.488<td>21L.476<td>Romantic Poetry<td align="center">t</tr>
40
+ <tr><td>9.088<td>9.081<td>Human Memory and Learning<td align="center">e</tr>
41
+ <tr><td>11.251<td>11.229<td>Advanced Writing Seminar<td align="center">r</tr>
42
+ <tr><td>6.034<td>6.034<td>Artificial Intelligence<td>&nbsp;</tr>
43
+ <tr><td>14.134<td>14.126<td>Game Theory<td align="center">o</tr>
44
+ <tr><td>18.339<td>18.327<td>Wavelets and Filter Banks<td align="center">f</tr>
45
+ <tr><td>11.007<td>11.007<td>Resolving Public Disputes<td>&nbsp;</tr>
46
+ <tr><td>12.534<td>12.517<td>Dynamics of Complex Systems<td align="center">x</tr>
47
+ <tr><td>3.075<td>3.063<td>Polymer Physics<td align="center">i</tr>
48
+ <tr><td>21W.747<td>21W.747<td>Rhetoric<td>&nbsp;</tr>
49
+ <tr><td>2.896<td>2.882<td>Principles of Axiomatic Design<td align="center">x</tr>
50
+ <tr><td>12.000<td>12.000<td>Solving Complex Problems<td>&nbsp;</tr>
51
+ <tr><td>5.571<td>5.561<td>Chemistry in Industry<td align="center">i</tr>
52
+ <tr><td>18.131<td>18.112<td>Functions of a Complex Variable<td align="center">x</tr>
53
+ <tr><td>4.206<td>4.206<td>Visualization<td>&nbsp;</tr>
54
+ <tr><td>6.784<td>6.763<td>Applied Superconductivity<td align="center">v</tr>
55
+ <tr><td>2.800<td>2.800<td>Tribology<td>&nbsp;</tr>
56
+ <tr><td>15.521<td>15.518<td>Taxes and Business Strategy<td align="center">x</tr>
57
+ <tr><td>16.331<td>16.322<td>Stochastic Estimation and Control<td align="center">i</tr>
58
+ <tr><td>1.158<td>1.149<td>Application of Technology<td align="center">i</tr>
59
+ <tr><td>1.211<td>1.206<td>Airline Schedule Planning<td align="center">i</tr>
60
+ <tr><td>2.165<td>2.165<td>Robotics<td>&nbsp;</tr>
61
+ <tr><td>16.893<td>16.882<td>System Architecture<td align="center">i</tr>
62
+ <tr><td>1.010<td>1.010<td>Uncertainty in Engineering<td>&nbsp;</tr>
63
+ <tr><td>24.973<td>24.955<td>More Advanced Syntax<td align="center">x</tr>
64
+ <tr><td>HST.580<td>HST.573<td>Complex Biological Control Systems<td align="center">x</tr>
65
+ <tr><td>24.231<td>24.231<td>Ethics<td>&nbsp;</tr>
66
+ <tr><td>17.425<td>17.416<td>International Strategy<td align="center">i</tr>
67
+ <tr><td>4.376<td>4.362<td>Dimensions of Time<td align="center">i</tr>
68
+ <tr><td>11.123<td>11.123<td>Big Plans<td>&nbsp;</tr>
69
+ <tr><td>24.125<td>24.118<td>Paradox and Infinity<td align="center">x</tr>
70
+ <tr><td>6.251<td>6.245<td>Multivariable Control Systems<td align="center">v</tr>
71
+ <tr><td>15.080<td>15.065<td>Decision Analysis<td align="center">i</tr>
72
+ </table>
73
+
74
+ <p>
75
+
76
+ This spells out "NTH LETTER OF XI X IX V XIII I XX II XVI". At MIT, roman numerals are only used for course names, e.g., XI = "Ocean Engineering". The courses given here are:
77
+
78
+ <table border="1" cellspacing="4">
79
+ <tr align=center><td>Course<td>Name<td>Letter</tr>
80
+ <tr><td>XI<td>Urban Studies and Planning<td>E</tr>
81
+ <tr><td>X<td>Chemical Engineering<td>N</tr>
82
+ <tr><td>IX<td>Brain and Cognitive Science<td>C</tr>
83
+ <tr><td>V<td>Chemistry<td>I</tr>
84
+ <tr><td>XIII<td>Ocean Engineering<td>R</tr>
85
+ <tr><td>I<td>Civil and Environmental Engineering<td>C</tr>
86
+ <tr><td>XX<td>Program in Applied Biological Sciences<td>L</tr>
87
+ <tr><td>II<td>Mechanical Engineering<td>E</tr>
88
+ <tr><td>XVI<td>Aeronautics and Astronautics<td>S</tr>
89
+ </table>
90
+
91
+ This gives the answer ENCIRCLES.
92
+
93
+ <P><SMALL>Broken tag fixed in 2010 by the archivists of Beginner's
94
+ Luck</SMALL></P>
95
+ </BODY>
96
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/all-r.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>ACMECorp: Shortcuts to R puzzles</TITLE>
8
+ <!---<BASE HREF="">--->
9
+ </HEAD>
10
+ <BODY BGCOLOR="CCCCCC" TEXT="#666666"><FONT FACE="helvetica">
11
+ <h1>Shortcuts to R puzzles</h2>
12
+ <ul>
13
+ <li><a href="../teamGuest/R/0_000/index.html">0.000</a> Entryway</li>
14
+ <li><a href="../teamGuest/R/1_102/index.html">1.102</a> Corridor</li>
15
+ <li><a href="../teamGuest/R/1_248/index.html">1.248</a> Pavilion</li>
16
+ <li><a href="../teamGuest/R/1_534/index.html">1.534</a> Shop</li>
17
+ <li><a href="../teamGuest/R/1_655/index.html">1.655</a> Machine Room</li>
18
+ <li><a href="../teamGuest/R/1_853/index.html">1.853</a> Screening Room</li>
19
+ <li><a href="../teamGuest/R/2_195/index.html">2.195</a> Lounge</li>
20
+ <li><a href="../teamGuest/R/2_426/index.html">2.426</a> Barn</li>
21
+ <li><a href="../teamGuest/R/2_723/index.html">2.723</a> Tea Room</li>
22
+ <li><a href="../teamGuest/R/2_828/index.html">2.828</a> Studio</li>
23
+ <li><a href="../teamGuest/R/3_232/index.html">3.232</a> Breezeway</li>
24
+ <li><a href="../teamGuest/R/3_361/index.html">3.361</a> Print Room</li>
25
+ <li><a href="../teamGuest/R/3_671/index.html">3.671</a> Cockpit</li>
26
+ <li><a href="../teamGuest/R/3_805/index.html">3.805</a> Art Gallery</li>
27
+ <li><a href="../teamGuest/R/4_127/index.html">4.127</a> Garage</li>
28
+ <li><a href="../teamGuest/R/4_364/index.html">4.364</a> Ballroom</li>
29
+ <li><a href="../teamGuest/R/4_748/index.html">4.748</a> Geological Garden</li>
30
+ <li><a href="../teamGuest/R/4_943/index.html">4.943</a> Biological Gargen</li>
31
+ <li><a href="../teamGuest/R/5_092/index.html">5.092</a> Cubicle</li>
32
+ <li><a href="../teamGuest/R/5_519/index.html">5.519</a> The Hall of Chess</li>
33
+ <li><a href="../teamGuest/R/5_815/index.html">5.815</a> Attic</li>
34
+ <li><a href="../teamGuest/R/6_305/index.html">6.305</a> Chapel</li>
35
+ <li><a href="../teamGuest/R/6_553/index.html">6.553</a> Chemistry Lab</li>
36
+ <li><a href="../teamGuest/R/6_689/index.html">6.689</a> Classroom</li>
37
+ <li><a href="../teamGuest/R/7_175/index.html">7.175</a> Gnireenigne Lab</li>
38
+ <li><a href="../teamGuest/R/7_413/index.html">7.413</a> Break Room</li>
39
+ <li><a href="../teamGuest/R/7_702/index.html">7.702</a> Auditorium</li>
40
+ </ul>
41
+ <hr>
42
+ </FONT>
43
+ </BODY>
44
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/code.hex ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :020000040000FA
2
+ :02000000802856
3
+ :02000800E229EB
4
+ :100100008B2800308A002108820707340534033425
5
+ :100110000234013400348301F901F8010C30A700E6
6
+ :10012000A8011830F300F20086018316F030860033
7
+ :100130002630870055308100831204309700053047
8
+ :100140009D0015309000A921831604308C000130E9
9
+ :100150008D0083128C018D018B018B160B178B1771
10
+ :100160007810781CB1287810781CB4287810871A79
11
+ :10017000BE28F90A871EBA287810B4287C08B10076
12
+ :100180007D08B2000310B20CB10C3208A400310893
13
+ :10019000A3000310B20CB10C0310B20CB10C310867
14
+ :1001A000FA070318FB0A3208FB073108A3070318F4
15
+ :1001B000A40A3208A4070310B20CB10C3108FA07E4
16
+ :1001C0000318FB0A3208FB070310B20CB10C31080C
17
+ :1001D000A3070318A40A3208A4070310B20CB10C39
18
+ :1001E0000310B20CB10C3108A3070318A40A32089B
19
+ :1001F000A4077A08A5007B08A6007D08B000A1012D
20
+ :100200002708A0006C21A200280AF700092903147E
21
+ :10021000A20DF70B07299030A9002508B100260888
22
+ :10022000B2002308A5070318A60A2408A607812000
23
+ :10023000013EF7003008B102031CB203F70B1A2984
24
+ :100240003008B1070318B20A3208E039031D2E291D
25
+ :100250000F09E039031D2E298F1B2C290F08E039C7
26
+ :10026000031D36293209E039031943290F083202E8
27
+ :1002700003193D2903182E2943290E0831020319B9
28
+ :10028000432903182E290610A21B06140314A20DDD
29
+ :10029000220F5129200803193508FF3EA0006C21C8
30
+ :1002A000A200A90B20290610A10A2119A11C0029CE
31
+ :1002B000B42801308A0021088207FA343C34AD3476
32
+ :1002C0002C34C934603420083307F700340803188D
33
+ :1002D000013E8A00770882006321F7005921F70761
34
+ :1002E000F8100318F814D821F818013E8A0077088E
35
+ :1002F000820056344E345334553420344634473417
36
+ :10030000483449343B3420344334573451344A342C
37
+ :100310005234533420344B3458344C3455345834DC
38
+ :10032000493420344C344B34203422344F34553447
39
+ :1003300047344C3422342034443448342034543448
40
+ :100340005934413445345A345A344E3420342034EC
41
+ :100350002034A701A8017930B3000130B400303057
42
+ :10036000B500080000000B11F20B0E2A73080319E8
43
+ :100370000E2AA803280FD529A70A35082702031932
44
+ :10038000A7017708F2000A08F500270864211A3E41
45
+ :10039000F70002306721F600A80A0314F60D760F65
46
+ :1003A000CC2975088A007208F7007308F2000E2A3B
47
+ :1003B00001308A00210882070134033403340434F5
48
+ :1003C00002340234FF00030EFE00831203130B19E4
49
+ :1003D000B329F90A0C19FD290D1015081B02FC00A0
50
+ :1003E0001608031C013E1C02FD00791CF9180E2A98
51
+ :1003F0001B08FA001C08FB000D2A0C111B08150233
52
+ :10040000FC001C08031C013E1602FD00791CF918B3
53
+ :100410000E2A1508FA001608FB0078147E0E8300D9
54
+ :10042000FF0E7F0E0900E734E734F734E734F73482
55
+ :100430007734773407344F34AF3453344F349734F0
56
+ :1004400013344F3447342734AB3423340734073460
57
+ :10045000073487346734473467346734C734F73434
58
+ :10046000E734F734673467340F3407348F34073494
59
+ :100470002F3467346734673467346734EF34EF34CC
60
+ :10048000F73467349734EF3497346734EF34FB3400
61
+ :10049000F7346734673467346734F7347734773444
62
+ :1004A0009734973497347734173467341734673474
63
+ :1004B0004F34073417344F344934493449349F3466
64
+ :1004C000093449344134093409341F344934493436
65
+ :1004D00049340934493409349F3441341F340934D0
66
+ :1004E00049341F3409344134F7348F344F341734CE
67
+ :1004F000B3343B34973497349734973417341734E4
68
+ :1005000007344F34AF34FB34EF3457342B344F348B
69
+ :1005100027344734733423340734073407344734DB
70
+ :100520009734673497349734A734173417348734A3
71
+ :1005300097349734CF3467344F34F7344F3497348B
72
+ :1005400097349734973497344F344F341734973463
73
+ :1005500097344F34973497344F34AB34173497343F
74
+ :1005600097349734973417349734973457349734F3
75
+ :10057000973497341734273427344734AF3407344B
76
+ :1005800027340F340134013401341F340134013471
77
+ :100590000134013401341F34013401340134013495
78
+ :1005A000013401341F3401341F34013401341F3449
79
+ :1005B0000134013487344F344F3427346B342334BF
80
+ :1005C000473467349734F7347734173497347734B3
81
+ :1005D000773407344F340F3453346F344734133483
82
+ :1005E0000F3427344734FB34FB34073407340734E3
83
+ :1005F0004734B73447344734473497347734773403
84
+ :100600004734673497340F3407342F3407348F342A
85
+ :100610008734D734F734273417344F344F34773492
86
+ :100620009734B7344F34B73497344F34AB347734CE
87
+ :1006300027342734F7341734773477349734373402
88
+ :10064000F7349734973417342734273447340F342A
89
+ :10065000073447340F340134493401349F340934AA
90
+ :1006600041340934413449349F340134093441342C
91
+ :100670004134493441349F3449349F340134413446
92
+ :100680001F344934493447342F344F34473403340A
93
+ :10069000D334973417341734D73447342734873456
94
+ :1006A000F7348734973447349734E73497349734A2
95
+ :1006B000173497341734173407344F340F34533406
96
+ :1006C000CF342734AB340F342734473473342334D6
97
+ :1006D0006734F73407342734D73447342734873422
98
+ :1006E000F7348734973447349734E734CF3467345A
99
+ :1006F0004F34F7344F344734D734973447341734B2
100
+ :100700004F344F3417349734D7344F34D734973469
101
+ :100710004F34AB341734473447349734D734173415
102
+ :100720009734773437349734973477341734273401
103
+ :10073000473447340F34073407340F34013401345D
104
+ :1007400001341F34013401340134013401341F34C5
105
+ :100750000134013401340134013401341F340134D3
106
+ :100760001F34013401341F340134013427344F3431
107
+ :100770004F34273403344B34173497344734173409
108
+ :1007800097348734973497342734973487349734A1
109
+ :100790009734973497341734173407340F340F34A1
110
+ :1007A000FB34EF34A7344B340F3427344734AB34A5
111
+ :1007B00023344734073467342734973447341734A5
112
+ :1007C0009734873497349734273497348734CF3429
113
+ :1007D00047348F3407342F34073417349734973421
114
+ :1007E00097344F344F341734973497344F34973409
115
+ :1007F00097344F348B341734973497349734973475
116
+ :100800001734973417345734973497345734173490
117
+ :100810002734473447340F34073407340F3409344E
118
+ :10082000013401341F3449340934013401340134B2
119
+ :100830009F344934013449340934093449349F34EC
120
+ :1008400041341F34493401349F340934013417349E
121
+ :100850004F344F3427340334C3345734E7347734B8
122
+ :100860009734773477343734773497348734673430
123
+ :1008700077346734E734073467344734F734673400
124
+ :100880008734673467342734673487349734773450
125
+ :1008900067347734F734173407344F340F34533414
126
+ :1008A0004F349734B3340F3447342734033403348C
127
+ :1008B000273407346734173467344734F7346734E0
128
+ :1008C0008734673467342734673487340F342734E8
129
+ :1008D0000F3407340F344734E734973467346734C0
130
+ :1008E000EF34EF341734673497344F349734673428
131
+ :1008F0004F348B34F7346734673497346734F734C4
132
+ :10090000773417349734973467349734F73467342F
133
+ :10091000873467340F34F73407340F34013401342B
134
+ :1009200001341F34013401340134013401341F34E3
135
+ :100930000134013401340134013401341F340134F1
136
+ :100940001F34013401341F3401340134F7348F343F
137
+ :080950004F3417340334433423
138
+ :00000001FF
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/gnireenigne.html ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="AcmeCorp">
6
+ <META NAME="GENERATOR" CONTENT="Document Archivists">
7
+ <title>Gnireenigne Laboratory Solution</title>
8
+ </head>
9
+ <body bgcolor="#ffffff">
10
+ <h2>R Puzzle: Gnireenigne Laboratory</h2>
11
+ <h3>by C. Scott Ananian</h3>
12
+
13
+ <p>
14
+ This is an actual working device, similar to the one described
15
+ <a href="http://www.cag.lcs.mit.edu/~cananian/Projects/FabClass/3/">
16
+ here</a>. (The linked site was taken down and de-googled for the
17
+ duration of the hunt<!--; if the link isn't working for you, try
18
+ <a href="http://www.cag.lcs.mit.edu/~cananian/Projects/FabClass/3-acmeisvile/">
19
+ this</a>-->.)
20
+ <p>
21
+ It is a simple one-input one-output
22
+ <a href="http://dictionary.reference.com/search?q=embedded+system&r=67">embedded system</a>.
23
+ A rotating mirror and switched laser draw text on any nearby surface.
24
+ You were given a schematic for the system, directions for making an
25
+ origami model of the mirror assembly (which should help you understand
26
+ how vertical displacements of the laser beam work), and the software
27
+ running on the processor. I also provided links to the processor
28
+ manual, a description of the file format the software is provided in,
29
+ and a link to a google page on "PIC disassemblers" which should help
30
+ you turn the file provided into a more-or-less readable version of the
31
+ code, albeit without comments or descriptive register names.
32
+
33
+ <p>The challenge is to reverse-engineer the given system to determine
34
+ what is does and how it does it. This is hinted by the name of
35
+ the puzzle, which is "engineering" backwards, or
36
+ "reverse-engineering", and also by the phrase "reverse that" in the
37
+ flavortext.
38
+
39
+ <p>The code is provided as a binary image; the
40
+ <a href="gnireenigne-code.asm">commented assembly source</a>
41
+ is available if you'd like to compare your solution.
42
+
43
+ <p>The code given to you displays the massage "VNSU FGHI CWQJSR KXLUXI
44
+ LK OUGL DH TYAEZZN" using this font:<br>
45
+ <img src="gnireenigne-answer-font.png"><br>
46
+ The line on top is the font; the line on the bottom displays a
47
+ 'normal' ASCII encoding for comparison, since the shapes of the
48
+ upper- and lower-case letters have been modified.
49
+
50
+ <p>If you turned the machine on, you'd get the message <b>KEEP FONT;
51
+ CHANGE OUTPUT TO "SPOT" IN BRAILLE</b>, since the upper case letters
52
+ in the font implement a substitution cipher. As you closely examine the
53
+ font file, you should notice that the lowercase alphabetic characters
54
+ map to a variety of patterns that could be used to construct
55
+ <a href="http://en.wikipedia.org/wiki/Braille#Letters_and_numbers">braille
56
+ characters</a>. The word "SPOT" in braille is:<br>
57
+ <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Braille_S.svg/200px-Braille_S.svg.png" alt="&#10254;"
58
+ >&nbsp;<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/28/Braille_P.svg/200px-Braille_P.svg.png" alt="&#10255;"
59
+ >&nbsp;<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Braille_O.svg/200px-Braille_O.svg.png" alt="&#10261;"
60
+ >&nbsp;<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Braille_T.svg/200px-Braille_T.svg.png" alt="&#10270;">
61
+
62
+ <p>
63
+ The 'k' in the font generates the three dot column corresponding to
64
+ the left half of S and T; the 'a' generates the right half of S and P;
65
+ the 'r' generates the left half of P,
66
+ the 'o' generates the entire braille character O, and the 'e'
67
+ generates the right half of T. So if you replaces the message in the
68
+ device with "karaoke" it would display the braille for SPOT. Thus
69
+ <b>KARAOKE</b> is the answer to the puzzle.
70
+
71
+ </html>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/index.html ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <title>Gnireenigne Lab</title>
8
+ </head>
9
+ <body bgcolor="#cccccc" text="#666666"><!--CUT--><div align=right><small><a href="../../../solutions/gnireenigne.html">(Solution)</a></small></div><!--CUT--><FONT FACE="helvetica">
10
+ Room: 7.175
11
+ Exits: <a href = "../3_805/index.html">E</a>&nbsp;
12
+ <a href = "../1_655/index.html">SE</a>&nbsp;
13
+ <a href = "../4_364/index.html">U</a>&nbsp;
14
+ <a href = "../2_195/index.html">D</a>&nbsp;
15
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>(<a href="../../../solutions/all-r.html">Shortcuts</a>)</small><h1>7.175</h1>
16
+
17
+
18
+ <h2>Gnireenigne Lab</h2>
19
+
20
+ <p>
21
+
22
+ <em>This place looks like an electrical engineer's nightmare--wait, reverse that, fondest dream. Soldering irons, oscilloscopes, and miscellaneous electronic parts cover every available space--with the exception of one small clean spot in the center of the room. The AIs probably swiped some device a human was working on. But you know that the resistance these days is too clever to design anything that would yield its secrets to an AI with a toggle of the on-switch. Clearly deeper understanding is needed.</em>
23
+
24
+ <ol>
25
+ <li>A disk on the bench contains <a href="gnireenigne/code.hex">this file of hex code</a>.
26
+
27
+ <li>A scrap of paper lying nearby appears to be a hard copy of <a
28
+ href="http://www.google.com/search?q=PIC+disassembler">this Google
29
+ search</a>. The first entry is circled, with "find RB?" scribbled
30
+ nearby. You may, however, have better ideas.
31
+
32
+ <li>
33
+ <a
34
+ href="http://www.microchip.com/download/lit/pline/picmicro/families/16f87x/30292c.pdf">This
35
+ manual for the PIC16F876</a> was lying on the bench. It's likely to be useful.
36
+
37
+ <li>
38
+ This appears to be a schematic.<br>
39
+ <a href="gnireenigne/schem.pdf"><img src="gnireenigne/schem.jpg"></a>
40
+
41
+ <li>
42
+ This sheet of paper is labelled, "rotating mirror assembly".
43
+ Presumably the original materials were reflective.
44
+ An attached note indicates the rotation was counter-clockwise around a
45
+ vertical axis, and that the lower portion of the assembly was used.<br>
46
+ <a href="gnireenigne/mirror-outline.pdf"><img src="gnireenigne/mirror-outline.png"></a>
47
+
48
+ <li>
49
+ There's a bookmark in Appendix A of <a href="http://www.microchip.com/download/tools/picmicro/code/mpasm/33014g.pdf">the MPASM User's Guide</a> (with a note saying "wow, the rest of this book was no help whatsover").
50
+
51
+ <li>An laboratory journal contains an incomplete entry, ending in a scrawl: "Finished! Fully working! And just in time."
52
+ </ol>
53
+
54
+
55
+ </FONT>
56
+ </body><script type="module" src="/checkanswer.js"></script>
57
+ </html>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/mirror-outline.pdf ADDED
Binary file (6.69 kB). View file
 
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_175_index.html/schem.pdf ADDED
Binary file (85.5 kB). View file
 
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/all-r.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>ACMECorp: Shortcuts to R puzzles</TITLE>
8
+ <!---<BASE HREF="">--->
9
+ </HEAD>
10
+ <BODY BGCOLOR="CCCCCC" TEXT="#666666"><FONT FACE="helvetica">
11
+ <h1>Shortcuts to R puzzles</h2>
12
+ <ul>
13
+ <li><a href="../teamGuest/R/0_000/index.html">0.000</a> Entryway</li>
14
+ <li><a href="../teamGuest/R/1_102/index.html">1.102</a> Corridor</li>
15
+ <li><a href="../teamGuest/R/1_248/index.html">1.248</a> Pavilion</li>
16
+ <li><a href="../teamGuest/R/1_534/index.html">1.534</a> Shop</li>
17
+ <li><a href="../teamGuest/R/1_655/index.html">1.655</a> Machine Room</li>
18
+ <li><a href="../teamGuest/R/1_853/index.html">1.853</a> Screening Room</li>
19
+ <li><a href="../teamGuest/R/2_195/index.html">2.195</a> Lounge</li>
20
+ <li><a href="../teamGuest/R/2_426/index.html">2.426</a> Barn</li>
21
+ <li><a href="../teamGuest/R/2_723/index.html">2.723</a> Tea Room</li>
22
+ <li><a href="../teamGuest/R/2_828/index.html">2.828</a> Studio</li>
23
+ <li><a href="../teamGuest/R/3_232/index.html">3.232</a> Breezeway</li>
24
+ <li><a href="../teamGuest/R/3_361/index.html">3.361</a> Print Room</li>
25
+ <li><a href="../teamGuest/R/3_671/index.html">3.671</a> Cockpit</li>
26
+ <li><a href="../teamGuest/R/3_805/index.html">3.805</a> Art Gallery</li>
27
+ <li><a href="../teamGuest/R/4_127/index.html">4.127</a> Garage</li>
28
+ <li><a href="../teamGuest/R/4_364/index.html">4.364</a> Ballroom</li>
29
+ <li><a href="../teamGuest/R/4_748/index.html">4.748</a> Geological Garden</li>
30
+ <li><a href="../teamGuest/R/4_943/index.html">4.943</a> Biological Gargen</li>
31
+ <li><a href="../teamGuest/R/5_092/index.html">5.092</a> Cubicle</li>
32
+ <li><a href="../teamGuest/R/5_519/index.html">5.519</a> The Hall of Chess</li>
33
+ <li><a href="../teamGuest/R/5_815/index.html">5.815</a> Attic</li>
34
+ <li><a href="../teamGuest/R/6_305/index.html">6.305</a> Chapel</li>
35
+ <li><a href="../teamGuest/R/6_553/index.html">6.553</a> Chemistry Lab</li>
36
+ <li><a href="../teamGuest/R/6_689/index.html">6.689</a> Classroom</li>
37
+ <li><a href="../teamGuest/R/7_175/index.html">7.175</a> Gnireenigne Lab</li>
38
+ <li><a href="../teamGuest/R/7_413/index.html">7.413</a> Break Room</li>
39
+ <li><a href="../teamGuest/R/7_702/index.html">7.702</a> Auditorium</li>
40
+ </ul>
41
+ <hr>
42
+ </FONT>
43
+ </BODY>
44
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/break-room.html ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Break Room</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>R Puzzle: Break Room</h2>
12
+ <h3>by Andy Lynn</h3>
13
+
14
+ <p>
15
+
16
+ These are a set of clues, each one ending with a number, that refer to
17
+ unique events in the show "Friends" (clued by "clique of beautiful
18
+ people," "hogging the break room couches," and "the six of them").
19
+ Identify the episode each one occurred in and write down the episode
20
+ title. (There are apocryphal sources that disagree on some of the
21
+ episode title wordings, but the official sources - NBC and Warner
22
+ Brothers, which is the producer - agree.) Put the titles in order by air
23
+ date or production number, they're the same order, and use the numbers
24
+ as indices to letters in the titles, like this:
25
+
26
+ <p>
27
+
28
+ <table border="1">
29
+ <tr><th>Description<th>Explanation<th>Ep #<th>Title<th>#<th>Letter</tr>
30
+ <tr><td>&quot;Mine was when I lost my ring in the lasagna.&quot;<td>Rachel loses her engagement ring in Monica's lasagna.<td>Episode 102<td>&quot;The One With The Sonogram At The End&quot;<td>20<td>A</tr>
31
+ <tr><td>&quot;What's your most embarrassing moment? Mine must have been the time I met that woman, and we were stuck, and I spat out my gum. I'm sure that really impressed her.&quot;<td>Chandler is stuck in an ATM vestibule with supermodel Jill Goodacre, and while trying to look cool, spits out his gum.<td>Episode 107<td>&quot;The One With The Blackout&quot;<td>17<td>C</tr>
32
+ <tr><td>&quot;So how was the flight to China? Oh, she loved your present by the way.&quot;<td>Ross has to go to China for work. He leaves Rachel a pendant as a birthday present. She loves it and Chandler lets it slip that Ross loves her. Awwwwww.<td>Episode 124<td>&quot;The One Where Rachel Finds Out&quot;<td>13<td>A</tr>
33
+ <tr><td>&quot;No, I don't want to. Your song doesn't have enough lines. Last time we ran out and I didn't get to sing any.&quot;<td>Sitting in the coffee shop they take turns singing lines of &quot;Smelly Cat&quot; while Phoebe plays guitar. The song ends and Ross doesn't get to sing.<td>Episode 217<td>&quot;The One Where Eddie Moves In&quot;<td>21<td>S</tr>
34
+ <tr><td>&quot;Yeah, ha ha, at least I didn't kiss my friend's mother while her husband was right there in the hallway!&quot;<td>Rachel's mother is in one apartment, her father is in the other, if they see each other they will fight, they both start leaving at the same time, so Joey grabs the mother in the hall and kisses her while the father walks by and the guys distract him.<td>Episode 222<td>&quot;The One With Two Parties&quot;<td>17<td>T</tr>
35
+ <tr><td>&quot;Mine must have been the time the guy upstairs was cheating on me and everybody could hear it.&quot;<td>The guy upstairs takes out the carpet and everybody can hear him. Phoebe goes upstairs to complain and they hook up. Later they &quot;hear&quot; him and another woman.<td>Episode 311<td>&quot;The One Where Chandler Can't Remember Which Sister&quot;<td>32<td>W</tr>
36
+ <tr><td>&quot;Chill out man, you know that stress will make you want to smoke again. Like that time when you got reminded of your parents' divorce.&quot;<td>Ross and Rachel breaking up reminds Chandler of his parents' divorce, and he starts smoking again like he did back then.<td>Episode 317<td>&quot;The One Without The Ski Trip&quot;<td>19<td>I</tr>
37
+ <tr><td>&quot;He's a real pain in the ass. Literally. He slaps my ass every time I see him!&quot;<td>Chandler gets a new boss. He slaps Chandler's ass. It's awkward.<td>Episode 324<td>&quot;The One With The Ultimate Fighting Champion&quot;<td>16<td>T</tr>
38
+ <tr><td>&quot;Oh! Oh! We could dig a really big hole and... Oh, wait, I am NOT going there again!&quot;<td>At the beach, Joey digs a really deep hole. Then there is a traumatic moment when Monica gets bitten by a jellyfish and the sting needs to be peed on.<td>Episode 401<td>&quot;The One With The Jellyfish&quot;<td>22<td>H</tr>
39
+ <tr><td>&quot;I wish I could have shown it to our old friend, the one who's named after that Tolkien character. Too bad he couldn't make it.&quot;<td>Ross and Chandler's old friend from college, whose nickname is Gandalf, is going to visit, but he doesn't.<td>Episode 409<td>&quot;The One Where They're Going To Party&quot;<td>19<td>O</tr>
40
+ <tr><td>&quot;Speaking of stupid, how crazy was that doctor? Have you ever met such an enthusiastic Happy Days fan?&quot;<td>Phoebe is giving birth, and the obstetritian is obsessed with The Fonz.<td>Episode 503<td>&quot;The One Hundredth&quot;<td>8<td>U</tr>
41
+ <tr><td>&quot;Ha ha ha, and remember, get rid of those leather pants! They got you into so much trouble the last time you wore them.&quot;<td>Ross wears leather pants on a date, they get sticky, he ends up half-naked and covered with baby powder.<td>Episode 511<td>&quot;The One With All The Resolutions&quot;<td>23<td>T</tr>
42
+ <tr><td>&quot;At least I never told a hot girl I like young boys!&quot;<td>Ross does a very bad job flirting with the pizza delivery woman. He tells her that her hair looks like a 8-year-old boy's, and then tries to cover his ass by saying that, no, he likes 8-year-old boys.<td>Episode 519<td>&quot;The One Where Ross Cant Flirt&quot;<td>19<td>T</tr>
43
+ <tr><td>&quot;Or that time when she 'let' you pack for her, and told you it was a present!&quot;<td>Chandler is moving in with Monica, so Rachel is moving out. She neglects to pack, assuming that Chandler will back out at the last minute. Then when she realizes that won't happen, she tells Monica that her going-away present is that she will let Monica do the packing, which makes Monica very happy.<td>Episode 606<td>&quot;The One On The Last Night&quot;<td>7<td>O</tr>
44
+ <tr><td>&quot;Okay, okay. You know, I really like that table you got at Pottery Barn.&quot;<td>Ross and Rachel buy identical tables from Pottery Barn.<td>Episode 611<td>&quot;The One With The Apothecary Table&quot;<td>15<td>P</tr>
45
+ <tr><td>&quot;I had a boss one time. But then I lost millions and they fired me. Good thing that didn't really happen.&quot;<td>In an alternate timeline, Phoebe is working as a stock broker. She loses millions of dollars and gets fired.<td>Episode 616<td>&quot;The One That Could Have Been&quot;<td>20<td>B</tr>
46
+ <tr><td>&quot;Not as much trouble as you'll be in if you ever spend thirty minutes in my bathroom reading the newspaper again.&quot;<td>Joey emerges from Monica and Chandler's bathroom with a newspaper. They comment that neither of them saw him go in, and they've been there for a half hour.<td>Episode 710<td>&quot;The One With The Holiday Armadillo&quot;<td>26<td>I</tr>
47
+ <tr><td>&quot;Yeah, and speaking of hallways, men our age do NOT ride scooters.&quot;<td>Rachel's having a birthday party. She gets a Razor scooter from her young boyfriend Tag. Joey and Tag ride it in the hallway.<td>Episode 714<td>&quot;The One Where They All Turn Thirty&quot;<td>18<td>L</tr>
48
+ <tr><td>&quot;Hey, remember that time you two went to that drag show in Vegas? How was that for a Kodak moment?&quot;<td>Chandler and Monica go to reunite with Chandler's dad, who is a singer at &quot;Viva Las Gaygas&quot;, and invite him/her to their wedding.<td>Episode 722<td>&quot;The One With Chandlers Dad&quot;<td>16<td>L</tr>
49
+ <tr><td>&quot;Yeah, like you'll ever actually do that! Listen, just remember that lucky story I taught you, okay? And practice it!&quot;<td>We learn how Rachel became pregnant. Ross has a tape where he is practicing telling a story about backpacking in Europe that Joey taught him, that is supposed to get women he tells it to to sleep with him. In the middle of Ross making the tape, Rachel comes in, and she uses the story on Ross.<td>Episode 804<td>&quot;The One With The Videotape&quot;<td>15<td>I</tr>
50
+ <tr><td>&quot;Oh, that's good. You know, I always thought about proposing to her in the planetarium.&quot;<td>Ross relates how he had imagined proposing to Rachel in the planetarium where they first... you know...<td>Episode 818<td>&quot;The One In Massapequa&quot;<td>8<td>N</tr>
51
+ <tr><td>&quot;Not as ironic as that time you made cookies, and you also made cookies, and yours were better than yours.&quot;<td>Joey and Monica walk in on a cooking class. They both make cookies. Monica's are very good, of course, she being a professional chef and all, but Joey's are better. <td>Episode 821<td>&quot;The One With The Cooking Class&quot;<td>20<td>G</tr>
52
+ </table>
53
+
54
+ <p>
55
+
56
+ Put the letters together to get: A CAST WITHOUT TOP BILLING. If you read up on Friends you will find that this refers to an "ensemble" cast, which is what the Friends people call it and that's what's important. The answer is ENSEMBLE.
57
+
58
+ </BODY>
59
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_413_index.html/index.html ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>Break Room</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#cccccc" text="#666666"><!--CUT--><div align=right><small><a href="../../../solutions/break-room.html">(Solution)</a></small></div><!--CUT--><FONT FACE="helvetica">
10
+ Room: 7.413
11
+ Exits: <a href = "../2_426/index.html">NE</a>&nbsp;
12
+ <a href = "../1_534/index.html">E</a>&nbsp;
13
+ <a href = "../0_000/index.html">S</a>&nbsp;
14
+ <a href = "../6_689/index.html">U</a>&nbsp;
15
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>(<a href="../../../solutions/all-r.html">Shortcuts</a>)</small><h1>7.413</h1>
16
+
17
+
18
+ <h2>Break Room</h2>
19
+
20
+ <p>
21
+
22
+ <em>Walking down the dark corridor, you come to the break room. Inside it is very well lit, and six good-looking but annoyingly cliquish holograms are hogging the couches. You're not sure how long the coffee's been sitting on the warming plate, but it doesn't seem any worse that any other corporate joe you've had, so you sip the bitter-but-caffeinated beverage and listen as the perky gen-Xers reminisce.</em>
23
+
24
+ <p>
25
+
26
+ &quot;Hey, remember that time you two went to that drag show in Vegas? How was that for a Kodak moment? (16)&quot;
27
+
28
+ <p>
29
+
30
+ &quot;Yeah, ha ha, at least I didn't kiss my friend's mother while her husband was right there in the hallway! (17)&quot;
31
+
32
+ <p>
33
+
34
+ &quot;Yeah, and speaking of hallways, men our age do NOT ride scooters. (18)&quot;
35
+
36
+ <p>
37
+
38
+ &quot;At least I never told a hot girl I like young boys! (19)&quot;
39
+
40
+ <p>
41
+
42
+ &quot;Chill out man, you know that stress will make you want to smoke again. Like that time when you got reminded of your parents' divorce. (19)&quot;
43
+
44
+ <p>
45
+
46
+ &quot;Okay, okay. You know, I really like that table you got at Pottery Barn. (15)&quot;
47
+
48
+ <p>
49
+
50
+ &quot;I wish I could have shown it to our old friend, the one who's named after that Tolkien character. Too bad he couldn't make it. (19)&quot;
51
+
52
+ <p>
53
+
54
+ &quot;So how's your new boss?&quot;
55
+
56
+ <p>
57
+
58
+ &quot;He's a real pain in the ass. Literally. He slaps my ass every time I see him! (16)&quot;
59
+
60
+ <p>
61
+
62
+ &quot;I had a boss one time. But then I lost millions and they fired me. Good thing that didn't really happen. (20)&quot;
63
+
64
+ <p>
65
+
66
+ &quot;So how was the flight to China? Oh, she loved your present by the way. (13)&quot;
67
+
68
+ <p>
69
+
70
+ &quot;Oh, that's good. You know, I always thought about proposing to her in the planetarium. (8)&quot;
71
+
72
+ <p>
73
+
74
+ &quot;Yeah, like you'll ever actually do that! Listen, just remember that lucky story I taught you, okay? And practice it! (15)&quot;
75
+
76
+ <p>
77
+
78
+ &quot;Ha ha ha, and remember, get rid of those leather pants! They got you into so much trouble the last time you wore them. (23)&quot;
79
+
80
+ <p>
81
+
82
+ &quot;Not as much trouble as you'll be in if you ever spend thirty minutes in my bathroom reading the newspaper again. (26)&quot;
83
+
84
+ <p>
85
+
86
+ &quot;Not as ironic as that time you made cookies, and you also made cookies, and yours were better than yours. (20)&quot;
87
+
88
+ <p>
89
+
90
+ &quot;Or that time when she 'let' you pack for her, and told you it was a present! (7)&quot;
91
+
92
+ <p>
93
+
94
+ &quot;Speaking of stupid, how crazy was that doctor? Have you ever met such an enthusiastic Happy Days fan? (8)&quot;
95
+
96
+ <p>
97
+
98
+ &quot;What should we do now?&quot;
99
+
100
+ <p>
101
+
102
+ &quot;Let's sing.&quot;
103
+
104
+ <p>
105
+
106
+ &quot;No, I don't want to. Your song doesn't have enough lines. Last time we ran out and I didn't get to sing any. (21)&quot;
107
+
108
+ <p>
109
+
110
+ &quot;Oh! Oh! We could dig a really big hole and... Oh, wait, I am NOT going there again! (22)&quot;
111
+
112
+ <p>
113
+
114
+ &quot;What's your most embarrassing moment? Mine must have been the time I met that woman, and we were stuck, and I spat out my gum. I'm sure that really impressed her. (17)&quot;
115
+
116
+ <p>
117
+
118
+ &quot;Mine must have been the time the guy upstairs was cheating on me and everybody could hear it. (32)&quot;
119
+
120
+ <p>
121
+
122
+ &quot;Mine was when I lost my ring in the lasagna. (20)&quot;
123
+
124
+ <p>
125
+
126
+ &quot;No it wasn't!&quot;
127
+
128
+ <p>
129
+
130
+ &quot;Yes it was!&quot;
131
+
132
+ <p>
133
+
134
+ &quot;No it wasn't! Your most embarrassing moment was that one time when--&quot;
135
+
136
+ <p>
137
+
138
+ &quot;Oh, look at the time! Break's over, time for my meeting.&quot;
139
+
140
+ </FONT>
141
+ </BODY><script src="/checkanswer.js" type="module"></script>
142
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/all-r.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>ACMECorp: Shortcuts to R puzzles</TITLE>
8
+ <!---<BASE HREF="">--->
9
+ </HEAD>
10
+ <BODY BGCOLOR="CCCCCC" TEXT="#666666"><FONT FACE="helvetica">
11
+ <h1>Shortcuts to R puzzles</h2>
12
+ <ul>
13
+ <li><a href="../teamGuest/R/0_000/index.html">0.000</a> Entryway</li>
14
+ <li><a href="../teamGuest/R/1_102/index.html">1.102</a> Corridor</li>
15
+ <li><a href="../teamGuest/R/1_248/index.html">1.248</a> Pavilion</li>
16
+ <li><a href="../teamGuest/R/1_534/index.html">1.534</a> Shop</li>
17
+ <li><a href="../teamGuest/R/1_655/index.html">1.655</a> Machine Room</li>
18
+ <li><a href="../teamGuest/R/1_853/index.html">1.853</a> Screening Room</li>
19
+ <li><a href="../teamGuest/R/2_195/index.html">2.195</a> Lounge</li>
20
+ <li><a href="../teamGuest/R/2_426/index.html">2.426</a> Barn</li>
21
+ <li><a href="../teamGuest/R/2_723/index.html">2.723</a> Tea Room</li>
22
+ <li><a href="../teamGuest/R/2_828/index.html">2.828</a> Studio</li>
23
+ <li><a href="../teamGuest/R/3_232/index.html">3.232</a> Breezeway</li>
24
+ <li><a href="../teamGuest/R/3_361/index.html">3.361</a> Print Room</li>
25
+ <li><a href="../teamGuest/R/3_671/index.html">3.671</a> Cockpit</li>
26
+ <li><a href="../teamGuest/R/3_805/index.html">3.805</a> Art Gallery</li>
27
+ <li><a href="../teamGuest/R/4_127/index.html">4.127</a> Garage</li>
28
+ <li><a href="../teamGuest/R/4_364/index.html">4.364</a> Ballroom</li>
29
+ <li><a href="../teamGuest/R/4_748/index.html">4.748</a> Geological Garden</li>
30
+ <li><a href="../teamGuest/R/4_943/index.html">4.943</a> Biological Gargen</li>
31
+ <li><a href="../teamGuest/R/5_092/index.html">5.092</a> Cubicle</li>
32
+ <li><a href="../teamGuest/R/5_519/index.html">5.519</a> The Hall of Chess</li>
33
+ <li><a href="../teamGuest/R/5_815/index.html">5.815</a> Attic</li>
34
+ <li><a href="../teamGuest/R/6_305/index.html">6.305</a> Chapel</li>
35
+ <li><a href="../teamGuest/R/6_553/index.html">6.553</a> Chemistry Lab</li>
36
+ <li><a href="../teamGuest/R/6_689/index.html">6.689</a> Classroom</li>
37
+ <li><a href="../teamGuest/R/7_175/index.html">7.175</a> Gnireenigne Lab</li>
38
+ <li><a href="../teamGuest/R/7_413/index.html">7.413</a> Break Room</li>
39
+ <li><a href="../teamGuest/R/7_702/index.html">7.702</a> Auditorium</li>
40
+ </ul>
41
+ <hr>
42
+ </FONT>
43
+ </BODY>
44
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/auditorium-2.html ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Auditorium</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#cccccc" text="#666666"><font face="helvetica">
10
+ <!--#include virtual="../../Training/exits.cgi?Room=7.702&U=0_000&D=1_102&SW=2_723&E=5_519" -->
11
+
12
+ <h2>Auditorium: the Display</h2>
13
+
14
+ <table>
15
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-1.gif"></tr>
16
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-2.gif"></tr>
17
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-3.gif"></tr>
18
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-4.gif"></tr>
19
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-5.gif"></tr>
20
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-6.gif"></tr>
21
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-7.gif"></tr>
22
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-8.gif"></tr>
23
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-9.gif"></tr>
24
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-10.gif"></tr>
25
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-11.gif"></tr>
26
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-12.gif"></tr>
27
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-13.gif"></tr>
28
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-14.gif"></tr>
29
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-15.gif"></tr>
30
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-16.gif"></tr>
31
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-17.gif"></tr>
32
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-18.gif"></tr>
33
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-19.gif"></tr>
34
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-20.gif"></tr>
35
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-21.gif"></tr>
36
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-22.gif"></tr>
37
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-23.gif"></tr>
38
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-24.gif"></tr>
39
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-25.gif"></tr>
40
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-26.gif"></tr>
41
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-27.gif"></tr>
42
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-28.gif"></tr>
43
+ <tr bgcolor="#000000"><td><img height="44" width="82" src="images/auditorium-29.gif"></tr>
44
+ </td></tr></table>
45
+
46
+
47
+
48
+ </FONT>
49
+ </BODY>
50
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/auditorium.html ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Auditorium</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>M Puzzle: Auditorium</h2>
12
+ <h3>by Marc Moskowitz</h3>
13
+
14
+ <p>
15
+
16
+ All of the displays are displaying a (correct)</cite>, track number and seconds count. They are also displaying a scrolling artist and album name, of which only a few pixels can be seen at a time. The pixels that are active for each display spell out a roman numeral. The artist and album, together with the</cite>, track, indicate a specific song. Every song is addressed to a specific non-fictional person.
17
+
18
+ <p>
19
+
20
+ Taking the letter out of the person's surname indicated by the roman numeral gives the message NATURE BOY TUNE ORIGINAL LANGUAGE. The tune of "Nature Boy" is taken from an old Yiddish song, and the answer is YIDDISH.
21
+
22
+ <p>
23
+
24
+ The</cite>, tracks:
25
+
26
+ <p>
27
+
28
+ <ol>
29
+ <li>Derek & the Dominos - <cite>Layla</cite>, track #13: "Layla"
30
+ <br>Addressed to Harrison, Patti Boyd [8]: N
31
+ <li>John Lennon - <cite>Imagine</cite>, track #8: "How Do You Sleep"
32
+ <br>Addressed to McCartney, Paul [4]: A
33
+ <li>Falco - <cite>3</cite>, track #1: "Rock Me Amadeus"
34
+ <br>Addressed to Mozart, Wolfgang Amadeus [6]: T
35
+ <li>Toto - <cite>IV</cite>, track #1: "Rosanna"
36
+ <br>Addressed to Arquette, Rosanna [4]: U
37
+ <li>Simon And Garfunkel - <cite>Bridge Over Troubled Water</cite>, track #5: "So Long, Frank Lloyd Wright"
38
+ <br>Addressed to Wright, Frank Lloyd [2]: R
39
+ <li>Melissa Etheridge - <cite>Breakdown</cite>, track #8: "Scarecrow"
40
+ <br>Addressed to Shepard, Matthew [3]: E
41
+ <li>Billy Joel - <cite>The Stranger</cite>, track #3: "Just the Way You Are"
42
+ <br>Addressed to Weber, Elizabeth [3]: B
43
+ <li>Indigo Girls - <cite>Rites of Passage</cite>, track #8: "Virginia Woolf"
44
+ <br>Addressed to Woolf, Virginia [2]: O
45
+ <li>Bree Sharp - <cite>A Cheap And Evil Girl</cite>, track #2: "David Duchovny"
46
+ <br>Addressed to Duchovny, David [8]: Y
47
+ <li>Eric Clapton - <cite>Unplugged</cite>, track #4: "Tears in Heaven"
48
+ <br>Addressed to Clapton, Conor [5]: T
49
+ <li>R.E.M. - <cite>Automatic for the People</cite>, track #10: "Man on the Moon"
50
+ <br>Addressed to Kaufman, Andy [3]: U
51
+ <li>Monty Python - <cite>Contractual Obligation Album</cite>, track #3: "Henry Kissinger"
52
+ <br>Addressed to Kissinger, Henry [6]: N
53
+ <li>Dire Straits - <cite>On Every Street</cite>, track #1: "Calling Elvis"
54
+ <br>Addressed to Presley, Elvis [3]: E
55
+ <li>John Lennon - <cite>Double Fantasy</cite>, track #10: "Woman"
56
+ <br>Addressed to Ono, Yoko [1]: O
57
+ <li>English Beat - <cite>Just Can't Stop It</cite>, track #8: "Stand Down Margaret"
58
+ <br>Addressed to Thatcher, Margaret [8]: R
59
+ <li>Leonard Cohen - <cite>New Skin for the Old Ceremony</cite>, track #2: "Chelsea Hotel #2"
60
+ <br>Addressed to Joplin, Janis [5]: I
61
+ <li>U2 - <cite>The Unforgettable Fire</cite>, track #2: "Pride"
62
+ <br>Addressed to King, Martin Luther [4]: G
63
+ <li>Crosby Stills Nash & Young - <cite>Deja Vu</cite>, track #7: "Our House"
64
+ <br>Addressed to Mitchell, Joni [2]: I
65
+ <li>Fleetwood Mac - <cite>Rumours</cite>, track #5: "Go Your own way"
66
+ <br>Addressed to Nicks, Stevie [1]: N
67
+ <li>Pink Floyd - <cite>Wish You Were Here</cite>, track #4: "Wish You were here"
68
+ <br>Addressed to Barrett, Syd [2]: A
69
+ <li>Tom Waits - <cite>Alice</cite>, track #1: "Alice"
70
+ <br>Addressed to Liddell, Alice [1]: L
71
+ <li>Beatles - <cite>1967-70 Disc 1</cite>, track #13: "Hey Jude"
72
+ <br>Addressed to Lennon, Julian [1]: L
73
+ <li>Tori Amos - <cite>Under The Pink</cite>, track #12: "Yes, Anastasia"
74
+ <br>Addressed to Romanov, Anastasia [4]: A
75
+ <li>The Bodyguard - <cite>Original Soundtrack Album </cite>, track #1: "I will always love you"
76
+ <br>Addressed to Wagoner, Porter [5]: N
77
+ <li>Buddy Holly - <cite>Buddy Holly</cite>, track #2: "Peggy Sue"
78
+ <br>Addressed to Gerron, Peggy Sue [1]: G
79
+ <li>Pink Floyd - <cite>Animals</cite>, track #3: "Pigs (Three Different Ones)"
80
+ <br>Addressed to Whitehouse, Mary [8]: U
81
+ <li>Sarah Maclachlan - <cite>Fumbling Towards Ecstasy</cite>, track #1: "Possession"
82
+ <br>Addressed to Maclachlan, Sarah [2]: A
83
+ <li>Blues Traveler - <cite>Save His Soul</cite>, track #3: "Letter from a Friend"
84
+ <br>Addressed to Graham, David [1]: G
85
+ <li>Elton John - <cite>Goodbye Yellow Brick Road</cite>, track #2: "Candle in the Wind"
86
+ <br>Addressed to Monroe, Marilyn [6]: E
87
+ </ol>
88
+
89
+ <p><hr><p>
90
+
91
+ <a href="index.html">Back to the index</a>
92
+
93
+ </BODY>
94
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_R_7_702_index.html/index.html ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="?">
7
+ <TITLE>Auditorium</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#cccccc" text="#666666"><!--CUT--><div align=right><small><a href="../../../solutions/auditorium.html">(Solution)</a></small></div><!--CUT--><FONT FACE="helvetica">
10
+ Room: 7.702
11
+ Exits: <a href = "../5_519/index.html">E</a>&nbsp;
12
+ <a href = "../2_723/index.html">SW</a>&nbsp;
13
+ <a href = "../0_000/index.html">U</a>&nbsp;
14
+ <a href = "../1_102/index.html">D</a>&nbsp;
15
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<small>(<a href="../../../solutions/all-r.html">Shortcuts</a>)</small><h1>7.702</h1>
16
+
17
+
18
+ <h2>Auditorium</h2>
19
+
20
+ <em>This seems to be some sort of auditorium or listening hall. At the back there is a control panel with a number of displays. There is a scrawled note.</em>
21
+
22
+ <p>
23
+
24
+ <blockquote><em>To whom it may concern:</em>
25
+
26
+ <p>
27
+
28
+ <em>The following parts of the system are not functioning.</em>
29
+
30
+ <p>
31
+
32
+ <ul>
33
+ <li><em>Sound output</em></li>
34
+ <li><em>Speed control</em></li>
35
+ <li><em>Display integrity</em></li>
36
+ </ul>
37
+
38
+ </blockquote>
39
+
40
+ <a href="auditorium-2.html">To the display</a><br><br>
41
+ <strong>(Warning! The display webpage consists of a large number of animated gifs. In testing, Internet Explorer proved unable to handle this with any grace and agility. Solvers who use IE may wish to use an alternate browser for this puzzle; Netscape is available on Athena, of course.)</strong>
42
+
43
+
44
+ </FONT>
45
+ </BODY><script src="/checkanswer.js" type="module"></script>
46
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/dialects.html ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Whoa--I Know Dialects!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>XXX Puzzle: Title</h2>
12
+ <h3>by Jeffrey Chan and Jofish Kaye</h3>
13
+
14
+ <p>
15
+
16
+ Certain words in the text have been replaced with other words, a la Cockney rhyming slang. Those words are:
17
+
18
+ <p>
19
+
20
+ <ul>
21
+ <li>clam = clam chowder = powder</li>
22
+ <li>chuck = Chuck Vest = rest</li>
23
+ <li>horowitz = horowitz and hill = ill</li>
24
+ <li>runcible = runcible spoon = noon</li>
25
+ <li>draper = Draper Lab = crab</li>
26
+ <li>stata = Stata Center = enter</li>
27
+ <li>dharma = Dharma and Greg = leg</li>
28
+ <li>gin = gin and tonic = phonic</li>
29
+ <li>kendall = Kendall Square = ware</li>
30
+ <li>abercrombie = Abercrombie and Fitch = itch</li>
31
+ <li>keanu = Keanu Reeves = thieves</li>
32
+ <li>radio = Radio Shack = hack</li>
33
+ <li>federal = Federal Express = depress</li>
34
+ <li>bituminous = bituminous coal = mole</li>
35
+ <li>lord = Lord and Taylor = sailor</li>
36
+ <li>sonny = Sonny and Cher = rare</li>
37
+ </ul>
38
+
39
+ <p>
40
+
41
+ <ul>
42
+ <li>halle = Halle Berry = perry</li>
43
+ <li>click = Click and Clack = ipecac</li>
44
+ <li>slim = Slim Shady = Lady</li>
45
+ <li>salt = salt and pepper = leper</li>
46
+ <li>al = Al Gore = poor</li>
47
+ <li>cheech = Cheech and Chong = wrong</li>
48
+ <li>clark = Clark Kent = intent</li>
49
+ <li>ricki = Ricki Lake = take</li>
50
+ <li>soap = soap on a rope = hope</li>
51
+ <li>shake = shake and bake = rake</li>
52
+ <li>condi = Condi Rice = ice</li>
53
+ <li>judi = Judi Dench = stench</li>
54
+ <li>Mercedes = Mercedes Benz = ends</li>
55
+ </ul>
56
+
57
+ <p>
58
+
59
+ The first letters of the original words spell PRINCE LP WITH DMSR and PIL LP WITH RISE. Prince's "D.M.S.R." is on the album <cite>1999</cite>; Public Image Ltd.'s "Rise" is on the album <cite>Album</cite> (at least, the LP is called "Album"; the tape is called "Cassette" and the CD is called "Compact Disc"). The answer is 1999 ALBUM.
60
+
61
+ </BODY>
62
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/index.html ADDED
@@ -0,0 +1,67 @@
 
 
0
  <head>
1
  <title>Training Index</title>
2
  <meta
 
 
 
 
 
 
 
 
 
 
3
  <td><img src="images/headt.gif"></td>
4
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  <td><img src="images/foott.gif"></td>
6
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
  <head>
4
  <title>Training Index</title>
5
  <meta
6
+ http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <style TYPE="text/css">
8
+ .font: { helvetica,verdana,ariel; }
9
+ </style>
10
+ </head>
11
+
12
+ <body bgcolor="#000000" text="#00aa30" link="#00aa30" vlink="#00aa30">
13
+ <font face="helvetica,verdana,ariel">
14
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
15
+ <tr>
16
  <td><img src="images/headt.gif"></td>
17
  </tr>
18
+ </table>
19
+
20
+ <p>
21
+ Welcome to the Resistance. Before we can put you back into the field
22
+ to start finding Adelphia's secrets, you'll need some training.
23
+ Complete the modules as needed -- but be aware that you'll find it
24
+ difficult to proceed without proper training.
25
+ </p>
26
+
27
+ <p>
28
+ Be sure to <a href="how-it-works.html">read the document that explains how
29
+ the training modules work</a>. Then get started on your training. And
30
+ good luck: the Resistance is counting on you.
31
+ </p>
32
+
33
+ <p>
34
+ VILE
35
+ </p>
36
+
37
+ <li><a href="tp-j.html"><strong>Whoa&#151;I Know Cartography!</strong></a></li>
38
+ <li><a href="tp-o.html"><strong>Whoa&#151;I Know Dating!</strong></a></li>
39
+ <li><a href="tp-a.html"><strong>Whoa&#151;I Know Dialects!</strong></a></li>
40
+ <li><a href="tp-n.html"><strong>Whoa&#151;I Know Doctoring!</strong></a></li>
41
+ <li><a href="tp-f.html"><strong>Whoa&#151;I Know Drawing!</strong></a></li>
42
+ <li><a href="tp-b.html"><strong>Whoa&#151;I Know Eschatology!</strong></a></li>
43
+ <li><a href="tp-e.html"><strong>Whoa&#151;I Know Football!</strong></a></li>
44
+ <li><a href="tp-g.html"><strong>Whoa&#151;I Know Genealogy!</strong></a></li>
45
+ <li><a href="tp-i.html"><strong>Whoa&#151;I Know Ikebana!</strong></a></li>
46
+ <li><a href="tp-l.html"><strong>Whoa&#151;I Know Jack!</strong></a></li>
47
+ <li><a href="tp-p.html"><strong>Whoa&#151;I Know Kiaido!</strong></a></li>
48
+ <li><a href="tp-q.html"><strong>Whoa&#151;I Know Knitting!</strong></a></li>
49
+ <li><a href="tp-c.html"><strong>Whoa&#151;I Have a Migraine!</strong></a></li>
50
+ <li><a href="tp-h.html"><strong>Whoa&#151;I Know My ABCs!</strong></a></li>
51
+ <li><a href="tp-d.html"><strong>Whoa&#151;I Know Prestidigitation!</strong></a></li>
52
+ <li><a href="tp-k.html"><strong>Whoa&#151;I Know Shoe-Buckling!</strong></a></li>
53
+ <li><a href="tp-m.html"><strong>Whoa&#151;I Know Subtraction!</strong></a></li>
54
+ <li><a href="tp-r.html"><strong>Whoa&#151;I Know Windows!</strong></a></li>
55
+
56
+ </ul>
57
+ <p><p><br>
58
+ <a href="../index.html">Back to the index</a>
59
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
60
+ <tr><td align="right"><a href="hidden.html"><img src="images/hidden.gif" height="2" width="2"></a></td></tr>
61
+ <tr>
62
  <td><img src="images/foott.gif"></td>
63
  </tr>
64
+ </table>
65
+
66
+ </font>
67
+ </body>
68
+ </html>
69
+
70
+
71
+
72
+
73
+
74
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-a.html/tp-a.html ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="Morpheus">
7
+ <TITLE>Whoa--I Know Dialects!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#000000" text="#00aa30" link="#00aa30" alink="#00aa30" vlink="#00aa30"><!--CUT--><div align=right><small><a href="../../solutions/dialects.html">(Solution)</a></small></div><!--CUT-->
10
+ <font face="helvetica">
11
+
12
+ <table width="100%">
13
+ <tr>
14
+ <td><img src="images/headt.jpg"></td>
15
+ </tr>
16
+ </table>
17
+
18
+
19
+ <h2>Whoa--I Know Dialects!</h2>
20
+
21
+ <em>"But I'm already hip with the street slang. Yo."</em>
22
+
23
+ <p>
24
+
25
+ <em>"Maybe in America."</em>
26
+
27
+ <p>
28
+
29
+ "I freaked out when I opened an envelope today and it was full of white clam! But it turned out just to be chalk dust."
30
+ <br>"You're looking tired. Perhaps you should have a chuck."
31
+ <br>"Yeah, I'm feeling a bit horowitz. I think I'm coming down with the flu or something."
32
+ <br>"Well, I made a doctor's appointment for you at runcible."
33
+ <br>"Thanks. Good thing too. I think I picked up a case of drapers from a girl I met last night."
34
+ <br>"Serves you right. When you go, make sure you go in through the door marked stata this time?"
35
+ <br>"Yeah, OK. While I'm there, I should get them to check on my dharma too--I hurt it the other day."
36
+ <br>"When you get back, you could help me code this 'Hooked on Gins' program I'm writing for a professor in the education department. I pirated a program from the Internet to help--I traded some kendalls I have to this 3l33t h4X0r to get it."
37
+ <br>"I should also show the doctor my arm--I've had this terrible abercrombie ever since I came back from hiking this weekend."
38
+ <br>"You'd better leave your wallet here--those nurses are all keanu, I tell you. Hey, I know some people who are going to radio the Little Dome on Wednesday. Are you in?"
39
+ <br>"If I have the energy. I just get so federalled at this time of year."
40
+ <br>"Well, I got a lot of molecules of super-prozac-plus stashed in the chem lab if that would help. I've probably got a bituminous or so, if that would help."
41
+ <br>"Did you get it from the same lord from the John F. Kennedy as last time?"
42
+ <br>"Yup, but he said this was the last batch he could sell me. This stuff is becoming increasingly sonny."
43
+
44
+ <p>
45
+
46
+ "Here, try some of this fermented juice I made. It's called halle."
47
+ <br>"Gaaack! You'd have to be frasier to drink this! You actually trying to sell this stuff?"
48
+ <br>"Well, I need the money to pay rent, otherwise my slim will complain."
49
+ <br>"Yeah, she'll treat you like a salt and won't come near you. Wanna catch breakfast at Rosebud?"
50
+ <br>"I shouldn't be eating out. I'm really al right now."
51
+ <br>"Come on. Things haven't gone all that cheech. Soon, everything'll be right as rain, you'll see."
52
+ <br>"Are you always so annoyingly cheery? Because if you keep this up I'll end up arrested for assault with murderous clark."
53
+ <br>"That's your problem you know, you ricki everything the wrong way! Why don't you take a note from Monty Python for once?"
54
+ <br>"'Always Look on the Bright Side of Life,' you mean? Does that mean you think I've got any straight of selling this stuff?"
55
+ <br>"Sure! Look, I bet once we fix the flavor of this, you'll be t-boning it in."
56
+ <br>"Really? So, do you think this would taste better on condi?"
57
+ <br>"No, I think you'd be better off first getting rid of that awful judi. Although, it can't hurt to try. You know what I say - all's well that mercedes..."
58
+
59
+ <p><br><p>
60
+
61
+ <a href="index.html">Back to the index</a>
62
+
63
+ <table width="100%">
64
+ <tr>
65
+ <td><img src="images/foott.jpg"></td>
66
+ </tr>
67
+ </table>
68
+
69
+ </font>
70
+ </BODY><script src="/checkanswer.js" type="module"></script>
71
+ </HTML>
72
+
73
+
74
+
75
+
76
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/eschatology.html ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Eschatology</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>Training Puzzle: Whoa--I Know Eschatology!</h2>
12
+ <h3>by Francis Heaney</h3>
13
+
14
+ <p>
15
+
16
+ The lists of words are verses from the King James Bible, with their words in reverse alphabetical order. The chapter and verse numbers indicate two letters which should be taken from the name of the book - that is to say, the full title of the book in the King James Version (for instance, "The First Book of Moses, called Genesis" instead of just "Genesis"), as hinted at by Morpheus's insistence on being called by his full name. The books should be arranged in reverse Bible order (that is, starting from Revelation and going back to Genesis) - in much the same way the words from the verses were alphabetized in reverse order.
17
+
18
+ <p>
19
+
20
+ <pre>
21
+ NI The Revelation of Saint John the Divine 13:11
22
+ NE The Second Epistle of Paul the Apostle to the Corinthians 8:10
23
+ TE The First Epistle of Paul the Apostle to the Corinthians 13:3
24
+ EN The Gospel According to Saint John 3:29
25
+ TH The Gospel According to Saint Luke 1:2
26
+ CH The Gospel According to Saint Mark 12:2
27
+ AP The Gospel According to Saint Matthew 27:7
28
+ TE The Book of Daniel 1:14
29
+ RF The Book of the Prophet Ezekiel 14:9
30
+ IR The Book of the Prophet Jeremiah 25:22
31
+ ST The Book of the Prophet Isaiah 21:10
32
+ GO The Song of Solomon 7:8
33
+ SP Ecclesiastes; or, The Preacher 9:18
34
+ EL The Second Book of the Chronicles 18:26
35
+ EN The First Book of the Chronicles 26:22
36
+ DI The Second Book of the Kings, Commonly Called the Fourth Book of the Kings 9:20
37
+ NG The First Book of the Kings, Commonly Called the Third Book of the Kings 20:21
38
+ CL The First Book of Samuel, Otherwise Called the First Book of the Kings 30:20
39
+ AU The Fourth Book of Moses, Called Numbers 22:28
40
+ SE The First Book of Moses, Called Genesis 32:24
41
+ </pre>
42
+
43
+ <p>
44
+
45
+ After the verses are arranged, reading the appropriate letters
46
+ spells the message "NINETEENTH CHAPTER, FIRST GOSPEL, ENDING CLAUSE";
47
+ the last clause in Matthew 19 is the final answer: AND THE LAST SHALL
48
+ BE FIRST.
49
+
50
+ </BODY>
51
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/index.html ADDED
@@ -0,0 +1,67 @@
 
 
0
  <head>
1
  <title>Training Index</title>
2
  <meta
 
 
 
 
 
 
 
 
 
 
3
  <td><img src="images/headt.gif"></td>
4
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  <td><img src="images/foott.gif"></td>
6
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
  <head>
4
  <title>Training Index</title>
5
  <meta
6
+ http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <style TYPE="text/css">
8
+ .font: { helvetica,verdana,ariel; }
9
+ </style>
10
+ </head>
11
+
12
+ <body bgcolor="#000000" text="#00aa30" link="#00aa30" vlink="#00aa30">
13
+ <font face="helvetica,verdana,ariel">
14
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
15
+ <tr>
16
  <td><img src="images/headt.gif"></td>
17
  </tr>
18
+ </table>
19
+
20
+ <p>
21
+ Welcome to the Resistance. Before we can put you back into the field
22
+ to start finding Adelphia's secrets, you'll need some training.
23
+ Complete the modules as needed -- but be aware that you'll find it
24
+ difficult to proceed without proper training.
25
+ </p>
26
+
27
+ <p>
28
+ Be sure to <a href="how-it-works.html">read the document that explains how
29
+ the training modules work</a>. Then get started on your training. And
30
+ good luck: the Resistance is counting on you.
31
+ </p>
32
+
33
+ <p>
34
+ VILE
35
+ </p>
36
+
37
+ <li><a href="tp-j.html"><strong>Whoa&#151;I Know Cartography!</strong></a></li>
38
+ <li><a href="tp-o.html"><strong>Whoa&#151;I Know Dating!</strong></a></li>
39
+ <li><a href="tp-a.html"><strong>Whoa&#151;I Know Dialects!</strong></a></li>
40
+ <li><a href="tp-n.html"><strong>Whoa&#151;I Know Doctoring!</strong></a></li>
41
+ <li><a href="tp-f.html"><strong>Whoa&#151;I Know Drawing!</strong></a></li>
42
+ <li><a href="tp-b.html"><strong>Whoa&#151;I Know Eschatology!</strong></a></li>
43
+ <li><a href="tp-e.html"><strong>Whoa&#151;I Know Football!</strong></a></li>
44
+ <li><a href="tp-g.html"><strong>Whoa&#151;I Know Genealogy!</strong></a></li>
45
+ <li><a href="tp-i.html"><strong>Whoa&#151;I Know Ikebana!</strong></a></li>
46
+ <li><a href="tp-l.html"><strong>Whoa&#151;I Know Jack!</strong></a></li>
47
+ <li><a href="tp-p.html"><strong>Whoa&#151;I Know Kiaido!</strong></a></li>
48
+ <li><a href="tp-q.html"><strong>Whoa&#151;I Know Knitting!</strong></a></li>
49
+ <li><a href="tp-c.html"><strong>Whoa&#151;I Have a Migraine!</strong></a></li>
50
+ <li><a href="tp-h.html"><strong>Whoa&#151;I Know My ABCs!</strong></a></li>
51
+ <li><a href="tp-d.html"><strong>Whoa&#151;I Know Prestidigitation!</strong></a></li>
52
+ <li><a href="tp-k.html"><strong>Whoa&#151;I Know Shoe-Buckling!</strong></a></li>
53
+ <li><a href="tp-m.html"><strong>Whoa&#151;I Know Subtraction!</strong></a></li>
54
+ <li><a href="tp-r.html"><strong>Whoa&#151;I Know Windows!</strong></a></li>
55
+
56
+ </ul>
57
+ <p><p><br>
58
+ <a href="../index.html">Back to the index</a>
59
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
60
+ <tr><td align="right"><a href="hidden.html"><img src="images/hidden.gif" height="2" width="2"></a></td></tr>
61
+ <tr>
62
  <td><img src="images/foott.gif"></td>
63
  </tr>
64
+ </table>
65
+
66
+ </font>
67
+ </body>
68
+ </html>
69
+
70
+
71
+
72
+
73
+
74
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-b.html/tp-b.html ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="Morpheus">
7
+ <TITLE>Whoa--I Know Eschatology!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#000000" text="#00aa30" link="#00aa30" alink="#00aa30" vlink="#00aa30"><!--CUT--><div align=right><small><a href="../../solutions/eschatology.html">(Solution)</a></small></div><!--CUT-->
10
+ <font face="helvetica">
11
+
12
+ <table width="100%">
13
+ <tr>
14
+ <td><img src="images/headt.jpg"></td>
15
+ </tr>
16
+ </table>
17
+
18
+
19
+ <h2>Whoa--I Know Eschatology!</h2>
20
+
21
+ <p>
22
+
23
+ <i>"Morpheus, dude. What do you want me to do with these filing cards?"</i>
24
+
25
+ <p>
26
+
27
+ <i>"Please, show some respect for your teacher. Call me by my full, unabbreviated
28
+ name: Mister Aloysius Fauntleroy Morpheus, Junior. Now, I think--will
29
+ you please stop giggling! Thank you. I think you'll find these are
30
+ in the wrong order. I trust you will be able to correct them."</i>
31
+
32
+
33
+ <p>
34
+
35
+ Zidon Zetham you you year wrestled word with with with with with wisdom will will will will who which which which which which which when what were were went weapons water watchman was war voice vineyard vine us upon up up unto unto unto unto unto until until Tyrus two tree treasures took took told to to to to to to to to times thy thy thus threshing three though though thou those this this this this this thing they they they these thereof therefore there them them them them them thee the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the that that that that that than ten take Syrians stretch strangers standeth spoken spoil spake sons son so smote smitten smell slew slaughter sinner she shall servant sent season sea saying say saith said said said return rejoiceth receive put proved prophet prophet profiteth prison potter's poor people peace palm over out out out other opened only one of of of of of of of of of of of of of of of of of of of of of of of of of of of of O now nothing not not not nose Nimshi my my my my my my my my much mouth ministers might midst me me matter man LORD LORD LORD LORD like like like left lamb kings kings kings king king joy Joel Jehu Jehieli Jacob it Israel Israel Israel isles is is is is is is in in in in if I I I I I I I I I I I I I husbandmen husbandmen house hosts horses horns hold his him him him him him herein herds heareth heard he he he he he he he he he have have have have have have hath hath hast hand had greatly great goods good God go give give furiously fulfilled fruit from from from friend forward for for for floor flocks field fellow feed feed eyewitnesses expedient even even earth driving driving driveth drave dragon done do destroyeth destroy delivered declared deceived deceived days day David's David counsel corn consented coming cometh clusters charity chariots cattle came but but but bury burned brother bridegroom's bridegroom bridegroom bride breasts breaking bread bought boughs body beyond better bestow beheld begun beginning before before because beast be be be be Balaam at ass as as as are apples another and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and and also also alone all all all all ago again affliction affliction advice a a a a a a a
36
+
37
+ <p><br><p>
38
+
39
+ <a href="index.html">Back to the index</a></font>
40
+
41
+
42
+ <table width="100%">
43
+ <tr>
44
+ <td><img src="images/foott.jpg"></td>
45
+ </tr>
46
+ </table>
47
+
48
+ </font>
49
+
50
+
51
+ </BODY><script src="/checkanswer.js" type="module"></script>
52
+ </HTML>
53
+
54
+
55
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/index.html ADDED
@@ -0,0 +1,67 @@
 
 
0
  <head>
1
  <title>Training Index</title>
2
  <meta
 
 
 
 
 
 
 
 
 
 
3
  <td><img src="images/headt.gif"></td>
4
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  <td><img src="images/foott.gif"></td>
6
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
  <head>
4
  <title>Training Index</title>
5
  <meta
6
+ http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <style TYPE="text/css">
8
+ .font: { helvetica,verdana,ariel; }
9
+ </style>
10
+ </head>
11
+
12
+ <body bgcolor="#000000" text="#00aa30" link="#00aa30" vlink="#00aa30">
13
+ <font face="helvetica,verdana,ariel">
14
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
15
+ <tr>
16
  <td><img src="images/headt.gif"></td>
17
  </tr>
18
+ </table>
19
+
20
+ <p>
21
+ Welcome to the Resistance. Before we can put you back into the field
22
+ to start finding Adelphia's secrets, you'll need some training.
23
+ Complete the modules as needed -- but be aware that you'll find it
24
+ difficult to proceed without proper training.
25
+ </p>
26
+
27
+ <p>
28
+ Be sure to <a href="how-it-works.html">read the document that explains how
29
+ the training modules work</a>. Then get started on your training. And
30
+ good luck: the Resistance is counting on you.
31
+ </p>
32
+
33
+ <p>
34
+ VILE
35
+ </p>
36
+
37
+ <li><a href="tp-j.html"><strong>Whoa&#151;I Know Cartography!</strong></a></li>
38
+ <li><a href="tp-o.html"><strong>Whoa&#151;I Know Dating!</strong></a></li>
39
+ <li><a href="tp-a.html"><strong>Whoa&#151;I Know Dialects!</strong></a></li>
40
+ <li><a href="tp-n.html"><strong>Whoa&#151;I Know Doctoring!</strong></a></li>
41
+ <li><a href="tp-f.html"><strong>Whoa&#151;I Know Drawing!</strong></a></li>
42
+ <li><a href="tp-b.html"><strong>Whoa&#151;I Know Eschatology!</strong></a></li>
43
+ <li><a href="tp-e.html"><strong>Whoa&#151;I Know Football!</strong></a></li>
44
+ <li><a href="tp-g.html"><strong>Whoa&#151;I Know Genealogy!</strong></a></li>
45
+ <li><a href="tp-i.html"><strong>Whoa&#151;I Know Ikebana!</strong></a></li>
46
+ <li><a href="tp-l.html"><strong>Whoa&#151;I Know Jack!</strong></a></li>
47
+ <li><a href="tp-p.html"><strong>Whoa&#151;I Know Kiaido!</strong></a></li>
48
+ <li><a href="tp-q.html"><strong>Whoa&#151;I Know Knitting!</strong></a></li>
49
+ <li><a href="tp-c.html"><strong>Whoa&#151;I Have a Migraine!</strong></a></li>
50
+ <li><a href="tp-h.html"><strong>Whoa&#151;I Know My ABCs!</strong></a></li>
51
+ <li><a href="tp-d.html"><strong>Whoa&#151;I Know Prestidigitation!</strong></a></li>
52
+ <li><a href="tp-k.html"><strong>Whoa&#151;I Know Shoe-Buckling!</strong></a></li>
53
+ <li><a href="tp-m.html"><strong>Whoa&#151;I Know Subtraction!</strong></a></li>
54
+ <li><a href="tp-r.html"><strong>Whoa&#151;I Know Windows!</strong></a></li>
55
+
56
+ </ul>
57
+ <p><p><br>
58
+ <a href="../index.html">Back to the index</a>
59
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
60
+ <tr><td align="right"><a href="hidden.html"><img src="images/hidden.gif" height="2" width="2"></a></td></tr>
61
+ <tr>
62
  <td><img src="images/foott.gif"></td>
63
  </tr>
64
+ </table>
65
+
66
+ </font>
67
+ </body>
68
+ </html>
69
+
70
+
71
+
72
+
73
+
74
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/migraine.html ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Migraine!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>T Puzzle: Whoa -- I have a Migraine! (temporary title)</h2>
12
+ <h3>by Jofish Kaye</h3>
13
+
14
+ <p>
15
+
16
+ Hints:
17
+
18
+ <p>
19
+
20
+ <ol>
21
+ <li>If only there was some sort of standard code for this.</li>
22
+ <li>Look beyond the text. You have to see it for yourself.</li>
23
+ <li>Relax. Let your eyes unfocus.</li>
24
+ </ol>
25
+
26
+ <p>
27
+
28
+ Answer:
29
+
30
+ <p>
31
+
32
+ This puzzle is a stereogram. In order for it to work, however, the solver must notice that the first and last lines are identical; each one contains no spaces and no repeated characters. Sorting the columns so that the top/bottom are in (increasing) ASCII order gives:
33
+
34
+ <p>
35
+
36
+ <pre>/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz
37
+ @leA sep in asr@leA sep in asr@leA sep in asr@leA sep in asr@leA sep in asr@
38
+ m[_r i xarag htm[_r i xarag htm[_r i xarag htm[_r i xarag htm[_r i xarag htm
39
+ uring funt 3;P uring funt 3;P uring funt 3;P uring funt 3;P uring funt 3;P u
40
+ do wlea KAL\ ftdo wlea KAL\ ftdo wlea KAL\ ftdo wlea KAL\ ftdo wlea KAL\ ftd
41
+ ipe^c repas s nipe^c repas s nipe^c repas s nipe^c repas s nipe^c repas s ni
42
+ INgFO n2ta por INgFO n2ta por INgFO n2ta por INgFO n2ta por INgFO n2ta por i
43
+ ipng rota aL3T ipng rota aL3T ipn rota oaL3T ipn rota oaL3T ipn rota oaL3T i
44
+ rlAn Guid Guag[rlAn Guid Guag[rlAn Guid Guag[rlAn Guid Guag[rlAn Guid Guag[r
45
+ ot at teNinet Po] at teNinet Po] a teNinet sPo] a teNinet sPo] a teNinet spo
46
+ kan ip h7pP JoIkan ip h7pP JoIkan ip h7pP JoIkan ip h7pP JoIkan ip h7pP joik
47
+ le pAst ydeg nole pAst ydeg nole pAs ydeg cnole pAs ydeg cnole pAs ydeg cnol
48
+ n0c1m5 oti dio n0c1m5 oti dio n0c1m5 oti dio n0c1m5 oti dio n0c1m5 oti dio n
49
+ z/\ rACs rees Lz/\ rACs rees Lz/\ rac rees pLz/\ rac rees pLz/\ rac rees pLz
50
+ sMa bBb8 ntips sMa bBb8 ntips sMa bBb8 ntips sMa bBb8 ntips sMa bBb8 ntips s
51
+ Ut0 solip ccw bUt0 solip ccw bUt0 soli ccw abUt0 soli ccw abUt0 soli ccw abU
52
+ J=wdeg oXoldto J=wdeg oXoldto J=wdeg oXoldto J=wdeg oXoldto J=wdeg oXoldto J
53
+ up xref RET of up xref RET of up xref RET of up xref RET of up xref RET of u
54
+ q ginoH sub w4Lq ginoH sub w4Lq ginoH sub w4Lq ginoH sub w4Lq ginoH sub w4Lq
55
+ iN5t1nkpink [r iN5t1nkpink [r iN5t1nkpink [r iN5t1nkpink [r iN5t1nkpink [r i
56
+ CK evo of3PL BOCK evo of3PL BOCK evo of3PL BOCK evo of3PL BOCK evo of3PL BOC
57
+ 7q:n in lhr cR17q:n in lhr cR17q:n in lhr cR17q:n in lhr cR17q:n in lhr cR17
58
+ l a tr3f Rad5ill a tr3f Rad5ill a tr3f Rad5ill a tr3f Rad5ill a tr3f Rad5ill
59
+ orsrv Has r>e? orsrv Has r>e? orsrv Has r>e? orsrv Has r>e? orsrv Has r>e? o
60
+ 3ng s__v Taki p3ng s__v Taki p3ng s__v Taki p3ng s__v Taki p3ng s__v Taki p3
61
+ ptn DuR0cwed h3ptn DuR0cwed h3ptn DuR0cwed h3ptn DuR0cwed h3ptn DuR0cwed h3p
62
+ [2]trpXY onts g[2]trpXY onts g[2]trpXY onts g[2]trpXY onts g[2]trpXY onts g[
63
+ A intld r3^cstMA intld r3^cstMA intld r3^cstMA intld r3^cstMA intld r3^cstMA
64
+ /0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz</pre>
65
+
66
+ <p>
67
+
68
+ Now it is a standard stereogram. Staring gives "rota teNinet ydef rees ccw." The answer is ROTATE NINETY DEGREES CCW."
69
+
70
+
71
+ </BODY>
72
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-c.html/tp-c.html ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="Morpheus">
7
+ <TITLE>Migraine!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#000000" text="#00aa30" link="#00aa30" vlink="#00aa30" alink="#00aa30"><!--CUT--><div align=right><small><a href="../../solutions/migraine.html">(Solution)</a></small></div><!--CUT-->
10
+ <font face="arial">
11
+ <table width="100%">
12
+ <tr>
13
+ <td><img src="images/headt.jpg"></td>
14
+ </tr>
15
+ </table>
16
+
17
+ <h2>Whoa -- I have a Migraine!</h2>
18
+
19
+ <p>
20
+
21
+ <i>"Man. Just staring at this makes my eyes hurt."</i>
22
+
23
+ <p>
24
+
25
+ <i>"You never know what you may have to face."</i>
26
+
27
+ <p>
28
+ </font>
29
+ <pre>=?mzAxLkoX>@IRlnps/KMOSU46HY[rtd0j7FQci:PVbv1BEJNTaue8f<25_qWCZ9gh`wy3^DG\;]
30
+ rle@Asr@ @e slAs @s@ee spnarpi lr ps Aie e palpsniinsAeAenssn a ar eei@al
31
+ t[_mrhtm gm_gi[riamhm_ aixa txra[taa xhgrr g_ x [xiarrahr r aihag t _ rm [
32
+ riunP ug3ui3 rn nuPuifn u ; utnr nnguP3ntf3igu;ru tt Pnfnf P 3;g; giftu;r
33
+ to dwftdl\d \eoweKdfd aKe L t AKotKKl f\wAa\ l o eLAALfwawaLefL\ l tl aAd o
34
+ npei^ nic ie p^ pi ierp essneappnppce ^ar ecespe saas ^r^rs s scsnceraisp
35
+ NgiFr IOpIgp NF tIrIgnt 2 o 2atN ttO2rpFanpgO2oN2 aa rFnFn r poOo OgnaIoN
36
+ pnigT irLinLop o iTint rta3 ao p aaraTL otLn t3paoao aTgo tarTaL3r3 no i3p
37
+ [lArng[r urAuGlnGdrgrAudGiGa[i dl[dd igun uuA ialiGG GgnunuGGgGua a[ Au ral
38
+ P] oasPo to et]atio o ei en PNnitPNN Nseanet tet]Ntenie ataee snt pt tiot]
39
+ Iank oIki kn pa p7kokn 7phPJIhp7aI77iho p nihJahpPppPo PpoP Jijiin pkJa
40
+ oe lpnolA l gsepsdlnl ds ecoyedeoyyAyngpe A eysgedgnptp gsne cAcoA tdl e
41
+ 0cn1o nmdncd5015tnonc t5o i oit0 ttmood1i dcmoi0o5 ii o1 1 5o dimi mc ini0
42
+ L/\z pLzrsz\ea/ arz z\crAse L er/L r pe ecs\rss/ aeere C ceApes r Lr\Crzs/
43
+ Mas s sbisaiBM B sssab B8tp 8n M b8si nbiab8pM8Btnnts b btBstipbp babnspM
44
+ bt0U abUswU0cot o U U0l oic bic tbppsiac clw0siwtiocc c l lcoacw s bs0l Uwt
45
+ =wJdo JedJwdg=dgXJoJw Xgolt ooX= XXeooddo dweot=ogloolod d lgoldtet ew oJt=
46
+ p uxf ur u epxeRufu fRe To ERp RRr f xEf r op eTEETfxfxfTefT oro r fEuop
47
+ L gqi4Lqn qg o iosq4qgHso bwL us Lssn 4 iuH gn w obuub4iHiHbo4b wnwLngHuqw
48
+ N5itr i1 i5 nNtniiri5kinpk[ pniN ii1pr tnk 51p[Npnknnkrtktkknrk [1[ 15kni[N
49
+ OK CeBOCvLC LoKeofCBC fooP Oo3fKOffvoBLe3 L vo KooP33PBe e PoBPL v Ov 3C K
50
+ 1q:7nR17 7: iqnil7R7:nli rc1 hlq1ll R nhn : cq irhhrRnnnnriRr c c1 :nh7cq
51
+ l al illtdladr r lila3 rfa5lfR l tfid R3datf5 fraRRai 3 3ariad5t5lta3Rl5
52
+ rsor? ov>os> rr so?osHs are a sr ssva?>r H>svaera r r?rHrHr ?r>eve vsH oer
53
+ png3 p3sk3gk_n _ 3 3g_ _vaipvT np sv k T_kgsvinv_aTTa _ _a_ akisipsg_T3in
54
+ 3tnp h3pDdpndut ucphpnRcu0e 30wct3ccD0hd wRdnD0 t0uewweh R Reuhed D 3DnRwp t
55
+ g2][t g[rt[]tp2tp [ []X pYnsgYo 2g rY ttoXt]rYs2Ypnoon tXtXnp ntsrsgr]Xo[s2
56
+ M iAntMAtcAicl nlrAtAidrl ^sM 3r Mrrt tcn3dcit s l^33^tndnd^lt^cstsMtid3As
57
+ =?mzAxLkoX>@IRlnps/KMOSU46HY[rtd0j7FQci:PVbv1BEJNTaue8f<25_qWCZ9gh`wy3^DG\;]</pre>
58
+
59
+
60
+ <p><br><p>
61
+ <font face="arial">
62
+ <a href="index.html">Back to the index</a>
63
+ </font>
64
+ <table width="100%">
65
+ <tr>
66
+ <td><img src="images/foott.jpg"></td>
67
+ </tr>
68
+ </table>
69
+
70
+ </FONT>
71
+ </BODY><script src="/checkanswer.js" type="module"></script>
72
+ </HTML>
73
+
74
+
75
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/index.html ADDED
@@ -0,0 +1,67 @@
 
 
0
  <head>
1
  <title>Training Index</title>
2
  <meta
 
 
 
 
 
 
 
 
 
 
3
  <td><img src="images/headt.gif"></td>
4
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  <td><img src="images/foott.gif"></td>
6
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
  <head>
4
  <title>Training Index</title>
5
  <meta
6
+ http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <style TYPE="text/css">
8
+ .font: { helvetica,verdana,ariel; }
9
+ </style>
10
+ </head>
11
+
12
+ <body bgcolor="#000000" text="#00aa30" link="#00aa30" vlink="#00aa30">
13
+ <font face="helvetica,verdana,ariel">
14
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
15
+ <tr>
16
  <td><img src="images/headt.gif"></td>
17
  </tr>
18
+ </table>
19
+
20
+ <p>
21
+ Welcome to the Resistance. Before we can put you back into the field
22
+ to start finding Adelphia's secrets, you'll need some training.
23
+ Complete the modules as needed -- but be aware that you'll find it
24
+ difficult to proceed without proper training.
25
+ </p>
26
+
27
+ <p>
28
+ Be sure to <a href="how-it-works.html">read the document that explains how
29
+ the training modules work</a>. Then get started on your training. And
30
+ good luck: the Resistance is counting on you.
31
+ </p>
32
+
33
+ <p>
34
+ VILE
35
+ </p>
36
+
37
+ <li><a href="tp-j.html"><strong>Whoa&#151;I Know Cartography!</strong></a></li>
38
+ <li><a href="tp-o.html"><strong>Whoa&#151;I Know Dating!</strong></a></li>
39
+ <li><a href="tp-a.html"><strong>Whoa&#151;I Know Dialects!</strong></a></li>
40
+ <li><a href="tp-n.html"><strong>Whoa&#151;I Know Doctoring!</strong></a></li>
41
+ <li><a href="tp-f.html"><strong>Whoa&#151;I Know Drawing!</strong></a></li>
42
+ <li><a href="tp-b.html"><strong>Whoa&#151;I Know Eschatology!</strong></a></li>
43
+ <li><a href="tp-e.html"><strong>Whoa&#151;I Know Football!</strong></a></li>
44
+ <li><a href="tp-g.html"><strong>Whoa&#151;I Know Genealogy!</strong></a></li>
45
+ <li><a href="tp-i.html"><strong>Whoa&#151;I Know Ikebana!</strong></a></li>
46
+ <li><a href="tp-l.html"><strong>Whoa&#151;I Know Jack!</strong></a></li>
47
+ <li><a href="tp-p.html"><strong>Whoa&#151;I Know Kiaido!</strong></a></li>
48
+ <li><a href="tp-q.html"><strong>Whoa&#151;I Know Knitting!</strong></a></li>
49
+ <li><a href="tp-c.html"><strong>Whoa&#151;I Have a Migraine!</strong></a></li>
50
+ <li><a href="tp-h.html"><strong>Whoa&#151;I Know My ABCs!</strong></a></li>
51
+ <li><a href="tp-d.html"><strong>Whoa&#151;I Know Prestidigitation!</strong></a></li>
52
+ <li><a href="tp-k.html"><strong>Whoa&#151;I Know Shoe-Buckling!</strong></a></li>
53
+ <li><a href="tp-m.html"><strong>Whoa&#151;I Know Subtraction!</strong></a></li>
54
+ <li><a href="tp-r.html"><strong>Whoa&#151;I Know Windows!</strong></a></li>
55
+
56
+ </ul>
57
+ <p><p><br>
58
+ <a href="../index.html">Back to the index</a>
59
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
60
+ <tr><td align="right"><a href="hidden.html"><img src="images/hidden.gif" height="2" width="2"></a></td></tr>
61
+ <tr>
62
  <td><img src="images/foott.gif"></td>
63
  </tr>
64
+ </table>
65
+
66
+ </font>
67
+ </body>
68
+ </html>
69
+
70
+
71
+
72
+
73
+
74
+
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/prestidigitation.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="Lance Nathan">
6
+ <META NAME="GENERATOR" CONTENT="me typing damnit">
7
+ <TITLE>Whoa--I Know Prestidigitation!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>T Puzzle: Whoa--I Know Prestidigitation!</h2>
12
+ <h3>by Dean Sturtevant</h3>
13
+
14
+ <p>
15
+
16
+ A new deck of Bicycle cards is arranged sans jokers as follows: A-K hearts, A-K clubs, K-A diamonds, K-A spades. (This could use verification.)
17
+
18
+ <p>
19
+
20
+ After the manipulations have been performed, the cards should be arranged as follows (* means face-down):
21
+
22
+ <p>
23
+
24
+ *9S 9D *5S 7H 9H *AH 9C AC 3S *2C *8S *AS *7D *QH
25
+ <p>
26
+
27
+ If you translate cards to letters using "A-K face-up -> A-M, A-K face-down -> N-Z" the cards spell out the answer, VIRGINIA COUNTY.
28
+
29
+ </BODY>
30
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-d.html/tp-d.html ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="VILE">
6
+ <META NAME="GENERATOR" CONTENT="Morpheus">
7
+ <TITLE>Whoa--I Know Prestidigitation!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#000000" text="#00aa30" link="#00aa30" alink="#00aa30" vlink="#00aa30"><!--CUT--><div align=right><small><a href="../../solutions/prestidigitation.html">(Solution)</a></small></div><!--CUT-->
10
+ <font face="helvetica">
11
+
12
+ <table width="100%">
13
+ <tr>
14
+ <td><img src="images/headt.jpg"></td>
15
+ </tr>
16
+ </table>
17
+
18
+
19
+ <h2>Whoa--I Know Prestidigitation!</h2>
20
+
21
+ <p>
22
+
23
+ <em>"That's some pretty fancy shuffling!"</em>
24
+
25
+ <p>
26
+
27
+ <em>"Thank you. Is this your card?"</em>
28
+
29
+ <p>
30
+
31
+ Take a fresh deck of Bicycle cards and remove the jokers and
32
+ advertising cards. Manipulate the deck according to the following key:
33
+
34
+ <p>
35
+
36
+ <pre>0 = perfect shuffle (top card goes 2nd, bottom goes 2nd from bottom)
37
+ 1 = put top card on the bottom
38
+ 2 = discard top card
39
+ 3 = exchange top and bottom cards
40
+ 4 = flip top card over</pre>
41
+
42
+ <p>
43
+
44
+ After that, turn the deck over and spread the cards out.
45
+
46
+ <p>
47
+
48
+ 0212022021240220220224021414120412202202120241240220214201241201212024201111412240111220211142411341313131314313143143413131411341131311131313131431111141431114313143131341111113111313413143413411111134111314314131311141111141313411431434114111141411413113143111111111111313111111111114113411111111141411131414111411111141134111414111111111311114141114111141311141111111111
49
+
50
+ <p>
51
+
52
+ <strong>Saturday evening note:
53
+
54
+ <br><br>
55
+
56
+ Apparently we were unaware that, within the Matrix, decks of Bicycle cards
57
+ show more variation than they do in reality. (We have several packs here
58
+ on the Nebudchanezzar and they all look the same.)
59
+
60
+ <br><br>
61
+
62
+ If you're having trouble learning prestidigitation, you may want a
63
+ standard-issue Bicycle deck, which would have cards in the following
64
+ order, top down in a face-down deck:
65
+
66
+ <br><br>
67
+
68
+ Ace through King of hearts<br>
69
+ Ace through King of clubs<br>
70
+ King through Ace of diamonds<br>
71
+ King through Ace of spades<br>
72
+
73
+ <br><br>
74
+
75
+ (That is to say, AH, 2H, 3H, ..., KH, AC, 2C, ..., KC, KD, QD...)
76
+
77
+ <br><br>
78
+
79
+ If there was any question, the trick is done with the deck face-down.</strong>
80
+
81
+
82
+ <p><br><p>
83
+
84
+ <a href="index.html">Back to the index</a>
85
+
86
+ <table width="100%">
87
+ <tr>
88
+ <td><img src="images/foott.jpg"></td>
89
+ </tr>
90
+ </table>
91
+
92
+ </font>
93
+ </BODY><script src="/checkanswer.js" type="module"></script>
94
+ </HTML>
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-e.html/checkanswer.js ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Do this first so that layout shift isn't too bad:
2
+ const container = document.createElement("div");
3
+ container.style = `
4
+ font-size: 16px;
5
+ font-size: clamp(16px, 2.4vw, 21px);
6
+ height: 2.5em;
7
+ `;
8
+ document.body.prepend(container);
9
+
10
+ import { React, html, css, render } from "./package.js";
11
+
12
+ /**
13
+ * Remove non-alphanumeric characters.
14
+ */
15
+ const normalizeAnswer = (answer) => {
16
+ if (getYear() === 2003) {
17
+ if (document.URL.includes("teamGuest/2")) {
18
+ // Special case: 2003 R2, whose answers are emoji.
19
+ return answer.trim();
20
+ } else if (document.URL.includes("6_3")) {
21
+ // Special case: Answer is literal Greek letter.
22
+ return answer.trim();
23
+ }
24
+ }
25
+ return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, "");
26
+ };
27
+
28
+ /**
29
+ * Returns the year of the hunt we're in.
30
+ */
31
+ const getYear = () => {
32
+ return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0);
33
+ };
34
+
35
+ /**
36
+ * Fetches the answers as a list of {url, answer, prompt, intermediate}.
37
+ */
38
+ const getData = async () => {
39
+ const res = await fetch("/answers.tsv");
40
+ const data = await res.text();
41
+ const [header, ...body] = data.split("\n");
42
+ const headers = header.trim().split("\t");
43
+ return body.map((row) => {
44
+ const res = {};
45
+ row.split("\t").forEach((item, i) => {
46
+ res[headers[i]] = item.trim();
47
+ });
48
+ return res;
49
+ });
50
+ };
51
+
52
+ /**
53
+ * Gets the base URL; removes trailing index.html and .html, removes everything
54
+ * before the year, and then removes trailing slash.
55
+ */
56
+ const getBase = (url) => {
57
+ const root =
58
+ RegExp(`^(.*/)index.html`).exec(url)?.[1] ??
59
+ RegExp(`^(.*).html`).exec(url)?.[1] ??
60
+ url;
61
+ const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root;
62
+ return base.endsWith("/") ? base.slice(0, -1) : base;
63
+ };
64
+
65
+ /**
66
+ * Get all rows in the data corresponding to a given URL. Group by same prompt.
67
+ */
68
+ const getAnswers = (data, url) => {
69
+ const base = getBase(url);
70
+ const rows = data.filter((row) => getBase(row.url) === base);
71
+ const prompts = [];
72
+ for (const row of rows) {
73
+ const { prompt } = row;
74
+ const group = prompts.find((group) => group.prompt === prompt);
75
+ if (group) {
76
+ group.rows.push(row);
77
+ } else {
78
+ prompts.push({ prompt, rows: [row] });
79
+ }
80
+ }
81
+ return prompts;
82
+ };
83
+
84
+ /**
85
+ * A single textbox and submit button in the rows of possible responses.
86
+ */
87
+ const ResponseRow = ({ prompt, rows, setFeedback }) => {
88
+ const [response, setResponse] = React.useState("");
89
+
90
+ const form = css`
91
+ align-items: baseline;
92
+ display: flex;
93
+ justify-content: right;
94
+ margin-bottom: 0.5em;
95
+
96
+ @media (max-width: 600px) {
97
+ align-items: flex-start;
98
+ flex-direction: column;
99
+ }
100
+ `;
101
+
102
+ const input = css`
103
+ background: #fafafa;
104
+ border: 1px solid #aaa;
105
+ border-radius: 2px;
106
+ color: #121212;
107
+ font-family: inherit;
108
+ font-size: 100%;
109
+ line-height: 1.2;
110
+ margin: 0 0.5em;
111
+ padding: 0.25em 0.5em;
112
+
113
+ @media (max-width: 600px) {
114
+ margin: 0 0 0.25em;
115
+ }
116
+ `;
117
+
118
+ const onSubmit = (e) => {
119
+ e.preventDefault();
120
+ let set = false;
121
+ for (const row of rows) {
122
+ const correct = normalizeAnswer(row.answer) === normalizeAnswer(response);
123
+ if (correct) {
124
+ setFeedback(
125
+ row.intermediate?.trim() === "TRUE"
126
+ ? "Correct! See the solution page for the answer."
127
+ : `Solved! The answer was ${row.answer}.`
128
+ );
129
+ set = true;
130
+ break;
131
+ }
132
+ }
133
+ if (!set) {
134
+ setFeedback("Incorrect.");
135
+ }
136
+ };
137
+
138
+ const onChange = (e) => setResponse(e.target.value);
139
+
140
+ return html`
141
+ <form class=${form} onSubmit=${onSubmit}>
142
+ <label htmlFor=${prompt + " prompt"}>
143
+ ${prompt || "Enter your guess"}:
144
+ </label>
145
+ <input
146
+ class=${input}
147
+ id=${prompt + " prompt"}
148
+ onChange=${onChange}
149
+ required
150
+ type="text"
151
+ value=${response}
152
+ />
153
+ <button type="submit">Submit</button>
154
+ </form>
155
+ `;
156
+ };
157
+
158
+ /**
159
+ * Check answer button, rendered at top of page.
160
+ */
161
+ const CheckButton = ({ prompts }) => {
162
+ const [open, setOpen] = React.useState(false);
163
+ const [feedback, setFeedback] = React.useState("Call in an answer.");
164
+
165
+ const wrapper = css`
166
+ font-family: "PT Sans", sans-serif;
167
+ font-size: 16px;
168
+ font-size: clamp(16px, 2.4vw, 21px);
169
+ height: 2.5em;
170
+
171
+ button {
172
+ background: #555;
173
+ border: none;
174
+ border-radius: 2px;
175
+ color: #fff;
176
+ cursor: pointer;
177
+ display: inline-block;
178
+ font-size: 1em;
179
+ font-family: "PT Sans", sans-serif;
180
+ font-weight: bold;
181
+ line-height: 1.2;
182
+ padding: 0.25em 1em;
183
+ text-align: center;
184
+ text-decoration: none;
185
+ text-transform: none;
186
+ }
187
+
188
+ p {
189
+ margin: 0 0 1em;
190
+ }
191
+
192
+ a {
193
+ color: inherit !important;
194
+ }
195
+ `;
196
+
197
+ const btnTop = [2015, 2016].includes(getYear())
198
+ ? "50px"
199
+ : [2012].includes(getYear())
200
+ ? "-2.5em"
201
+ : "0px";
202
+
203
+ const button = css`
204
+ box-sizing: border-box;
205
+ height: 2.5em;
206
+ left: 0;
207
+ position: absolute;
208
+ top: ${btnTop};
209
+ width: 100%;
210
+ z-index: 9999;
211
+ `;
212
+
213
+ const dropdownWrapper = css`
214
+ background: #edeff0;
215
+ color: #121212;
216
+ left: 0;
217
+ position: absolute;
218
+ right: 0;
219
+ top: calc(2.5em + ${btnTop});
220
+ z-index: 9999;
221
+ `;
222
+
223
+ const dropdown = css`
224
+ margin: 0 auto;
225
+ max-width: 40em;
226
+ padding: 1em;
227
+ z-index: 9999;
228
+ `;
229
+
230
+ const responses = css`
231
+ margin: 0 auto;
232
+ width: fit-content;
233
+
234
+ @media (max-width: 600px) {
235
+ width: auto;
236
+ }
237
+ `;
238
+
239
+ const onClick = () => setOpen(!open);
240
+
241
+ const body =
242
+ prompts.length > 0
243
+ ? prompts.map(
244
+ (group) =>
245
+ html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />`
246
+ )
247
+ : html`<p>
248
+ No answers found on this page. Please report this to${" "}
249
+ <a href="mailto:puzzle@mit.edu">puzzle@mit.edu</a>.
250
+ </p>`;
251
+
252
+ return html`
253
+ <style>
254
+ @import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");
255
+
256
+ ${[2015, 2016].includes(getYear()) &&
257
+ ".navbar-fixed-top { z-index: 10000 }"}
258
+ ${[2012].includes(getYear()) &&
259
+ "body { top: 2.5em } #check-answer, #shortcuts { z-index: 10000 !important }"}
260
+ ${[2006].includes(getYear()) && 'img[alt="Check Answer"] { display: none }'}
261
+ </style>
262
+ <div class=${wrapper}>
263
+ <button class=${button} onClick=${onClick}>
264
+ Check your answers spoiler-free
265
+ </button>
266
+ ${open &&
267
+ html`
268
+ <div class=${dropdownWrapper}>
269
+ <div class=${dropdown}>
270
+ <p>${feedback}</p>
271
+ <div class=${responses}>${body}</div>
272
+ </div>
273
+ </div>
274
+ `}
275
+ </div>
276
+ `;
277
+ };
278
+
279
+ const data = await getData();
280
+ const prompts = getAnswers(data, document.URL);
281
+ render(html`<${CheckButton} prompts=${prompts} />`, container);
benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2003/2003_www.acme-corp.com_teamGuest_Training_tp-e.html/football.html ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
5
+ <META NAME="Author" CONTENT="AcmeCorp">
6
+ <META NAME="GENERATOR" CONTENT="Document Archivists">
7
+ <TITLE>Whoa--I Know Football!</TITLE>
8
+ </HEAD>
9
+ <BODY BGCOLOR="#ffffff">
10
+
11
+ <h2>T Puzzle: Whoa--I Know Football!</h2>
12
+ <h3>by Jenn Cunningham</h3>
13
+
14
+ <p>
15
+
16
+ This puzzle is the second half of Super Bowl XXXVI. The letters represent each time the Patriots have the ball (including punt returns and kickoffs) . Each letter is advanced or rolled back by the net gain or loss of the play.
17
+
18
+ <p>
19
+
20
+ The play-by-play, taken from <a href="http://scores.nfl.com/scores/2001/week21/playbyplay/NFL_20020203_STL@NE.htm">http://scores.nfl.com/scores/2001/week21/playbyplay/NFL_20020203_STL@NE.htm</a>, gives the net gain or loss on each play.
21
+
22
+ <p>
23
+
24
+ <table border="1">
25
+ <tr><th>Letter Given</td><th>Yards gained/lost</td><th>Answer</td></tr>
26
+
27
+ <tr><td>K</td><td>35</td><td>T</td></tr>
28
+ <tr><td>Y</td><td>9</td><td>H</td></tr>
29
+ <tr><td>S</td><td>12</td><td>E</td></tr>
30
+ <tr><td>P</td><td>0</td><td>P</td></tr>
31
+ <tr><td>Y</td><td>-4</td><td>U</td></tr>
32
+ <tr><td>R</td><td>8</td><td>Z</td></tr>
33
+ <tr><td>Y</td><td>27</td><td>Z</td></tr>
34
+ <tr><td>H</td><td>4</td><td>L</td></tr>
35
+ <tr><td>N</td><td>17</td><td>E</td></tr>
36
+ <tr><td>E</td><td>22</td><td>A</td></tr>
37
+ <tr><td>I</td><td>5</td><td>N</td></tr>
38
+ <tr><td>R</td><td>1</td><td>S</td></tr>
39
+ <tr><td>W</td><td>0</td><td>W</td></tr>
40
+ <tr><td>U</td><td>36</td><td>E</td></tr>
41
+ <tr><td>N</td><td>30</td><td>R</td></tr>
42
+ <tr><td>R</td><td>11</td><td>C</td></tr>
43
+ <tr><td>E</td><td>-4</td><td>A</td></tr>
44
+ <tr><td>E</td><td>0</td><td>E</td></tr>
45
+ <tr><td>L</td><td>7</td><td>S</td></tr>
46
+ <tr><td>P</td><td>37</td><td>A</td></tr>
47
+ <tr><td>A</td><td>69</td><td>R</td></tr>
48
+ <tr><td>P</td><td>29</td><td>S</td></tr>
49
+ <tr><td>F</td><td>2</td><td>H</td></tr>
50
+ <tr><td>C</td><td>6</td><td>I</td></tr>
51
+ <tr><td>F</td><td>0</td><td>F</td></tr>
52
+ <tr><td>S</td><td>53</td><td>T</td></tr>
53
+ <tr><td>H</td><td>-2</td><td>F</td></tr>
54
+ <tr><td>K</td><td>4</td><td>O</td></tr>
55
+ <tr><td>R</td><td>3</td><td>U</td></tr>
56
+ <tr><td>N</td><td>30</td><td>R</td></tr>
57
+ <tr><td>L</td><td>15</td><td>A</td></tr>
58
+ <tr><td>I</td><td>5</td><td>N</td></tr>
59
+ <tr><td>V</td><td>8</td><td>D</td></tr>
60
+ <tr><td>R</td><td>0</td><td>R</td></tr>
61
+ <tr><td>T</td><td>11</td><td>E</td></tr>
62
+ <tr><td>V</td><td>0</td><td>V</td></tr>
63
+ <tr><td>H</td><td>23</td><td>E</td></tr>
64
+ <tr><td>L</td><td>6</td><td>R</td></tr>
65
+ <tr><td>S</td><td>0</td><td>S</td></tr>
66
+ <tr><td>I</td><td>22</td><td>E</td></tr>
67
+ </table>
68
+
69
+ <p>
70
+
71
+ The answer is CAESAR SHIFT FOUR AND REVERSE.
72
+
73
+ </BODY>
74
+ </HTML>
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Documentation~/images/SpriteTab_order.png ADDED

Git LFS Details

  • SHA256: 3d87e16e40523734edffa92cc93a01dcf75371c4730f358f60202b3c97b0e14a
  • Pointer size: 130 Bytes
  • Size of remote file: 78.7 kB