diff --git a/.gitattributes b/.gitattributes index a97e9f183754b84515240aba7f2ba7b098083f4c..19b1525356ea028dcb3fad9102f032a586664059 100644 --- a/.gitattributes +++ b/.gitattributes @@ -805,3 +805,5 @@ benchmark/science_bowl/MS-Sample-Questions/Sample-Set-7/MS_Round-1.pdf filter=lf benchmark/science_bowl/MS-Sample-Questions/Sample-Set-6/Round8.pdf filter=lfs diff=lfs merge=lfs -text benchmark/science_bowl/MS-Sample-Questions/Sample-Set-7/MS_Round-13.pdf filter=lfs diff=lfs merge=lfs -text benchmark/science_bowl/MS-Sample-Questions/Sample-Set-7/MS_Round-11.pdf filter=lfs diff=lfs merge=lfs -text +benchmark/IEO/pdfs/AR_2026.pdf filter=lfs diff=lfs merge=lfs -text +benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/Artifacts/07/07a25769e4683136426e383407b29b29 filter=lfs diff=lfs merge=lfs -text diff --git a/benchmark/IEO/pdfs/AR_2026.pdf b/benchmark/IEO/pdfs/AR_2026.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bdbbbd01c8640c2281121c8f3464b2b1cbb7bc88 --- /dev/null +++ b/benchmark/IEO/pdfs/AR_2026.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad1668c8a46525308185e0341c1558bc4325628b92520611c2ebadb3569b00b0 +size 526881 diff --git a/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/364.mat.pt b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/364.mat.pt new file mode 100644 index 0000000000000000000000000000000000000000..0d0358b35d4b9c4eaa56b38a23e51df9db0b4247 --- /dev/null +++ b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/364.mat.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8884b5e76a4d58e37ceafd766111af0756edfda407b0483477159a74ebbd82e8 +size 507932 diff --git a/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/365.mat.pt b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/365.mat.pt new file mode 100644 index 0000000000000000000000000000000000000000..77c5b4a5db1ea17775a2529135b51531c6e91455 --- /dev/null +++ b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/365.mat.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43264f777eef40a97f712b604ec95cf96b3de25a3f1a6d9290efb31033c2ae4a +size 507937 diff --git a/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/367.mat.pt b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/367.mat.pt new file mode 100644 index 0000000000000000000000000000000000000000..ff2ae109ab96b4d5cc82b3d1bcba5be3c0fed3e8 --- /dev/null +++ b/benchmark/IOAI/IOAI-2025/At-Home-Round/Radar/validation_set/367.mat.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c528bcd3b8e2edd1b9fd076fe5065da02e1e1955fe463e3f4d69dcb0fb3ce78 +size 507932 diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame.html new file mode 100644 index 0000000000000000000000000000000000000000..57efe3277a667beed17787d384bc5956c64e6786 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame.html @@ -0,0 +1,44 @@ + + +Mystery Hunt 2000 + + + + + + + + + + Back to hunt +

+ +

Endgame

+ +
+ +
+After solving all of the metapuzzles, a team would receive the +endgame puzzle: +
+ +

+In the following code, each letter stands for a digit, and each three

+digit number represents a letter from one of the puzzle solutions from

+earlier in the hunt. For example, 352 would be the 2nd letter of

+Puzzle 3.5. Good luck... your goal may be just around the corner...

+

+  ARA ULT TAR ETA RLS AMU TUR ESS

+  UEA RMT UAU ALA

+  TSA UUU ELM UMU

+  RRR TTT AAA EEE

+  TEA UTE ERT TRR ABM AER RSR

+  ASU REE TBM USR EAB TMA RTU EUT

+
+ +Endgame Solution + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame_solution.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame_solution.html new file mode 100644 index 0000000000000000000000000000000000000000..56c2aef8e9a0d83aa251ae1c888fbde25aaca3b4 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/endgame_solution.html @@ -0,0 +1,63 @@ + + +Mystery Hunt 2000 + + + + + + + + + + Back to hunt +

+ +

Endgame (Solution)

+ +
+ +
+Author: Dan Katz
+
+  ARA ULT TAR ETA RLS AMU TUR ESS
+  UEA RMT UAU ALA
+  TSA UUU ELM UMU
+  RRR TTT AAA EEE
+  TEA UTE ERT TRR ABM AER RSR
+  ASU REE TBM USR EAB TMA RTU EUT
+
+A=1
+T=2
+U=3
+E=4
+R=5
+M=6
+S=7
+L=8
+B=9
+
+ A   P   P   R   O   A   C   H
+151 328 215 421 587 163 235 477
+
+ R   O   O   M
+341 562 313 181
+
+ B   A   U   M
+271 333 486 363
+
+ C   O   I   N
+555 222 111 444
+
+ B   E   N   E   A   T   H
+241 324 452 255 196 145 575
+
+ G   R   E   E   N   E   R   Y
+173 544 296 375 419 261 523 432
+
+Iterating the cipher once more, BAUM = 9-136
+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..cd6706c9a8469395953765a4501261f794989bf5 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_endgame.html/index.html @@ -0,0 +1,111 @@ + + + + + 2000 Mystery Hunt · MIT Mystery Hunt / Puzzle Club + + + + + + + + + + + +
+ +

Archives / 2000 Mystery Hunt

+ +

Description

+

The 2000 Mystery Hunt was based on Wizard of Oz and asked teams to help guide Dorothy back +home using the Tornado-Operated Object Levitator (T.O.O.L.), which required a coin for its operation.

+

The coin was found at 2:18am on Sunday by Paintttniap, in a planter outside 9-136.

+ +

Credits

+The 2000 Mystery Hunt was written by Roger Barkan, Jennifer Berk, Jamie Coffin, Jed Goldstone, Heather Handley, Ann Jones, Ray Jones, Dan Katz, Kiran Kedlaya, Rose Koch, Brian Litofsky, Christopher Long, Catherine Moore, Chris Morse (Captain), Darren Rigby, Dave Savitt, and Brian Tivol. + +

The Hunt Introduction

+ +

Welcome to MH2K! (That's Mystery Hunt 2000 for those of you +are acronymatically challenged.) This year, your puzzle-solving +skills are sorely needed in order to help our hero, Dorothy Gale, +return to her monochromatic homeland.

+ +

The Munchkin Information Processing Board (MIPB) has offered +to help Dorothy get home through the use of their newly designed +Tornado-Operated Object Levitator (T.O.O.L.) Unfortunately, as a +consequence of inventive eccentricity, the T.O.O.L. can only be +operated with a special coin, and nobody on MIPB can remember where +they left it. Your goal is to recover this coin.

+ +

Fortuitously, you have a powerful computer system to aid you +in your search. MIPB possesses a highly advanced network +affectionately known as the Wonderfully Intelligent Zenith of All +Recovery Devices (W.I.Z.A.R.D.) that should be able to scan the +campus and trace the location of the coin. However, Wendy the +Insidiously Tyrannical Computer Hacker (W.I.T.C.H.) has installed a +series of password blocks into W.I.Z.A.R.D. and no one knows how to +access its higher functions.

+ +

It is known that W.I.T.C.H. has a careless habit of inadvertently +leaving clues to her passwords around the MIT campus. Rather than make +you look for them, Dorothy has graciously volunteered to brave the +wild jungles of MIT in search of W.I.T.C.H.'s trail of devious +puzzles, taking a pocket W.I.Z.A.R.D. terminal with her that will +automatically record her adventures and post them online. Some of her +adventures may bring her into contact with some familiar faces; it +seems she's not the only one who had a recent run-in with a +tornado....

+ +

You, the remote solving team, must solve W.I.T.C.H.'s puzzles, and +extract from them a username and password, which will grant you access +to the appropriate puzzles to deduce the second username and password, +and so forth. Stay in contact with MIPB regarding your progress; they +are working together with you to discover the coin, and they'll be +glad to TRY to help you if you have questions.

+ +

Good luck, keep your wits about you, and remember: There's no +place like hell.

+ +

The Hunt and Solutions (linked)

+ + +

Photos

+

The photos below were accompanied by the following announcement: Insidious news! Bitter about the coin they lost last year, Carmen and her gang have caught up with Dorothy and are preparing to exact a cruel revenge. Film at 11.

+ +
+

+

+

+

+
+ +
+ + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..6ba136feef1cf7e9bce9ceba8ba68714a2b72298 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Puzzle.html @@ -0,0 +1,70 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.9 + + + + + + + + +

+ + +1.9: Oh, to be in DC + +

+Back to hunt | Back to puzzle set +
+ +
+ + + +Dorothy went to see a W.I.Z.A.R.D. system administrator for some help getting into +the system, only to find the +following note posted on her door:

+ +

+I'm on vacation this month. My itinerary is below; if you need to +get in touch with me, the standard people in each country will +have my address.
+
+ +
+ +
+
+TW 96 Friday, Jan 7 7:00 AM - 11:52 AM
+LI 311 Friday, Jan 7 1:45 PM - 2:20 PM
+LI 351 Friday, Jan 7 3:50 PM - 4:25 PM
+
+Lodging: Seaview Hotel
+
+IW 343  Wednesday, Jan 12 3:35 PM - Thursday, Jan 13 6:50 AM
+TK 1828 Thursday, Jan 13 4:05 PM - Thursday, Jan 13 8:30 PM
+TK 1386 Thursday, Jan 13 10:45 PM - Friday, Jan 14 3:05 AM
+
+Lodging: Hotel Victoria
+
+SR 3495 Sunday, Jan 16. 4:40 AM - 6:10 AM
+TG 971 Sunday, Jan 16. 1:30 PM - 6:10 AM
+TG 690 Monday, Jan 17  8:20 AM - 9:30 AM
+
+Lodging: Belvedere Hotel
+
+VN 820 Thursday, Jan 20 12:30 PM - 1:40 PM
+VN 924 Thursday, Jan 20 3:00 PM - 7:15 PM
+AA 7408 Thursday, Jan 20 11:30 PM - 6:15PM
+AA 198 Thursday, Jan 20 10:00 PM - Friday, Jan 21 6:34 AM
+
+
+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Solution.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Solution.html new file mode 100644 index 0000000000000000000000000000000000000000..5f6242c1fc9604a8c52a6656cf027af6e69984ca --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/Solution.html @@ -0,0 +1,59 @@ + + + + + + +Mystery Hunt 2000, Set 1 Metapuzzle (Solution) + + + + + + + + +

+ + +Set 1 Metapuzzle (Solution) + +

+Back to hunt | Back to puzzle set +
+ + + +
+Author: Brian Tivol
+
+The answers to the eleven puzzles can be arranged to form two fairly
+long chains:
+
+1.10          EMERGENT
+1.3     	  GENTLE
+1.6     	      LEAN
+1.9     		ANGELA
+1.4     		  GELATIN
+            
+1.8     			 MANAGE
+1.5     			    AGES
+1.7     			       SIGNOR
+1.1     				IGNORANT
+1.2     				     ANTHER
+1.11    					HERALD
+
+TIN MAN would join the two chains together.  EMERALD is what you get
+when you cross out every duplicated letter.  Those two words are our
+username and password for this round.
+
+(This was probably the easiest round for backsolving answers.
+However, one team had noticed the pattern, figured that EMERALD must
+be the password, and tried to backsolve some of the words in the
+middle of the chain.  They determined that the GENTLE and IGNORANT
+must be connected by LEMONS and MONSIGNOR; if that didn't completely
+leave four other words in the cold, it would have been beautiful.)
+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/asset_index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/asset_index.html new file mode 100644 index 0000000000000000000000000000000000000000..cd6706c9a8469395953765a4501261f794989bf5 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/asset_index.html @@ -0,0 +1,111 @@ + + + + + 2000 Mystery Hunt · MIT Mystery Hunt / Puzzle Club + + + + + + + + + + + +
+ +

Archives / 2000 Mystery Hunt

+ +

Description

+

The 2000 Mystery Hunt was based on Wizard of Oz and asked teams to help guide Dorothy back +home using the Tornado-Operated Object Levitator (T.O.O.L.), which required a coin for its operation.

+

The coin was found at 2:18am on Sunday by Paintttniap, in a planter outside 9-136.

+ +

Credits

+The 2000 Mystery Hunt was written by Roger Barkan, Jennifer Berk, Jamie Coffin, Jed Goldstone, Heather Handley, Ann Jones, Ray Jones, Dan Katz, Kiran Kedlaya, Rose Koch, Brian Litofsky, Christopher Long, Catherine Moore, Chris Morse (Captain), Darren Rigby, Dave Savitt, and Brian Tivol. + +

The Hunt Introduction

+ +

Welcome to MH2K! (That's Mystery Hunt 2000 for those of you +are acronymatically challenged.) This year, your puzzle-solving +skills are sorely needed in order to help our hero, Dorothy Gale, +return to her monochromatic homeland.

+ +

The Munchkin Information Processing Board (MIPB) has offered +to help Dorothy get home through the use of their newly designed +Tornado-Operated Object Levitator (T.O.O.L.) Unfortunately, as a +consequence of inventive eccentricity, the T.O.O.L. can only be +operated with a special coin, and nobody on MIPB can remember where +they left it. Your goal is to recover this coin.

+ +

Fortuitously, you have a powerful computer system to aid you +in your search. MIPB possesses a highly advanced network +affectionately known as the Wonderfully Intelligent Zenith of All +Recovery Devices (W.I.Z.A.R.D.) that should be able to scan the +campus and trace the location of the coin. However, Wendy the +Insidiously Tyrannical Computer Hacker (W.I.T.C.H.) has installed a +series of password blocks into W.I.Z.A.R.D. and no one knows how to +access its higher functions.

+ +

It is known that W.I.T.C.H. has a careless habit of inadvertently +leaving clues to her passwords around the MIT campus. Rather than make +you look for them, Dorothy has graciously volunteered to brave the +wild jungles of MIT in search of W.I.T.C.H.'s trail of devious +puzzles, taking a pocket W.I.Z.A.R.D. terminal with her that will +automatically record her adventures and post them online. Some of her +adventures may bring her into contact with some familiar faces; it +seems she's not the only one who had a recent run-in with a +tornado....

+ +

You, the remote solving team, must solve W.I.T.C.H.'s puzzles, and +extract from them a username and password, which will grant you access +to the appropriate puzzles to deduce the second username and password, +and so forth. Stay in contact with MIPB regarding your progress; they +are working together with you to discover the coin, and they'll be +glad to TRY to help you if you have questions.

+ +

Good luck, keep your wits about you, and remember: There's no +place like hell.

+ +

The Hunt and Solutions (linked)

+ + +

Photos

+

The photos below were accompanied by the following announcement: Insidious news! Bitter about the coin they lost last year, Carmen and her gang have caught up with Dorothy and are preparing to exact a cruel revenge. Film at 11.

+ +
+

+

+

+

+
+ +
+ + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/hint1.txt b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/hint1.txt new file mode 100644 index 0000000000000000000000000000000000000000..9bc7351e580a7366fc3822f1baa008209d3df89c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/hint1.txt @@ -0,0 +1,9 @@ +HINT 1 + +VICTOR +THEODORE +DAMASCUS +MARTIN +ADRIAN +SOTER + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/index.html new file mode 100644 index 0000000000000000000000000000000000000000..11fb35833ba24ec92a1089da27dc3c72a1328669 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/solution1.txt b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/solution1.txt new file mode 100644 index 0000000000000000000000000000000000000000..6ffe470609e2ec4b7e0743fbe93bef51b29faa45 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/solution1.txt @@ -0,0 +1,15 @@ +HINT 1 Solution + +Author: Chris Morse + +The names are all of popes. If you look at the Nth letter of their +name, where N is the number of the last pope to use that name: + +VICTOR III +THEODORE II +DAMASCUS II +MARTIN V +ADRIAN VI +SOTER I + +you get the answer CHAINS diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/survey.txt b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/survey.txt new file mode 100644 index 0000000000000000000000000000000000000000..bea6442560f03c93420e9ab12c218a57a0967fca --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1/survey.txt @@ -0,0 +1,40 @@ + +We hope you aren't tired of answering our questions, but there is one +last set we'd like you to try out. Your comments will help future +Hunts from succumbing to our pitfalls and possibly give us a warm +fuzzy feeling inside. You can answer either as teams or individuals, +as you see fit. + +1. What is your team's name? + +2. How many years has your team competed in the Mystery Hunt? How + many full-time solvers and how many come-and-go solvers were on + your team? + +3. What are your overall impressions of this year's Hunt? + +4. Do you feel as if you'd want to return next year? + +5. Did you feel there were any administrative or logistical problems + this year that future organizers could be warned about? + +6. Is there a specific member of MIPB you'd like to send a message to? + Is there a specific puzzle whose creator you'd like to send a + message to? + +7. Which puzzles did you find to be... + ...the most enjoyable? + ...the least enjoyable? + ...(in)elegant? + ...(un)memorable? + ...conducive to silly quotes? + (Feel free to list more than one for each category; extra comments + appreciated.) + +8. What sorts of comments worthy of preservation and ridicule did your + team members blurt out? Do you have any comic stories worth + retelling? + +9. Do you have any other generic comments? + +Please send surveys to puzzle@mit.edu. diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..f4972484d275ceb23724d8b7c6460be98eed6d7c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/Puzzle.html @@ -0,0 +1,50 @@ + + + + + +Mystery Hunt 2000, Puzzle 1.10 + + + + + + + + +

+ + +1.10: Ad-verse Opinion + +

+Back to hunt | Back to puzzle set +
+ +
+ + + +Dorothy wandered down the infinite corridor, trying doorknobs and +looking for anything that might help her find her way. She +finally came to a door labelled "C M Vest" that was open. She +opened the door and cautiously looked around the office to see what +there was to see. Nothing useful appeared to get accomplished in this office. +Perhaps now she knew why -- on the computer screen was this hideous +example of poetry. Was this what he did all day? + +
+ + + + +I'll craft a homily, I'll test in fear
+In a daze my dear face you'll see
+Inky fate teases you, no rest you'll get
+Upon a sweet defeat you join greater ill
+You fear a million ill faces as fated
+You are acceded no minion, dared no rest
+You were saved on fast craft tagged Joy
+Jolly, greatest test ever in staged phony ploy
+ + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_10_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..4f21d481217621190c505737ed1bc821d4a1ef6e --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/Puzzle.html @@ -0,0 +1,108 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.11 + + + + + + + + + +

+ + +1.11: Primate Conflict + +

+Back to hunt | Back to puzzle set +
+ +
+ + +

+Wandering about the 'tute, Dorothy's mind wandered as +well and she reminisced about the attack by the flying +monkeys. Even though she was pretty sure it wouldn't +happen here, she started to think of some other famous +battles.... +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Battle of Wakefield +
Battle of Kirina +
 
Battle of Mortimer's Cross +
Battle of Arsuf +
 
Battle of Blood River +
Siege de Toulon +
 
Battle of Nancy +
Battle of Stirling +
 
Battle of Granicus River +
Battle of Delion +
 
Battle of Minatogawa +
Battle of Hastings  +
 
Battle of Hungna +
Battle of Cesme +
 
Battle of Leipzig +
Battle of Gravelines +
 
Battle of Kasserine Pass +
Battle of Manila Bay +
 
Naval Battle of La Rochelle +
Conquest of Lisboa +
 
Battle of Talikota +
Battle of Aljubarrota +
 
Battle of Manzikert +
Battle of Guadelete +
 
+ + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_11_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..ae337abc508d48dfff96ae76be44eb3245bee2d6 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/Puzzle.html @@ -0,0 +1,85 @@ + + + + + +Mystery Hunt 2000, Puzzle 1.1 + + + + + + + + +

+ +1.1: Alternatives + +

+Back to hunt | Back to puzzle set +
+ +
+ +"Gosh, Lion, the course offerings at MIT really do run the gamut, don't they?"

+"Darn right they do. So many choices," fretted the Lion. "How will I ever decide?" + +

+ + +Abidjan resident +
+Bouffant or beehive sources +
+Colorado ski resort +
+Deficient in ethical principles +
+External wall covering +
+Fitness freak Richard +
+Gibbon of Sumatra +
+Horse outfitter +
+Interjection expressing happiness +
+Jealous, desirous person +
+Kid's shoebox project +
+Lupanar, in slang +
+Make happen +
+Negative terminal, in an electrolytic cell +
+One-time Princess of Wales +
+Prima donna +
+Quantum mechanics pioneer Eugene +
+Redolent +
+Store temporarily, as a web page +
+Toiler +
+Unnecessary or excessive chatter +
+Vocal ensemble +
+Will it play there? +
+Xiamen, Vientiane or Jaipur native +
+"You Make Me Feel Like Dancing" singer +
+Zaian or Zemmour tribe member + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_1_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..f7a76d8b817f997067a1d23af6cdd56f4a29dabd --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/Puzzle.html @@ -0,0 +1,72 @@ + + + + + +Mystery Hunt 2000, Puzzle 1.2 + + + + + + + + +

+ +1.2: Recommended Reading + +

+Back to hunt | Back to puzzle set +
+ +
+ +Dorothy marveled at the Scarecrow's collection. "Scarecrow, you sure have +been reading a lot lately!"

+ +"Absolutely! See, after I failed 18.01 I decided to switch from +mechanical engineering to literature."

+ +"You failed 18.01? Is that Pythagorean theorem still giving you trouble?" +

+ +"Don't remind me. Course 21 is much easier, you see: +writers use a lot of words but end up +not saying very much." +

+"Oh, you mean the way you do?" +

+The Scarecrow glared at Dorothy in disapproval. + +

+ +

+

+---- -- - ---- -- - ---- -- - ----. (1913)

+A  A

+

+

+-- --- --- ---- -- -----, -- --- --- ----- -- -----, ... (1859) 

+       AA                        BB

+

+

+--- ----- -- -- ------ - -----, --- ----- -- -- ------ - -----. (1923)

+              B              A             A

+

+

+--- ---- -- ---- ---- ---, --- ---- -- ---- ----, --- ---- -- ----- ---- --- ... (1954)

+ A                      B

+

+

+------ -- -----, ----- ------, ... (1820) 

+   BB  B  A

+

+

+---- - ------, ---- - ------, ---- - ------ ------, ... (1854) 

+A                                           BB

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_2_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..77d5ffe4465268237dd28ae4ece52cc7e3b11666 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/Puzzle.html @@ -0,0 +1,75 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.3 + + + + + + + + +

+ + +1.3: Dorothy Helps a Hack + +

+Back to hunt | Back to puzzle set +
+ +
+ + + "What if he looks up?" Dorothy whispered, pointing at the CP who + just wandered into Lobby 7.

+ + "They never look up," said Jack, taking advantage of an opening by + planting a vicious cherry bomb at Dorothy's feet. "You're out, + Dorothy." Dorothy sighed and got back in line.

+ + Once James took Dorothy's spot on the playing field, J. Arthur +stepped on + the court. "Hey!" he called out to the CP, "little help?"

+ + The CP chuckled at the simple game and moved on, never looking up, + never noticing Thomas and Sigmund high above as they hung a large + banner inside the Little Dome with the following two dozen phrases + scrawled on it...

+ +

+ +

+ACME rival

+Creator of lightbulbs?

+Custard

+Even funnier than LOL :-)

+Gray, for one

+He did it, she did it

+Jejuna followers

+Judy Garland, for one

+Kelsey's co-star

+Loyal to the Scottish

+Mimic

+Protected

+Rosalind, Margaret, or Kip

+Seat of Malheur County

+Senator's right hand

+Separates a Man from his Mancha

+She is in Spain?

+Sheindlin's rival

+Special group or band

+Strumpet

+Type of office

+WGBH production

+Wayne portrayer

+Wicked

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_3_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..50412c12252fc353a4d5928712068b9140ba8f6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/Puzzle.html @@ -0,0 +1,42 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.4 + + + + + + + + +

+ +1.4: Winds of Confusion + +

+Back to hunt | Back to puzzle set +
+ +
+ + + +

Whooooshhh!!!!! Suddenly an eerie but somehow heartening strong gust +of wind blew by Dorothy. Mussing up her skirt and making +her go into a tizzy, she had to sit down. After recovering, Dorothy +looked about and saw that the breeze brought the following on a piece of +paper. +

+ +
  +
  +
+
+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_4_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..7891bf18649b32dc35f07fba059de400cf54bc18 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/Puzzle.html @@ -0,0 +1,120 @@ + + + + + +Mystery Hunt 2000, Puzzle 1.5 + + + + + + + + +

+ +1.5: Battleships In Space! + +

+Back to hunt | Back to puzzle set +
+ +
+ + "You know," a nervous, stammering fellow told Dorothy, "you're not + the only film character to ever attend MIT. I myself hail from MIT and + I was able to stave off an alien invasion with my trusty Powerbook!" + +
+ +

+

+For centuries, aliens have been floating over our countryside, spying

+intently on the letters beneath them, occasionally replacing one of

+our letters with one of their insidious "crop-circle" hieroglyphics.

+(Well, except for "Z"; they don't seem to be too interested in "Z".)

+

+We now believe that they are readying their forces for an all-out

+strike on several continents, devastating our way of writing and

+confusing schoolchildren of all nations.  Only by finding every hidden

+ship and cracking their secret code will you be able to preserve our

+precious alphabet!

+

+A single 4x1x1 alien battleship, two 3x1x1 alien cruisers, three 2x1x1

+alien destroyers, and four 1x1x1 alien surveillance pods are all

+hiding out in each section of space below.  Each segment of a ship

+occupies a single cell.  Ships do not touch each other, even

+diagonally.  The numbers along the back panels reveal the total number

+of ship segments in each row.

+

+

+            | 0  1  0  0  4                 | 1  0  1  1  1

+          1 |                             3 |

+        1   |                           1   |

+      1     | 3  1  1  0  0           0     | 0  1  0  2  0

+    1     1 |                       0     0 |

+  1     0   |                     0     0   |

+      1     | 0  1  0  1  0           0     | 1  2  0  1  0

+    1     1 |                       1     0 |

+  2     1   |                     2     1   |

+      0     | 0  1  0  1  0           2     | 0  1  0  1  0

+    0     0 |                       0     0 |

+  0     0   |                     1     0   |

+      0     | 2  1  2  0  1           0     | 3  1  1  0  2

+    2     3 |_______________        1     2 |_______________

+  0     2  ,'                     1     3  ,'

+      0  ,'  A  B  C  D  E            1  ,'  A  B  C  D  E

+    1  ,'  F  G  H  I  J            0  ,'  F  G  H  I  J

+  0  ,'  K  L  M  N  O            1  ,'  K  L  M  N  O

+   ,'  P  Q  R  S  T               ,'  P  Q  R  S  T

+  '  U  V  W  X  Y                '  U  V  W  X  Y

+

+

+            | 1  2  1  1  0                 | 3  1  0  1  1

+          1 |                             1 |

+        0   |                           0   |

+      1     | 1  0  0  1  0           1     | 1  0  0  1  0

+    0     1 |                       0     1 |

+  3     1   |                     4     1   |

+      0     | 2  2  0  1  0           0     | 4  0  0  1  0

+    0     1 |                       0     1 |

+  0     0   |                     0     0   |

+      1     | 1  1  0  2  0           1     | 1  0  1  1  1

+    1     2 |                       2     4 |

+  2     1   |                     1     0   |

+      1     | 0  2  1  0  1           0     | 0  2  0  1  0

+    0     0 |_______________        0     0 |_______________

+  0     0  ,'                     0     0  ,'

+      1  ,'  A  B  C  D  E            1  ,'  A  B  C  D  E

+    1  ,'  F  G  H  I  J            2  ,'  F  G  H  I  J

+  2  ,'  K  L  M  N  O            0  ,'  K  L  M  N  O

+   ,'  P  Q  R  S  T               ,'  P  Q  R  S  T

+  '  U  V  W  X  Y                '  U  V  W  X  Y

+

+

+            | 0  1  0  1  2                 | 0  2  0  4  0

+          1 |                             0 |

+        0   |                           1   |

+      1     | 0  1  0  1  2           2     | 0  1  0  0  0

+    0     1 |                       1     0 |

+  2     1   |                     2     0   |

+      1     | 1  0  1  1  2           1     | 2  1  0  1  0

+    0     1 |                       0     2 |

+  1     0   |                     0     1   |

+      1     | 2  1  1  0  1           0     | 2  0  0  1  0

+    0     2 |                       0     0 |

+  3     0   |                     1     0   |

+      1     | 0  0  2  0  0           1     | 3  0  1  1  1

+    0     0 |_______________        1     1 |_______________

+  2     0  ,'                     1     3  ,'

+      0  ,'  A  B  C  D  E            1  ,'  A  B  C  D  E

+    1  ,'  F  G  H  I  J            0  ,'  F  G  H  I  J

+  1  ,'  K  L  M  N  O            1  ,'  K  L  M  N  O

+   ,'  P  Q  R  S  T               ,'  P  Q  R  S  T

+  '  U  V  W  X  Y                '  U  V  W  X  Y

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_5_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..83ed5ff59afbdddfc1ca4fd4402202d52ddfa22c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/Puzzle.html @@ -0,0 +1,48 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.6 + + + + + + + + +

+ + +1.6: Secular Fun with Pentagrams + +

+Back to hunt | Back to puzzle set +
+ +
+ + +Strolling confusedly through the buildings of MIT, Dorothy found +herself in Building 5, staring at a wall which had "IHTFP" spray +painted on the wall in large red letters. "How strange..." she thought +out loud, and was answered by a student who popped his head out of a +door. "Not at all, really. This is building five. We loooove things +that come in fives! Especially groups of five letters! Just take a look +at our motto!" He gestured toward an inscription along the ceiling. +Dorothy looked at it and frowned, more confused than ever. + +
+ +

+

+CODDD NAANA PEBNB FEBDC RGGRE PEPEG IKIII ODODD SAKTA ACCHC SDFHD DDODD 

+OCKMC JAPAA ONNOO TTOPP EPPPP ANMNM OLPNM EHEFI NMNMN UWCXC TTTTP SBBTS 

+KRRRT RUQTS

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_6_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..eaa59eb7c5e64ae7530e38e5dcc6868358f7f478 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/Puzzle.html @@ -0,0 +1,74 @@ + + + + + +Mystery Hunt 2000, Puzzle 1.7 + + + + + + + + +

+ +1.7: Mumbo-Jumbo + +

+Back to hunt | Back to puzzle set +
+ +
+ +Dorothy and the Lion sat in the back of the lecture hall, while the professor gesticulated +wildly and spoke incomprehensibly. "Impressive, isn't it?" whispered Dorothy.

+ +"Not in the slightest," replied the Lion. "That professor may use a lot of big mumbo-jumbo +words, but I hear he's just a big phony." + +

+ +

+

+Larry Appleton:

+  ,---. ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   | |   |

+  |  3| |  4| |  3| |  1| |   |

+  `---' `---' `---' `---' `---'

+

+Bart Simpson:

+  ,---. ,---. ,---. ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   | |   | |   | |   |

+  |  5| |  4| |  4| |  8| |   | |  3| |  1|

+  `---' `---' `---' `---' `---' `---' `---'

+

+Paul Buchman:

+  ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   |

+  |  4| |  1| |  1| |   |

+  `---' `---' `---' `---'

+

+Helen Seinfeld:

+  ,---. ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   | |   |

+  | 10| |  1| |  1| |   | |  1|

+  `---' `---' `---' `---' `---'

+

+Cat:

+  ,---. ,---. ,---. ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   | |   | |   | |   |

+  |  8| |   | | 10| |  8| |  4| | 10| |  5|

+  `---' `---' `---' `---' `---' `---' `---'

+

+Jack McFarland:

+  ,---. ,---. ,---. ,---. ,---. ,---.

+  |   | |   | |   | |   | |   | |   |

+  |  1| |  3| |   | |  1| |  3| |  3|

+  `---' `---' `---' `---' `---' `---'

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_7_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..67e62f3ca71d67d99f4629602a9c6bc15b520672 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/Puzzle.html @@ -0,0 +1,429 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.8 + + + + + + + + +

+ + +1.8: Rack Your Brain + +

+Back to hunt | Back to puzzle set +
+ +
+ + +Dorothy approached the young man, who seemed to be studying something on the +table in front of him, deep in thought. He was an unusual-looking fellow, +with keen eyes and a large bushy beard of fire-red hair; and, despite the +blizzard outside, he was wearing shorts. As Dorothy got closer, she could +see that the focus of his interest was a Scrabble board he had spread out +in front of him. + +

"Are you playing Scrabble?" asked Dorothy. +

"Yes," said the man. +

"Who are you playing against?" +

"Myself." +

"You're practising?" +

"Yes." +

Dorothy studied the perplexing board, full of unfamiliar words. +"What does VUG mean?" +

"A cavity in a rock." +

"Do you know the definitions of all the words you play?" +

"No." +

"Wouldn't it be more fun if you only played words that you know the +meaning of?" +

"Why?" +

"Well, because... because...." But Dorothy realised she couldn't +find the words to justify her instinct. "Anyway, you seem to be awfully good +at this. Would you mind teaching me a little?" +

"Alright." +

So Dorothy sat down across from the man, and they began to play. "My name +is Dorothy, by the way. What's yours?" + + + +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +
1 +  +  +  +  +V +U +G +S +  +  +  +  +  +  +  +
2 +  +  +  +  +  +  +  +T +  +  +  +  +  +  +  +
3 +  +  +  +  +  +  +  +O +  +  +  +  +  +  +  +
4 +  +  +  +  +  +  +  +A +b +  +  +  +  +  +  +
5 +  +  +  +  +  +S +  +  +E +  +  +  +  +  +  +
6 +  +  +  +  +T +O +  +  +G +E +O +D +U +C +K +
7 +  +  +  +  +H +A +R +P +O +O +N +  +  +  +  +
8 +  +  +  +B +A +R +  +A +N +N +E +X +  +  +  +
9 +  +  +  +A +N +E +  +  +I +  +  +  +  +  +  +
10 +  +  +  +L +E +D +  +F +A +  +  +  +  +  +  +
11 +  +  +  +l +  +  +  +O +S +  +  +  +  +  +  +
12 +  +  +  +S +  +  +  +R +  +  +  +  +  +  +  +
13 +  +  +  +  +  +  +  +M +  +  +  +  +  +  +  +
14 +  +  +  +  +  +  +  +E +  +  +  +  +  +  +  +
15 +  +  +  +  +  +  +  +E +  +  +  +  +  +  +  +

+
+ +V +I +N +Y +L +
+ +B +R +O +A +D +
+ +M +A +R +T +
+ +P +I +N +C +E +R +
+ +L +E +A +F +E +D +
+ +L +I +G +H +T +
+ +
+ +

Notation: lowercase letters denote blank tiles; the blank at 4I has been +used as a B, and the blank at 11D has been used as an L. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_8_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/Puzzle.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/Puzzle.html new file mode 100644 index 0000000000000000000000000000000000000000..cdac2d0e3de2ecc4418096ffa49f20aa948c8b24 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/Puzzle.html @@ -0,0 +1,70 @@ + + + + + + +Mystery Hunt 2000, Puzzle 1.9 + + + + + + + + +

+ + +1.9: Oh, to be in DC + +

+Back to hunt | Back to puzzle set +
+ +
+ + + +Dorothy went to see a W.I.Z.A.R.D. system administrator for some help getting into +the system, only to find the +following note posted on her door:

+ +

+I'm on vacation this month. My itinerary is below; if you need to +get in touch with me, the standard people in each country will +have my address.
+
+ +
+ +

+

+TW 96 Friday, Jan 7 7:00 AM - 11:52 AM

+LI 311 Friday, Jan 7 1:45 PM - 2:20 PM

+LI 351 Friday, Jan 7 3:50 PM - 4:25 PM

+

+Lodging: Seaview Hotel

+

+IW 343  Wednesday, Jan 12 3:35 PM - Thursday, Jan 13 6:50 AM

+TK 1828 Thursday, Jan 13 4:05 PM - Thursday, Jan 13 8:30 PM

+TK 1386 Thursday, Jan 13 10:45 PM - Friday, Jan 14 3:05 AM

+

+Lodging: Hotel Victoria

+

+SR 3495 Sunday, Jan 16. 4:40 AM - 6:10 AM

+TG 971 Sunday, Jan 16. 1:30 PM - 6:10 AM

+TG 690 Monday, Jan 17  8:20 AM - 9:30 AM

+

+Lodging: Belvedere Hotel

+

+VN 820 Thursday, Jan 20 12:30 PM - 1:40 PM

+VN 924 Thursday, Jan 20 3:00 PM - 7:15 PM

+AA 7408 Thursday, Jan 20 11:30 PM - 6:15PM

+AA 198 Thursday, Jan 20 10:00 PM - Friday, Jan 21 6:34 AM

+

+

+  
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e666fae9260c11d390822d0e7cc9721676db6110 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set1_9_Puzzle.html/index.html @@ -0,0 +1,42 @@ + + +Mystery Hunt 2000, Set 1 + + + + + + + + + +

+ +

Puzzles, Set 1

+ +
+Back to hunt +
+ + +
+Puzzle 1 Solution 1
+Puzzle 2 Solution 2
+Puzzle 3 Solution 3
+Puzzle 4 Solution 4
+Puzzle 5 Solution 5
+Puzzle 6 Solution 6
+Puzzle 7 Solution 7
+Puzzle 8 Solution 8
+Puzzle 9 Solution 9
+Puzzle 10 Solution 10
+Puzzle 11 Solution 11
+
+Hint Hint Solution
+Metapuzzle Solution
+
+If you participated in the Hunt, please fill out the survey. + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set2/asset_index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set2/asset_index.html new file mode 100644 index 0000000000000000000000000000000000000000..cd6706c9a8469395953765a4501261f794989bf5 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2000/2000_set2/asset_index.html @@ -0,0 +1,111 @@ + + + + + 2000 Mystery Hunt · MIT Mystery Hunt / Puzzle Club + + + + + + + + + + + +
+ +

Archives / 2000 Mystery Hunt

+ +

Description

+

The 2000 Mystery Hunt was based on Wizard of Oz and asked teams to help guide Dorothy back +home using the Tornado-Operated Object Levitator (T.O.O.L.), which required a coin for its operation.

+

The coin was found at 2:18am on Sunday by Paintttniap, in a planter outside 9-136.

+ +

Credits

+The 2000 Mystery Hunt was written by Roger Barkan, Jennifer Berk, Jamie Coffin, Jed Goldstone, Heather Handley, Ann Jones, Ray Jones, Dan Katz, Kiran Kedlaya, Rose Koch, Brian Litofsky, Christopher Long, Catherine Moore, Chris Morse (Captain), Darren Rigby, Dave Savitt, and Brian Tivol. + +

The Hunt Introduction

+ +

Welcome to MH2K! (That's Mystery Hunt 2000 for those of you +are acronymatically challenged.) This year, your puzzle-solving +skills are sorely needed in order to help our hero, Dorothy Gale, +return to her monochromatic homeland.

+ +

The Munchkin Information Processing Board (MIPB) has offered +to help Dorothy get home through the use of their newly designed +Tornado-Operated Object Levitator (T.O.O.L.) Unfortunately, as a +consequence of inventive eccentricity, the T.O.O.L. can only be +operated with a special coin, and nobody on MIPB can remember where +they left it. Your goal is to recover this coin.

+ +

Fortuitously, you have a powerful computer system to aid you +in your search. MIPB possesses a highly advanced network +affectionately known as the Wonderfully Intelligent Zenith of All +Recovery Devices (W.I.Z.A.R.D.) that should be able to scan the +campus and trace the location of the coin. However, Wendy the +Insidiously Tyrannical Computer Hacker (W.I.T.C.H.) has installed a +series of password blocks into W.I.Z.A.R.D. and no one knows how to +access its higher functions.

+ +

It is known that W.I.T.C.H. has a careless habit of inadvertently +leaving clues to her passwords around the MIT campus. Rather than make +you look for them, Dorothy has graciously volunteered to brave the +wild jungles of MIT in search of W.I.T.C.H.'s trail of devious +puzzles, taking a pocket W.I.Z.A.R.D. terminal with her that will +automatically record her adventures and post them online. Some of her +adventures may bring her into contact with some familiar faces; it +seems she's not the only one who had a recent run-in with a +tornado....

+ +

You, the remote solving team, must solve W.I.T.C.H.'s puzzles, and +extract from them a username and password, which will grant you access +to the appropriate puzzles to deduce the second username and password, +and so forth. Stay in contact with MIPB regarding your progress; they +are working together with you to discover the coin, and they'll be +glad to TRY to help you if you have questions.

+ +

Good luck, keep your wits about you, and remember: There's no +place like hell.

+ +

The Hunt and Solutions (linked)

+ + +

Photos

+

The photos below were accompanied by the following announcement: Insidious news! Bitter about the coin they lost last year, Carmen and her gang have caught up with Dorothy and are preparing to exact a cruel revenge. Film at 11.

+ +
+

+

+

+

+
+ +
+ + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..32b159659af47b30b55168d7f82f1651d0bb0af0 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_6_index.html/index.html @@ -0,0 +1,408 @@ + + + + + +Kakorrhaphiophobia! + + + + + + + + + + + + +
+
Spookiness + Rating: 2
+
+

Kakorrhaphiophobia!

+

Oh no! Did you miss + the game show? Well, here are the 160 questions we used... um, but you're + on your own for the answers. You really should have shown up! (And congrats + to Dan Katz of SETEC Astronomy, our grand prize winner!)

+

+

    +
  1. What company’s + founder invented the safety razor?
  2. +
  3. What famous play + includes the line "Hell is other people"?
  4. +
  5. What canine character + first appeared in a 1938 short story by Eric Knight?
  6. +
  7. What New York + City thoroughfare is known as the Advertising Capital of the World?
  8. +
  9. What is the name + given to an alcoholic drink taken at the very end of the day?
  10. +
  11. What 1998 Tony-winning + musical was based on a book by E.L. Doctorow?
  12. +
  13. What is the name + of the most recent Kevin Costner movie to deal with the subject of + baseball?
  14. +
  15. What celery-like + vegetable can also be a word meaning "heated controversy"?
  16. +
  17. What musical + direction means to play in a smooth, connected manner?
  18. +
  19. What is the scientific + term for one billionth of a second?
  20. +
  21. The real name + of the hospital on St. Elsewhere was St. what?
  22. +
  23. What repeated + demand did Moses make of the Pharaoh of Egypt?
  24. +
  25. What trademarked + name has come to be synonymous with "petroleum jelly"?
  26. +
  27. What is the chemical + name for laughing gas?
  28. +
  29. When he died + in 1989, it was found his heart was two and a half times larger than + that of the average horse. Who?
  30. +
  31. What 1951 George + Pal movie featured astral companions Bellus and Zyra?
  32. +
  33. Who played the + title character of "Dr T." in the 2000 movie Dr. T and + the Women?
  34. +
  35. Who is said to + have "fiddled while Rome burned"?
  36. +
  37. According to + the nursery rhyme, who was the Piper’s Son?
  38. +
  39. Who, with 73 + electoral votes, tied with Thomas Jefferson in the 1800 presidential + election, in a race that was ultimately decided by Congress?
  40. +
  41. The first attempt + at adapting a cinematic Lord of the Rings was directed by the + same person who brought you Fritz the Cat, the first X-rated + cartoon. Who was he?
  42. +
  43. What present-day + television series takes place in Stuckeyville, Ohio?
  44. +
  45. When he’s + not hurling racial epithets, John Rocker hurls for what baseball team?
  46. +
  47. What Web site + shares its name with a race of beings from Gulliver’s Travels?
  48. +
  49. What is the name + of Diana Ross’s last solo #1 hit, which topped the charts in + 1980?
  50. +
  51. According to + the song, what hometown does The Music Man’s Professor + Harold Hill claim as his own?
  52. +
  53. What modern-day + storyteller’s monologues have been turned into films like Swimming + to Cambodia and Monster in a Box?
  54. +
  55. On which Hawaiian + island is Pearl Harbor located?
  56. +
  57. What 1964 Sidney + Lumet film ended with the atomic bombing of New York City by the US + Air Force?
  58. +
  59. Henry Sullivan + was the fourth man, but the first American, to swim what body of water?
  60. +
  61. In Bill & + Ted’s Excellent Adventure, the two main characters bounced + around time in a time machine that looked like what?
  62. +
  63. What is the one-word + stage name of Cassandra Peterson?
  64. +
  65. When keeping + track of baseball players in a scorecard, what fielder is designated + with the number 6?
  66. +
  67. What actor and + regular on The Simpsons is about to be divorced from actress + Helen Hunt?
  68. +
  69. What is the British + term for elevator?
  70. +
  71. What city is + the capital of Alaska?
  72. +
  73. Billy Preston + has had two #1 hit singles in his career. The first was "Will + it Go Round in Circles." What’s the second?
  74. +
  75. What Nabisco + product is also the name of a novel by R.D. Blackmore?
  76. +
  77. Who is the creator + of both NYPD Blue and Hill Street Blues?
  78. +
  79. What gas do cows + emit in large amounts, possibly contributing to global warming?
  80. +
  81. Which John Steinbeck + novel focuses on the Joad family?
  82. +
  83. Who directed + Bill Murray in Meatballs, Stripes, and Ghostbusters?
  84. +
  85. What type of + orbit, first suggested by Arthur C. Clarke, keeps a satellite over + the same spot on the earth’s surface?
  86. +
  87. What NASA spacecraft + was sent to Jupiter in 1989, where it has been in orbit since 1995?
  88. +
  89. "Or What + You Will" is the subtitle of what play by William Shakespeare? +
  90. +
  91. What maximum + security prison, formerly known as "Sing-Sing," is located + about 35 miles north of New York City?
  92. +
  93. What was Anton + Chekhov’s first full-length drama?
  94. +
  95. What young actor + co-starred with a homicidal Macaulay Culkin in The Good Son?
  96. +
  97. On The Odd + Couple, who was Felix Unger’s roommate?
  98. +
  99. Charles Sherwood + Stratton became better known as what General?
  100. +
  101. In what movie + did Marlon Brando star as an ex-boxer named Terry Malloy?
  102. +
  103. Who wrote the + novel Billy Budd?
  104. +
  105. What’s the + British word for traffic circle?
  106. +
  107. What German military + man inspired the nickname "The Iron Chancellor"?
  108. +
  109. The spoken language + of what Indian tribe was used as a code by the US government in World + War II?
  110. +
  111. What snack food + was invented in 1893 by Louis and F.W. Ruckheim?
  112. +
  113. What was Union + General William Sherman’s middle name?
  114. +
  115. What drink is + traditionally made from seltzer, milk, and chocolate syrup?
  116. +
  117. Who is the Egyptian + goddess of nature?
  118. +
  119. What foreign + moviemaker’s final film was La Voce della luna, or the + Voice of the Moon?
  120. +
  121. Who were the + losers of the most recent Super Bowl?
  122. +
  123. In a classic + series of murder mystery novels by Harry Kemelman, what occupation + does lead character David Small have?
  124. +
  125. What Biblical + character stood six cubits and a span tall-over 9 feet high by today’s + measurement?
  126. +
  127. Which movie took + home the Best Picture Oscar at the 1998 Academy Awards?
  128. +
  129. What Italian + dish is traditionally made with Arborio rice?
  130. +
  131. Which baseball + team plays in Pac Bell Park?
  132. +
  133. In 1958, Vince + DeDomenico of San Francisco created what ubiquitous boxed side dish?
  134. +
  135. V-E day occurred + on May 8, 1945. What does V-E stand for?
  136. +
  137. What Oscar winner + for West Side Story also starred in the 1970s children show, + The Electric Company?
  138. +
  139. What Issac Asimov + novel introduced Hari Seldon, psychohistory, and the successor to + the Galactic Empire?
  140. +
  141. What philosophical + theory states that the simplest explanation is generally the correct + one?
  142. +
  143. How many planets + are currently inside the orbit of Pluto?
  144. +
  145. A person with + O-negative blood - who can therefore give blood to any recipient - + is called a what?
  146. +
  147. Whose predictions + were made while staring into a bowl of water, and consist of sections + call quatrains?
  148. +
  149. What is the term + for a unit of electrical resistance?
  150. +
  151. Who started his + daredevil career by charging $500 to jump over two cars on his motorcycle?
  152. +
  153. On a Risk board, + what territory is due north of Mongolia?
  154. +
  155. What physicist + is credited with creating the first atomic pile, at the University + of Chicago?
  156. +
  157. What is the name + of filmmaker Michael Moore’s cable TV show?
  158. +
  159. In Hebrew it’s + the Tanakh, but Christians call it the what?
  160. +
  161. Who was nominated + for a Best Supporting Actor award for his work in Forrest Gump?
  162. +
  163. "Three Musketeers" + candy bars consist of chocolate coating over what sweet stuff?
  164. +
  165. While the command + module orbited the moon, the Apollo astronauts went to the surface + in the LEM. What does LEM stand for?
  166. +
  167. On The Simpsons, + what is the first name of Bart’s blue-haired best friend?
  168. +
  169. On Usenet, alt.toys.lego + is an example of what kind of online discussion area?
  170. +
  171. What unit of + currency can be divided up into 100 kopecks?
  172. +
  173. What famous 1972 + children’s book and album was produced by Marlo Thomas?
  174. +
  175. What underground + cartoonist’s oeuvre includes the "Keep on Truckin’ + Man"?
  176. +
  177. What country + is completely surrounded by South Africa?
  178. +
  179. The first line + to what Beatles song is "I once had a girl, or should I say she + once had me?"
  180. +
  181. What Greek playwright + wrote Medea?
  182. +
  183. What word meaning + "a seducer of women" comes from a fictional character in + a 1703 play?
  184. +
  185. Who had a voiceover + on Michael Jackson’s hit single, "Thriller"?
  186. +
  187. What university + does "the Fighting Irish" fight for?
  188. +
  189. On the television + show Roseanne, who played daughter Darlene?
  190. +
  191. What musical + question was the biggest hit for Frankie Lymon and the Teenagers?
  192. +
  193. The Beverly Hills + Hotel and the Beverly Wilshire are on either end of what famous street?
  194. +
  195. If you walked + southeast from the famous "Four Corners" junction, what + state would you be in?
  196. +
  197. What term is + given to a wrestling match where two wrestlers take turns in the ring?
  198. +
  199. What 1977 war + movie featured Gene Hackman, Sean Connery, and Ryan O’Neal?
  200. +
  201. What famous fictional + mongoose was created by Rudyard Kipling?
  202. +
  203. Vincent Price + guest-starred on the ‘60’s series "Batman" as + what villian?
  204. +
  205. Whose musical + "project" had its biggest hit in 1982, with "Eye in + the Sky?"
  206. +
  207. What product, + in a recent television ad campaign, warned consumers: "Buy any + other beverage and you could be making a terrible mistake"?
  208. +
  209. What 1997 Oliver + Stone movie starred Sean Penn and Jennifer Lopez?
  210. +
  211. What chocolate + company was founded in 1926 by Joseph Draps?
  212. +
  213. What duet between + Paul McCartney and Michael Jackson went to #1 in 1983?
  214. +
  215. What hit song + by the Platters later went on to be the title of a 1994 movie starring + Marisa Tomei?
  216. +
  217. On the periodic + table of elements, what is the symbol for iron?
  218. +
  219. What is the Spanish + word for Spanish?
  220. +
  221. Comedy Central + is presently running a game show entitled Don’t Forget Your… + what?
  222. +
  223. What six-letter + word is the motto of California?
  224. +
  225. What word, when + taken as a noun, is a kind of seafood, and when taken as a verb means + to bake in a sauce and cover in bread crumbs?
  226. +
  227. What musical + instrument is associated with jazz musician Toots Thielman?
  228. +
  229. Fred Durst is + a member of what rock band?
  230. +
  231. Whose organization + makes use of the vessels Calypso, Calypso II, and Alcyon?
  232. +
  233. When he went + solo, Bruce Wayne’s sidekick Dick Grayson dumped the name "Robin" + and became who?
  234. +
  235. Who played actor + Richard Hatch’s father on Battlestar Galactica?
  236. +
  237. What word can + mean either a drink made with Kahlua and cream, or a large hat?
  238. +
  239. What golden oldie + singer had a voice that earned him the nickname, "The Velvet + Fog"?
  240. +
  241. What Benjamin + Hoff book connected Asian philosophy to a certain children’s + literary character?
  242. +
  243. Who is actress + Isabella Rosellini’s mother?
  244. +
  245. What clothing + company’s logo consists of a question mark inside a triangle?
  246. +
  247. What interjection + was first used during parachute jumps at Fort Benning, Georgia, in + 1940?
  248. +
  249. What 1999 animated + film was loosely based on a 1968 children’s science fiction novel + by Ted Hughes?
  250. +
  251. What word can + mean either "remarkable" or "unresolved"?
  252. +
  253. In Roman numerals, + what is C minus XCVI?
  254. +
  255. What boxer did + Mike Tyson famously bite in 1997?
  256. +
  257. What hunter appears + in the northeastern American sky in fall and winter?
  258. +
  259. What turn-of-the-century + baseball player was nicknamed "The Georgia Peach"?
  260. +
  261. What do you call + a follower of radical capitalist Ayn Rand’s philosophy?
  262. +
  263. What is the common + measure for the decay or transmutation of a radioactive element?
  264. +
  265. In the science + of sleep, what does REM stand for?
  266. +
  267. What 1995 movie + had Dustin Hoffman attempting to contain the fictional "Mutaba" + virus?
  268. +
  269. What Japanese + video-game giant started its life in 1889 making playing cards?
  270. +
  271. What literary + genre is William Gibson’s Neuromancer often credited with ushering + in?
  272. +
  273. What car company + made the Gloria, the Spitfire, the Dolomite, and the TR7?
  274. +
  275. What’s the + Latin phrase meaning "of many, one"?
  276. +
  277. What state borders + Wisconsin, Michigan, Indiana, Kentucky, Missouri, and Iowa?
  278. +
  279. What car company + makes the Testerossa?
  280. +
  281. Together, Minneapolis + and St. Paul are known as the what?
  282. +
  283. The boxed game + is called Othello, but what’s the generic name for the "game + of dramatic reversals"?
  284. +
  285. According to + the Bible, what is Sodom’s sister city?
  286. +
  287. What movie, in + theaters now, has the tag line "No one gets away clean"?
  288. +
  289. What was the + name of the character played by Desi Arnez on "I Love Lucy"?
  290. +
  291. What sign follows + Scorpio on the zodiac chart?
  292. +
  293. What children’s + singer’s albums include "Evergreen Everblue," "Bananaphone," + and "Everything Grows"?
  294. +
  295. What French + writer is quoted as saying, "If God did not exist, it would be + necessary to invent him"?
  296. +
  297. Who played Joe + Pesci’s cousin, who stands accused of murder, in My Cousin + Vinny?
  298. +
  299. In Fahrenheit + 451, what was the occupation of Guy Montag?
  300. +
  301. Although it took + place in November, thanks to their use of the old style Julian calendar, + in what month do Russians celebrate the Bolshevik revolution?
  302. +
  303. What country + is on the northeastern tip of the African continent?
  304. +
  305. What constellation’s + name translates to "the great bear"?
  306. +
  307. In Greek mythology, + who fell in love with his own reflection?
  308. +
  309. In IBM’s + OS/2, what does the "OS" stand for?
  310. +
  311. What kind of + alcohol is added to gasoline to create "gasohol"?
  312. +
  313. Whether she actually + used it or not, what murder weapon was under Sharon Stone’s bed + at the end of Basic Instinct?
  314. +
  315. In a 1969 hit + for Three Dog Night, who is "coming"?
  316. +
  317. What Norton Juster + novel featured Rhyme, Reason, Milo, Tock, and the kingdoms of Dictionopolis + and Digitopolis?
  318. +
  319. What Elmore + Leonard novel was turned into a 1998 movie starring George Clooney + and Jennifer Lopez?
  320. +
+

+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e40da0ed097b72fca49969f0ac6210fe8ed88666 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_7_index.html/index.html @@ -0,0 +1,97 @@ + + + + +Mathophobia + + + + + + + + + + + + + +
+
Spookiness + Rating: 1
+
+

Mathophobia

+

The Devil challenges + you to a dice game he calls Six-Six-Six. The stakes? If you win, you get + an answer for the MIT Mystery Hunt. If you lose, the Devil takes your + soul. Before committing yourself, you ask the Devil to explain the rules. + He does:

+

When a game of Six-Six-Six + starts, you each pick an integer, which is referred to as your "base + number." The Devil will pick 666 as his base number, of course. You + may pick any integer you like as your base number.

+

Each round, three + dice are rolled. Each of you uses the three resulting numbers as three + digits that you may order in any way you wish. You each add your newly-constructed + three-digit number to your own base number. Your score for the round is + the absolute value of the difference between your sum and 1,000. Likewise + for the Devil. When the game is over, all of your individual round scores + are added together. The person/being with the lowest total score wins.

+

Example round: Your + base number is 536. The three dice read 5, 2, 5. You may interpret this + as 255, 525, or 552. The resulting scores would be 209, 61, and 88, so + you chose 525, and score 61 for that round. The Devil would interpret + this as 255, add this to his base number of 666, and he would score 79 + for that round.

+

But wait . . . it's + a tad more complicated than that. If on any round the dice show three + sixes, then you are penalized for rolling the Devil's number, and your + score for that round is 700 points. The Devil is never penalized -- he + uses the usual scoring rule no matter what the dice say. You comment on + the unfairness of this, but the Devil points out that you will still beat + him in the long run IF you pick a good base number.

+

Something about the + way he says that makes you suspicious. "Long run?" you ask. + "Could you be a little more precise?" "Sure," the + Devil replies. "A game of Six-Six-Six consists of six times six times + six rounds." You protest, "But I don't have time to play that + many rounds! I have a Mystery Hunt to finish."

+

The Devil thinks + for a moment, then offers an alternative. Instead of playing a whole game, + you may compute the expected results for perfect play, as follows:

+

Determine the best + base number (B) to pick.
+ Determine your expected score (S) for a ROUND if you were to use this + base number.
+ Determine your expected margin (M) of victory over the Devil if you
+ were to use this base number for a GAME of Six-Six-Six.
+ Reverse the digits of M and square the result to get N.
+ Reverse the digits of B and square the result to get C.
+ Reverse the digits of S and square the result to get T.
+ Take the first two digits of T to get U.
+ Write out the three numbers C, N, and U (in that order) digit by digit. + There will be 13 digits in all. Add each digit to its respective number + in the table below, then correctly interpret the results.

+
    +
  1. 8
  2. +
  3. 5
  4. +
  5. 11
  6. +
  7. 11
  8. +
  9. 17
  10. +
  11. 15
  12. +
  13. 9
  14. +
  15. 5
  16. +
  17. 10
  18. +
  19. 20
  20. +
  21. 0
  22. +
  23. 3
  24. +
  25. 17
  26. +
+

So there you have + it. Do a bit of analysis and computation and you'll have another Mystery + Hunt answer. Make a mistake and you'll be spending a good percentage of + eternity (98.32%, to be precise) with the Devil. Hope math doesn't make + you nervous...

+
+ + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..3632d493630f841632561b76d7e03cea978cf20c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_8_index.html/index.html @@ -0,0 +1,41 @@ + + + + +Nyctophobia + + + + + + + + + + + + + +
+
Spookiness + Rating: 0
+
+

Nyctophobia

+

Lions and scorpions + and bears, oh my!

+

+

+

+

+

+

+

+

+

+

+

+

+

+
+ + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..0b0955171bd9110f3103c5e313a62d0c269dedf8 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/index.html @@ -0,0 +1,32 @@ + + + + +Papyrophobia + + + + + + + + + + + + + +
+
Spookiness + Rating: 0
+
+

Papyrophobia

+

(fear of paper)

+

 

+

PDF + version

+

Postscript + version

+
+ + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.pdf b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.pdf new file mode 100644 index 0000000000000000000000000000000000000000..ccc035ef2beaefbb6a8d0bca40a746b945c7705d Binary files /dev/null and b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.pdf differ diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.ps b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.ps new file mode 100644 index 0000000000000000000000000000000000000000..11d07f97f6ba584c7f63158c34ead04ffe2b6df2 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase3_9_index.html/mh01_3.7.ps @@ -0,0 +1,6664 @@ +%!PS-Adobe-3.0 +%%Title: Visio-mh01.vsd +%%Creator: Windows NT 4.0 +%%CreationDate: 12:52 11/21/2000 +%%Pages: (atend) +%%BoundingBox: 13 13 599 779 +%%LanguageLevel: 2 +%%DocumentNeededFonts: (atend) +%%DocumentSuppliedFonts: (atend) +%%EndComments +%%BeginProlog + +%%BeginResource: procset NTPSOct95 +/NTPSOct95 100 dict dup begin/bd{bind def}bind def/ld{load def}bd/ed{exch def} +bd/a{currentpoint}bd/c/curveto ld/d/dup ld/e/eofill ld/f/fill ld/tr/translate +ld/gr/grestore ld/gs/gsave ld/j/setlinejoin ld/L/lineto ld/M/moveto ld/n +/newpath ld/cp/closepath ld/rm/rmoveto ld/sl/setlinewidth ld/sd/setdash ld/g +/setgray ld/r/setrgbcolor ld/s/stroke ld/t/show ld/aw/awidthshow ld/im +/imagemask ld/MS{moveto show}bd/SF{findfont exch scalefont setfont}bd/SM{cmtx +setmatrix}bd/MF{findfont exch makefont setfont}bd/CM{/cmtx matrix currentmatrix +def}bd/B{M exch dup 0 rlt exch 0 exch rlt neg 0 rlt}bd/CB{B cp eoclip}bd/EA{1 +index 0/G0 put 4 string 1 1 4 -1 roll{3 copy neg exch cvs dup 0 71 put cvn 3 -1 +roll exch put}for pop}bd/rlt/rlineto ld/L2?/languagelevel where{pop +languagelevel 2 ge}{false}ifelse def end def +%%EndResource +%%EndProlog +%%BeginSetup +[{0 +/languagelevel where{pop languagelevel 2 ge}{false}ifelse +{1 dict dup/JobTimeout 4 -1 roll put setuserparams} +{statusdict/setjobtimeout get exec}ifelse +}stopped cleartomark +[{120 +/languagelevel where{pop languagelevel 2 ge}{false}ifelse +{1 dict dup/WaitTimeout 4 -1 roll put setuserparams} +{statusdict/waittimeout 3 -1 roll put}ifelse +}stopped cleartomark +/#copies 1 def +[{ +%%BeginFeature: *HPPaperPolicy PromptUser + + <> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPHalftone PrinterDefault + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPCollate False +<> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *Smoothing True + + << /PostRenderingEnhance true /PostRenderingEnhanceDetails << /REValue 2 /Type 8 >> + >> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *PageSize Letter + + <> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *Duplex None + + <> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmTextAngle Deg45 +userdict /HPwmAngle 45 put +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmText None + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmFont HelveticaB + + /Helvetica-Bold findfont dup length dict begin + {1 index /FID ne {def} {pop pop} ifelse} forall + /Encoding ISOLatin1Encoding def currentdict + end + /HPwmFont exch definefont pop +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmLocation True +userdict /HPwmLocation true put +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmTextStyle Medium +userdict /HPwmStyle .48 put +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPwmFontSize pt48 +userdict /HPwmSize 48 put +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPNup OneUp + +% Copyright (c) Hewlett-Packard Co 1997 + userdict begin + true setglobal /HPwm 5 dict dup begin /HPwmOn true def /HPwmOdd true def end def false setglobal + + userdict /HPwmAngle known not {/HPwmAngle 45 def} if + userdict /HPwmSize known not {/HPwmSize 48 def} if + userdict /HPwmLocation known not {/HPwmLocation true def} if + userdict /HPwmStyle known not {/HPwmStyle .48 def} if + userdict /HPwmDuplex known not {/HPwmDuplex 0 def} if + + /HPwmEOP {HPwmDuplex 0 eq {true}{HPwmDuplex 1 eq HPwmOdd eq dup not {erasepage}if + true setglobal /HPwmOdd HPwmOdd not def false setglobal}ifelse} bind def + end + + << + /EndPage {userdict begin + userdict /HPwmText known HPwm /HPwmOn get and + {initmatrix + 0 setgray 1 setlinewidth true setstrokeadjust 0 setlinejoin 0 setlinecap [] 0 setdash + currentpagedevice /PageSize get aload pop 2 div exch 2 div exch translate + HPwmAngle rotate /HPwmFont userdict /HPppScale known {HPwmSize HPppScale mul}{HPwmSize}ifelse selectfont + HPwmText stringwidth 2 div neg exch 2 div neg exch + userdict /HPppScale known {HPwmSize HPppScale mul}{HPwmSize}ifelse .25 mul sub moveto + HPwmText false charpath userdict /HPwmStyle1 known + {gsave 1 setgray HPwmStyle1 HPwmStyle add setlinewidth stroke grestore} if + 0 setgray HPwmStyle setlinewidth stroke + HPwmLocation not {true setglobal HPwm /HPwmOn false put false setglobal} if + } if + 2 eq {pop false}{pop HPwm begin HPwmEOP end} ifelse + end } bind + >> setpagedevice +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *HPScalePatterns Scale +/GDIBWPatternDict 18 dict def +/dtransform {GDIBWPatternDict /Width known {currentpagedevice /HWResolution get 0 get +150 div mul exch currentpagedevice /HWResolution get 0 get 150 div mul exch dtransform}{dtransform}ifelse} bind def +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *OptionTrays 2Trays + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *Option3 True + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *Option4 False + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *Option5 False + +%%EndFeature +} stopped cleartomark +[{ +%%BeginFeature: *VMOption 16-19MB + +%%EndFeature +} stopped cleartomark +%%EndSetup +NTPSOct95 begin +%%Page: 1 1 +NTPSOct95 /PageSV save put +13 779.762 translate 72 600 div dup neg scale +0 0 transform .25 add round .25 sub exch .25 add round .25 sub exch itransform translate +1 j +1 setlinecap +6 sl +n +755 6199 M +755 5637 L +s +n +1317 6199 M +755 6199 L +s +n +1317 5899 M +1317 5923 L +s +n +1317 5947 M +1317 5971 L +s +n +1317 5995 M +1317 6019 L +s +n +1317 6043 M +1317 6067 L +s +n +1317 6091 M +1317 6115 L +s +n +1317 6139 M +1317 6163 L +s +n +1317 6187 M +1317 6199 L +s +n +1917 5899 M +1317 5899 L +s +n +1917 5637 M +1917 5661 L +s +n +1917 5685 M +1917 5709 L +s +n +1917 5733 M +1917 5757 L +s +n +1917 5781 M +1917 5805 L +s +n +1917 5829 M +1917 5853 L +s +n +1917 5877 M +1917 5899 L +s +n +755 5637 M +779 5637 L +s +n +803 5637 M +827 5637 L +s +n +851 5637 M +875 5637 L +s +n +899 5637 M +923 5637 L +s +n +947 5637 M +971 5637 L +s +n +995 5637 M +1019 5637 L +s +n +1043 5637 M +1067 5637 L +s +n +1091 5637 M +1115 5637 L +s +n +1139 5637 M +1163 5637 L +s +n +1187 5637 M +1211 5637 L +s +n +1235 5637 M +1259 5637 L +s +n +1283 5637 M +1307 5637 L +s +n +1331 5637 M +1355 5637 L +s +n +1379 5637 M +1403 5637 L +s +n +1427 5637 M +1451 5637 L +s +n +1475 5637 M +1499 5637 L +s +n +1523 5637 M +1547 5637 L +s +n +1571 5637 M +1595 5637 L +s +n +1619 5637 M +1643 5637 L +s +n +1667 5637 M +1691 5637 L +s +n +1715 5637 M +1739 5637 L +s +n +1763 5637 M +1787 5637 L +s +n +1811 5637 M +1835 5637 L +s +n +1859 5637 M +1883 5637 L +s +n +1907 5637 M +1917 5637 L +s +n +1617 6199 M +1317 6199 L +s +n +1617 5899 M +1617 6199 L +s +n +1917 5899 M +2217 5899 L +s +n +1917 5637 M +2217 5637 L +s +n +2217 5899 M +2217 5637 L +s +n +755 5637 M +755 5074 L +s +n +1917 5637 M +1917 5337 L +s +n +2555 5337 M +1917 5337 L +s +n +2555 5637 M +2555 5337 L +s +n +3117 5637 M +3093 5637 L +s +n +3069 5637 M +3045 5637 L +s +n +3021 5637 M +2997 5637 L +s +n +2973 5637 M +2949 5637 L +s +n +2925 5637 M +2901 5637 L +s +n +2877 5637 M +2853 5637 L +s +n +2829 5637 M +2805 5637 L +s +n +2781 5637 M +2757 5637 L +s +n +2733 5637 M +2709 5637 L +s +n +2685 5637 M +2661 5637 L +s +n +2637 5637 M +2613 5637 L +s +n +2589 5637 M +2565 5637 L +s +n +3117 5074 M +3117 5637 L +s +n +755 5074 M +779 5074 L +s +n +803 5074 M +827 5074 L +s +n +851 5074 M +875 5074 L +s +n +899 5074 M +923 5074 L +s +n +947 5074 M +971 5074 L +s +n +995 5074 M +1019 5074 L +s +n +1043 5074 M +1067 5074 L +s +n +1091 5074 M +1115 5074 L +s +n +1139 5074 M +1163 5074 L +s +n +1187 5074 M +1211 5074 L +s +n +1235 5074 M +1259 5074 L +s +n +1283 5074 M +1307 5074 L +s +n +1331 5074 M +1355 5074 L +s +n +1379 5074 M +1403 5074 L +s +n +1427 5074 M +1451 5074 L +s +n +1475 5074 M +1499 5074 L +s +n +1523 5074 M +1547 5074 L +s +n +1571 5074 M +1595 5074 L +s +n +1619 5074 M +1643 5074 L +s +n +1667 5074 M +1691 5074 L +s +n +1715 5074 M +1739 5074 L +s +n +1763 5074 M +1787 5074 L +s +n +1811 5074 M +1835 5074 L +s +n +1859 5074 M +1883 5074 L +s +n +1907 5074 M +1931 5074 L +s +n +1955 5074 M +1979 5074 L +s +n +2003 5074 M +2027 5074 L +s +n +2051 5074 M +2075 5074 L +s +n +2099 5074 M +2123 5074 L +s +n +2147 5074 M +2171 5074 L +s +n +2195 5074 M +2219 5074 L +s +n +2243 5074 M +2267 5074 L +s +n +2291 5074 M +2315 5074 L +s +n +2339 5074 M +2363 5074 L +s +n +2387 5074 M +2411 5074 L +s +n +2435 5074 M +2459 5074 L +s +n +2483 5074 M +2507 5074 L +s +n +2531 5074 M +2555 5074 L +s +n +2579 5074 M +2603 5074 L +s +n +2627 5074 M +2651 5074 L +s +n +2675 5074 M +2699 5074 L +s +n +2723 5074 M +2747 5074 L +s +n +2771 5074 M +2795 5074 L +s +n +2819 5074 M +2843 5074 L +s +n +2867 5074 M +2891 5074 L +s +n +2915 5074 M +2939 5074 L +s +n +2963 5074 M +2987 5074 L +s +n +3011 5074 M +3035 5074 L +s +n +3059 5074 M +3083 5074 L +s +n +3107 5074 M +3117 5074 L +s +n +2555 5637 M +2555 5661 L +s +n +2555 5685 M +2555 5709 L +s +n +2555 5733 M +2555 5757 L +s +n +2555 5781 M +2555 5805 L +s +n +2555 5829 M +2555 5853 L +s +n +2555 5877 M +2555 5901 L +s +n +2555 5925 M +2555 5949 L +s +n +2555 5973 M +2555 5997 L +s +n +2555 6021 M +2555 6045 L +s +n +2555 6069 M +2555 6093 L +s +n +2555 6117 M +2555 6141 L +s +n +2555 6165 M +2555 6189 L +s +n +3117 6199 M +3117 5637 L +s +n +2555 6199 M +3117 6199 L +s +n +2255 5637 M +2555 5637 L +s +n +2255 6199 M +2555 6199 L +s +n +2255 5637 M +2255 6199 L +s +n +3117 5074 M +3117 5050 L +s +n +3117 5026 M +3117 5002 L +s +n +3117 4978 M +3117 4954 L +s +n +3117 4930 M +3117 4906 L +s +n +3117 4882 M +3117 4858 L +s +n +3117 4834 M +3117 4810 L +s +n +3117 4786 M +3117 4762 L +s +n +3117 4738 M +3117 4714 L +s +n +3117 4690 M +3117 4666 L +s +n +3117 4642 M +3117 4618 L +s +n +3117 4594 M +3117 4570 L +s +n +3117 4546 M +3117 4522 L +s +n +755 5074 M +755 5050 L +s +n +755 5026 M +755 5002 L +s +n +755 4978 M +755 4954 L +s +n +755 4930 M +755 4906 L +s +n +755 4882 M +755 4858 L +s +n +755 4834 M +755 4810 L +s +n +755 4786 M +755 4762 L +s +n +755 4738 M +755 4714 L +s +n +755 4690 M +755 4666 L +s +n +755 4642 M +755 4618 L +s +n +755 4594 M +755 4570 L +s +n +755 4546 M +755 4522 L +s +n +3117 4512 M +3093 4512 L +s +n +3069 4512 M +3045 4512 L +s +n +3021 4512 M +2997 4512 L +s +n +2973 4512 M +2949 4512 L +s +n +2925 4512 M +2901 4512 L +s +n +2877 4512 M +2853 4512 L +s +n +2829 4512 M +2805 4512 L +s +n +2781 4512 M +2757 4512 L +s +n +2733 4512 M +2709 4512 L +s +n +2685 4512 M +2661 4512 L +s +n +2637 4512 M +2613 4512 L +s +n +2589 4512 M +2565 4512 L +s +n +2541 4512 M +2517 4512 L +s +n +2493 4512 M +2469 4512 L +s +n +2445 4512 M +2421 4512 L +s +n +2397 4512 M +2373 4512 L +s +n +2349 4512 M +2325 4512 L +s +n +2301 4512 M +2277 4512 L +s +n +2253 4512 M +2229 4512 L +s +n +2205 4512 M +2181 4512 L +s +n +2157 4512 M +2133 4512 L +s +n +2109 4512 M +2085 4512 L +s +n +2061 4512 M +2037 4512 L +s +n +2013 4512 M +1989 4512 L +s +n +1965 4512 M +1941 4512 L +s +n +1917 4512 M +1893 4512 L +s +n +1869 4512 M +1845 4512 L +s +n +1821 4512 M +1797 4512 L +s +n +1773 4512 M +1749 4512 L +s +n +1725 4512 M +1701 4512 L +s +n +1677 4512 M +1653 4512 L +s +n +1629 4512 M +1605 4512 L +s +n +1581 4512 M +1557 4512 L +s +n +1533 4512 M +1509 4512 L +s +n +1485 4512 M +1461 4512 L +s +n +1437 4512 M +1413 4512 L +s +n +1389 4512 M +1365 4512 L +s +n +1341 4512 M +1317 4512 L +s +n +1293 4512 M +1269 4512 L +s +n +1245 4512 M +1221 4512 L +s +n +1197 4512 M +1173 4512 L +s +n +1149 4512 M +1125 4512 L +s +n +1101 4512 M +1077 4512 L +s +n +1053 4512 M +1029 4512 L +s +n +1005 4512 M +981 4512 L +s +n +957 4512 M +933 4512 L +s +n +909 4512 M +885 4512 L +s +n +861 4512 M +837 4512 L +s +n +813 4512 M +789 4512 L +s +n +765 4512 M +755 4512 L +s +n +3117 3949 M +3117 4512 L +s +n +755 4512 M +755 3949 L +s +n +1317 3949 M +755 3949 L +s +n +1317 4249 M +1317 3949 L +s +n +2555 3949 M +3117 3949 L +s +n +2555 4249 M +2555 3949 L +s +n +1317 4249 M +1341 4249 L +s +n +1365 4249 M +1389 4249 L +s +n +1413 4249 M +1437 4249 L +s +n +1461 4249 M +1485 4249 L +s +n +1509 4249 M +1533 4249 L +s +n +1557 4249 M +1581 4249 L +s +n +1605 4249 M +1629 4249 L +s +n +1653 4249 M +1677 4249 L +s +n +1701 4249 M +1725 4249 L +s +n +1749 4249 M +1773 4249 L +s +n +1797 4249 M +1821 4249 L +s +n +1845 4249 M +1869 4249 L +s +n +1893 4249 M +1917 4249 L +s +n +1941 4249 M +1965 4249 L +s +n +1989 4249 M +2013 4249 L +s +n +2037 4249 M +2061 4249 L +s +n +2085 4249 M +2109 4249 L +s +n +2133 4249 M +2157 4249 L +s +n +2181 4249 M +2205 4249 L +s +n +2229 4249 M +2253 4249 L +s +n +2277 4249 M +2301 4249 L +s +n +2325 4249 M +2349 4249 L +s +n +2373 4249 M +2397 4249 L +s +n +2421 4249 M +2445 4249 L +s +n +2469 4249 M +2493 4249 L +s +n +2517 4249 M +2541 4249 L +s +n +1317 3949 M +1341 3949 L +s +n +1365 3949 M +1389 3949 L +s +n +1413 3949 M +1437 3949 L +s +n +1461 3949 M +1485 3949 L +s +n +1509 3949 M +1533 3949 L +s +n +1557 3949 M +1581 3949 L +s +n +1605 3949 M +1629 3949 L +s +n +1653 3949 M +1677 3949 L +s +n +1701 3949 M +1725 3949 L +s +n +1749 3949 M +1773 3949 L +s +n +1797 3949 M +1821 3949 L +s +n +1845 3949 M +1869 3949 L +s +n +1893 3949 M +1917 3949 L +s +n +1893 3949 M +1917 3949 L +s +n +1317 3649 M +1317 3949 L +s +n +1917 3949 M +1917 3649 L +s +n +1317 3649 M +1917 3649 L +s +n +2555 3687 M +1917 3687 L +s +n +2555 3949 M +2555 3687 L +s +n +3680 4512 M +3117 4512 L +s +n +3117 5074 M +3680 5074 L +s +n +3680 4512 M +3680 5074 L +s +n +192 4512 M +192 5074 L +s +n +755 5074 M +192 5074 L +s +n +755 4512 M +192 4512 L +s +n +4692 1324 M +4692 1887 L +s +n +4130 1324 M +4692 1324 L +s +n +4130 1887 M +4692 1887 L +s +n +4130 1324 M +4130 1348 L +s +n +4130 1372 M +4130 1396 L +s +n +4130 1420 M +4130 1444 L +s +n +4130 1468 M +4130 1492 L +s +n +4130 1516 M +4130 1540 L +s +n +4130 1564 M +4130 1588 L +s +n +4130 1612 M +4130 1636 L +s +n +4130 1660 M +4130 1684 L +s +n +4130 1708 M +4130 1732 L +s +n +4130 1756 M +4130 1780 L +s +n +4130 1804 M +4130 1828 L +s +n +4130 1852 M +4130 1876 L +s +n +3267 1324 M +4130 1324 L +s +n +3267 1624 M +3267 1324 L +s +n +2630 1624 M +2654 1624 L +s +n +2678 1624 M +2702 1624 L +s +n +2726 1624 M +2750 1624 L +s +n +2774 1624 M +2798 1624 L +s +n +2822 1624 M +2846 1624 L +s +n +2870 1624 M +2894 1624 L +s +n +2918 1624 M +2942 1624 L +s +n +2966 1624 M +2990 1624 L +s +n +3014 1624 M +3038 1624 L +s +n +3062 1624 M +3086 1624 L +s +n +3110 1624 M +3134 1624 L +s +n +3158 1624 M +3182 1624 L +s +n +3206 1624 M +3230 1624 L +s +n +3254 1624 M +3267 1624 L +s +n +2630 1324 M +2630 1624 L +s +n +1767 1324 M +1791 1324 L +s +n +1815 1324 M +1839 1324 L +s +n +1863 1324 M +1887 1324 L +s +n +1911 1324 M +1935 1324 L +s +n +1959 1324 M +1983 1324 L +s +n +2007 1324 M +2031 1324 L +s +n +2055 1324 M +2079 1324 L +s +n +2103 1324 M +2127 1324 L +s +n +2151 1324 M +2175 1324 L +s +n +2199 1324 M +2223 1324 L +s +n +2247 1324 M +2271 1324 L +s +n +2295 1324 M +2319 1324 L +s +n +2343 1324 M +2367 1324 L +s +n +2391 1324 M +2415 1324 L +s +n +2439 1324 M +2463 1324 L +s +n +2487 1324 M +2511 1324 L +s +n +2535 1324 M +2559 1324 L +s +n +2583 1324 M +2607 1324 L +s +n +1767 1887 M +1767 1324 L +s +n +4130 1887 M +4106 1887 L +s +n +4082 1887 M +4058 1887 L +s +n +4034 1887 M +4010 1887 L +s +n +3986 1887 M +3962 1887 L +s +n +3938 1887 M +3914 1887 L +s +n +3890 1887 M +3866 1887 L +s +n +3842 1887 M +3818 1887 L +s +n +3794 1887 M +3770 1887 L +s +n +3746 1887 M +3722 1887 L +s +n +3698 1887 M +3674 1887 L +s +n +3650 1887 M +3626 1887 L +s +n +3602 1887 M +3578 1887 L +s +n +3554 1887 M +3530 1887 L +s +n +3506 1887 M +3482 1887 L +s +n +3458 1887 M +3434 1887 L +s +n +3410 1887 M +3386 1887 L +s +n +3362 1887 M +3338 1887 L +s +n +3314 1887 M +3290 1887 L +s +n +3266 1887 M +3242 1887 L +s +n +3218 1887 M +3194 1887 L +s +n +3170 1887 M +3146 1887 L +s +n +3122 1887 M +3098 1887 L +s +n +3074 1887 M +3050 1887 L +s +n +3026 1887 M +3002 1887 L +s +n +2978 1887 M +2954 1887 L +s +n +2930 1887 M +2906 1887 L +s +n +2882 1887 M +2858 1887 L +s +n +2834 1887 M +2810 1887 L +s +n +2786 1887 M +2762 1887 L +s +n +2738 1887 M +2714 1887 L +s +n +2690 1887 M +2666 1887 L +s +n +2642 1887 M +2618 1887 L +s +n +2594 1887 M +2570 1887 L +s +n +2546 1887 M +2522 1887 L +s +n +2498 1887 M +2474 1887 L +s +n +2450 1887 M +2426 1887 L +s +n +2402 1887 M +2378 1887 L +s +n +2354 1887 M +2330 1887 L +s +n +2306 1887 M +2282 1887 L +s +n +2258 1887 M +2234 1887 L +s +n +2210 1887 M +2186 1887 L +s +n +2162 1887 M +2138 1887 L +s +n +2114 1887 M +2090 1887 L +s +n +2066 1887 M +2042 1887 L +s +n +2018 1887 M +1994 1887 L +s +n +1970 1887 M +1946 1887 L +s +n +1922 1887 M +1898 1887 L +s +n +1874 1887 M +1850 1887 L +s +n +1826 1887 M +1802 1887 L +s +n +1778 1887 M +1767 1887 L +s +n +2630 1362 M +2967 1362 L +s +n +2967 1062 M +2967 1086 L +s +n +2967 1110 M +2967 1134 L +s +n +2967 1158 M +2967 1182 L +s +n +2967 1206 M +2967 1230 L +s +n +2967 1254 M +2967 1278 L +s +n +2967 1302 M +2967 1326 L +s +n +2967 1350 M +2967 1362 L +s +n +3267 1324 M +3267 1062 L +s +n +3267 1062 M +2930 1062 L +s +n +2705 1062 M +2930 1062 L +s +n +2705 1362 M +2705 1062 L +s +n +2630 1062 M +2630 1324 L +s +n +2330 1062 M +2630 1062 L +s +n +2330 762 M +2330 1062 L +s +n +1767 762 M +1791 762 L +s +n +1815 762 M +1839 762 L +s +n +1863 762 M +1887 762 L +s +n +1911 762 M +1935 762 L +s +n +1959 762 M +1983 762 L +s +n +2007 762 M +2031 762 L +s +n +2055 762 M +2079 762 L +s +n +2103 762 M +2127 762 L +s +n +2151 762 M +2175 762 L +s +n +2199 762 M +2223 762 L +s +n +2247 762 M +2271 762 L +s +n +2295 762 M +2319 762 L +s +n +1767 1324 M +1767 762 L +s +n +1767 199 M +1767 762 L +s +n +2330 762 M +2330 738 L +s +n +2330 714 M +2330 690 L +s +n +2330 666 M +2330 642 L +s +n +2330 618 M +2330 594 L +s +n +2330 570 M +2330 546 L +s +n +2330 522 M +2330 498 L +s +n +2330 474 M +2330 450 L +s +n +2330 426 M +2330 402 L +s +n +2330 378 M +2330 354 L +s +n +2330 330 M +2330 306 L +s +n +2330 282 M +2330 258 L +s +n +2330 234 M +2330 210 L +s +n +1767 199 M +2330 199 L +s +n +2630 199 M +2330 199 L +s +n +2330 762 M +2630 762 L +s +n +2630 199 M +2630 762 L +s +n +4130 2449 M +4130 1887 L +s +n +1767 1887 M +1767 1911 L +s +n +1767 1935 M +1767 1959 L +s +n +1767 1983 M +1767 2007 L +s +n +1767 2031 M +1767 2055 L +s +n +1767 2079 M +1767 2103 L +s +n +1767 2127 M +1767 2151 L +s +n +1767 2175 M +1767 2199 L +s +n +1767 2223 M +1767 2247 L +s +n +1767 2271 M +1767 2295 L +s +n +1767 2319 M +1767 2343 L +s +n +1767 2367 M +1767 2391 L +s +n +1767 2415 M +1767 2439 L +s +n +2330 2449 M +1767 2449 L +s +n +1205 1887 M +1767 1887 L +s +n +1767 2449 M +1205 2449 L +s +n +1205 1887 M +1205 2449 L +s +n +2330 2449 M +2330 2149 L +s +n +2967 2149 M +2943 2149 L +s +n +2919 2149 M +2895 2149 L +s +n +2871 2149 M +2847 2149 L +s +n +2823 2149 M +2799 2149 L +s +n +2775 2149 M +2751 2149 L +s +n +2727 2149 M +2703 2149 L +s +n +2679 2149 M +2655 2149 L +s +n +2631 2149 M +2607 2149 L +s +n +2583 2149 M +2559 2149 L +s +n +2535 2149 M +2511 2149 L +s +n +2487 2149 M +2463 2149 L +s +n +2439 2149 M +2415 2149 L +s +n +2391 2149 M +2367 2149 L +s +n +2343 2149 M +2330 2149 L +s +n +2967 2449 M +2967 2149 L +s +n +4130 2449 M +4106 2449 L +s +n +4082 2449 M +4058 2449 L +s +n +4034 2449 M +4010 2449 L +s +n +3986 2449 M +3962 2449 L +s +n +3938 2449 M +3914 2449 L +s +n +3890 2449 M +3866 2449 L +s +n +3842 2449 M +3818 2449 L +s +n +3794 2449 M +3770 2449 L +s +n +3746 2449 M +3722 2449 L +s +n +3698 2449 M +3674 2449 L +s +n +3650 2449 M +3626 2449 L +s +n +3602 2449 M +3578 2449 L +s +n +3554 2449 M +3530 2449 L +s +n +3506 2449 M +3482 2449 L +s +n +3458 2449 M +3434 2449 L +s +n +3410 2449 M +3386 2449 L +s +n +3362 2449 M +3338 2449 L +s +n +3314 2449 M +3290 2449 L +s +n +3266 2449 M +3242 2449 L +s +n +3218 2449 M +3194 2449 L +s +n +3170 2449 M +3146 2449 L +s +n +3122 2449 M +3098 2449 L +s +n +3074 2449 M +3050 2449 L +s +n +3026 2449 M +3002 2449 L +s +n +2978 2449 M +2967 2449 L +s +n +2967 2412 M +2630 2412 L +s +n +2630 2712 M +2630 2688 L +s +n +2630 2664 M +2630 2640 L +s +n +2630 2616 M +2630 2592 L +s +n +2630 2568 M +2630 2544 L +s +n +2630 2520 M +2630 2496 L +s +n +2630 2472 M +2630 2448 L +s +n +2630 2424 M +2630 2412 L +s +n +2330 2449 M +2330 2712 L +s +n +2630 2712 M +2330 2712 L +s +n +2892 2712 M +2630 2712 L +s +n +2892 2412 M +2892 2712 L +s +n +2967 2449 M +2967 2712 L +s +n +3267 2712 M +2967 2712 L +s +n +3267 3012 M +3267 2712 L +s +n +4130 2449 M +4130 3012 L +s +n +3267 3012 M +3291 3012 L +s +n +3315 3012 M +3339 3012 L +s +n +3363 3012 M +3387 3012 L +s +n +3411 3012 M +3435 3012 L +s +n +3459 3012 M +3483 3012 L +s +n +3507 3012 M +3531 3012 L +s +n +3555 3012 M +3579 3012 L +s +n +3603 3012 M +3627 3012 L +s +n +3651 3012 M +3675 3012 L +s +n +3699 3012 M +3723 3012 L +s +n +3747 3012 M +3771 3012 L +s +n +3795 3012 M +3819 3012 L +s +n +3843 3012 M +3867 3012 L +s +n +3891 3012 M +3915 3012 L +s +n +3939 3012 M +3963 3012 L +s +n +3987 3012 M +4011 3012 L +s +n +4035 3012 M +4059 3012 L +s +n +4083 3012 M +4107 3012 L +s +n +4130 3574 M +4130 3012 L +s +n +3267 3012 M +3267 3036 L +s +n +3267 3060 M +3267 3084 L +s +n +3267 3108 M +3267 3132 L +s +n +3267 3156 M +3267 3180 L +s +n +3267 3204 M +3267 3228 L +s +n +3267 3252 M +3267 3276 L +s +n +3267 3300 M +3267 3324 L +s +n +3267 3348 M +3267 3372 L +s +n +3267 3396 M +3267 3420 L +s +n +3267 3444 M +3267 3468 L +s +n +3267 3492 M +3267 3516 L +s +n +3267 3540 M +3267 3564 L +s +n +4130 3574 M +3267 3574 L +s +n +2967 3574 M +3267 3574 L +s +n +2967 3012 M +2967 3574 L +s +n +3267 3012 M +2967 3012 L +s +%%IncludeFont: Helvetica +[0 150 150 0 0 0]/Helvetica MF +(R)2453 1964 MS +(N)3353 1964 MS +(T)2453 1146 MS +[150 0 0 -150 0 0]/Helvetica MF +(E)1436 4425 MS +(U)2332 4425 MS +[-150 0 0 150 0 0]/Helvetica MF +(S)1536 5160 MS +(R)2440 5160 MS +[0 150 150 0 0 0]/Helvetica MF +(H)3353 3389 MS +[-150 0 0 150 0 0]/Helvetica MF +(J)2498 285 MS +[150 0 0 -150 0 0]/Helvetica MF +(I)2440 675 MS +[0 -150 -150 0 0 0]/Helvetica MF +(G)2844 1551 MS +[0 150 150 0 0 0]/Helvetica MF +(B)3053 1443 MS +(L)3053 1151 MS +[0 -150 -150 0 0 0]/Helvetica MF +(Q)2881 1251 MS +[-150 0 0 150 0 0]/Helvetica MF +(F)2847 1710 MS +(Z)3142 1710 MS +[0 150 150 0 0 0]/Helvetica MF +(E)2753 1968 MS +[0 -150 -150 0 0 0]/Helvetica MF +(D)3143 2072 MS +[-150 0 0 150 0 0]/Helvetica MF +(K)2550 2535 MS +(T)2807 2535 MS +[150 0 0 -150 0 0]/Helvetica MF +(W)2738 2325 MS +(T)2452 2325 MS +[0 150 150 0 0 0]/Helvetica MF +(4)3353 2276 MS +[0 -150 -150 0 0 0]/Helvetica MF +(M)3143 2378 MS +[150 0 0 -150 0 0]/Helvetica MF +(P)3049 2625 MS +[0 150 150 0 0 0]/Helvetica MF +(R)3353 3089 MS +(C)3053 3089 MS +(S)3053 3393 MS +[-150 0 0 150 0 0]/Helvetica MF +(A)2136 5160 MS +(T)1831 5160 MS +[150 0 0 -150 0 0]/Helvetica MF +(T)2039 4425 MS +(N)1730 4425 MS +[0 150 150 0 0 0]/Helvetica MF +(H)2041 4589 MS +[0 -150 -150 0 0 0]/Helvetica MF +(T)1829 4689 MS +[0 150 150 0 0 0]/Helvetica MF +(U)2041 4889 MS +[0 -150 -150 0 0 0]/Helvetica MF +(N)1829 4997 MS +[150 0 0 -150 0 0]/Helvetica MF +(3)1444 5550 MS +(D)1730 5550 MS +[0 150 150 0 0 0]/Helvetica MF +(R)2003 5714 MS +(E)1741 5718 MS +(V)1403 6018 MS +[0 -150 -150 0 0 0]/Helvetica MF +(K)2468 5820 MS +(Y)2468 6120 MS +[0 150 150 0 0 0]/Helvetica MF +(P)1441 4068 MS +[0 -150 -150 0 0 0]/Helvetica MF +(T)2431 4164 MS +(F)2131 4164 MS +[0 150 150 0 0 0]/Helvetica MF +(A)1739 4068 MS +[-150 0 0 150 0 0]/Helvetica MF +(B)1536 3773 MS +[0 -150 -150 0 0 0]/Helvetica MF +(G)2431 3876 MS +(O)2131 3876 MS +[-150 0 0 150 0 0]/Helvetica MF +(I)1805 3773 MS +showpage +%%Page: 2 2 +13 779.762 translate 72 600 div dup neg scale +0 0 transform .25 add round .25 sub exch .25 add round .25 sub exch itransform translate +1 j +1 setlinecap +6 sl +n +4092 3649 M +4092 3087 L +s +n +4092 3649 M +3230 3649 L +s +n +3230 3387 M +3230 3411 L +s +n +3230 3435 M +3230 3459 L +s +n +3230 3483 M +3230 3507 L +s +n +3230 3531 M +3230 3555 L +s +n +3230 3579 M +3230 3603 L +s +n +3230 3627 M +3230 3649 L +s +n +3230 3649 M +2930 3649 L +s +n +2930 3387 M +2930 3649 L +s +n +305 1399 M +305 1962 L +s +n +605 1399 M +305 1399 L +s +n +605 1962 M +305 1962 L +s +n +605 1399 M +605 1423 L +s +n +605 1447 M +605 1471 L +s +n +605 1495 M +605 1519 L +s +n +605 1543 M +605 1567 L +s +n +605 1591 M +605 1615 L +s +n +605 1639 M +605 1663 L +s +n +605 1687 M +605 1711 L +s +n +605 1735 M +605 1759 L +s +n +605 1783 M +605 1807 L +s +n +605 1831 M +605 1855 L +s +n +605 1879 M +605 1903 L +s +n +605 1927 M +605 1951 L +s +n +1167 1399 M +605 1399 L +s +n +605 1962 M +1167 1962 L +s +n +1167 1399 M +1167 1423 L +s +n +1167 1447 M +1167 1471 L +s +n +1167 1495 M +1167 1519 L +s +n +1167 1543 M +1167 1567 L +s +n +1167 1591 M +1167 1615 L +s +n +1167 1639 M +1167 1663 L +s +n +1167 1687 M +1167 1711 L +s +n +1167 1735 M +1167 1759 L +s +n +1167 1783 M +1167 1807 L +s +n +1167 1831 M +1167 1855 L +s +n +1167 1879 M +1167 1903 L +s +n +1167 1927 M +1167 1951 L +s +n +1167 1399 M +1730 1399 L +s +n +1167 1962 M +1730 1962 L +s +n +1730 1399 M +1730 1423 L +s +n +1730 1447 M +1730 1471 L +s +n +1730 1495 M +1730 1519 L +s +n +1730 1543 M +1730 1567 L +s +n +1730 1591 M +1730 1615 L +s +n +1730 1639 M +1730 1663 L +s +n +1730 1687 M +1730 1711 L +s +n +1730 1735 M +1730 1759 L +s +n +1730 1783 M +1730 1807 L +s +n +1730 1831 M +1730 1855 L +s +n +1730 1879 M +1730 1903 L +s +n +1730 1927 M +1730 1951 L +s +n +1730 1399 M +1754 1399 L +s +n +1778 1399 M +1802 1399 L +s +n +1826 1399 M +1850 1399 L +s +n +1874 1399 M +1898 1399 L +s +n +1922 1399 M +1946 1399 L +s +n +1970 1399 M +1994 1399 L +s +n +2018 1399 M +2042 1399 L +s +n +2066 1399 M +2090 1399 L +s +n +2114 1399 M +2138 1399 L +s +n +2162 1399 M +2186 1399 L +s +n +2210 1399 M +2234 1399 L +s +n +2258 1399 M +2282 1399 L +s +n +2306 1399 M +2330 1399 L +s +n +2354 1399 M +2378 1399 L +s +n +2402 1399 M +2426 1399 L +s +n +2450 1399 M +2474 1399 L +s +n +2498 1399 M +2522 1399 L +s +n +2546 1399 M +2570 1399 L +s +n +2594 1399 M +2618 1399 L +s +n +2642 1399 M +2666 1399 L +s +n +2690 1399 M +2714 1399 L +s +n +2738 1399 M +2762 1399 L +s +n +2786 1399 M +2810 1399 L +s +n +2834 1399 M +2858 1399 L +s +n +2882 1399 M +2892 1399 L +s +n +2892 1699 M +2892 1399 L +s +n +3230 1699 M +2892 1699 L +s +n +3230 1399 M +3230 1699 L +s +n +4092 1399 M +3230 1399 L +s +n +4092 1962 M +4092 1938 L +s +n +4092 1914 M +4092 1890 L +s +n +4092 1866 M +4092 1842 L +s +n +4092 1818 M +4092 1794 L +s +n +4092 1770 M +4092 1746 L +s +n +4092 1722 M +4092 1698 L +s +n +4092 1674 M +4092 1650 L +s +n +4092 1626 M +4092 1602 L +s +n +4092 1578 M +4092 1554 L +s +n +4092 1530 M +4092 1506 L +s +n +4092 1482 M +4092 1458 L +s +n +4092 1434 M +4092 1410 L +s +n +1730 1962 M +1754 1962 L +s +n +1778 1962 M +1802 1962 L +s +n +1826 1962 M +1850 1962 L +s +n +1874 1962 M +1898 1962 L +s +n +1922 1962 M +1946 1962 L +s +n +1970 1962 M +1994 1962 L +s +n +2018 1962 M +2042 1962 L +s +n +2066 1962 M +2090 1962 L +s +n +2114 1962 M +2138 1962 L +s +n +2162 1962 M +2186 1962 L +s +n +2210 1962 M +2234 1962 L +s +n +2258 1962 M +2282 1962 L +s +n +2306 1962 M +2330 1962 L +s +n +2354 1962 M +2378 1962 L +s +n +2402 1962 M +2426 1962 L +s +n +2450 1962 M +2474 1962 L +s +n +2498 1962 M +2522 1962 L +s +n +2546 1962 M +2570 1962 L +s +n +2594 1962 M +2618 1962 L +s +n +2642 1962 M +2666 1962 L +s +n +2690 1962 M +2714 1962 L +s +n +2738 1962 M +2762 1962 L +s +n +2786 1962 M +2810 1962 L +s +n +2834 1962 M +2858 1962 L +s +n +2882 1962 M +2906 1962 L +s +n +2930 1962 M +2954 1962 L +s +n +2978 1962 M +3002 1962 L +s +n +3026 1962 M +3050 1962 L +s +n +3074 1962 M +3098 1962 L +s +n +3122 1962 M +3146 1962 L +s +n +3170 1962 M +3194 1962 L +s +n +3218 1962 M +3242 1962 L +s +n +3266 1962 M +3290 1962 L +s +n +3314 1962 M +3338 1962 L +s +n +3362 1962 M +3386 1962 L +s +n +3410 1962 M +3434 1962 L +s +n +3458 1962 M +3482 1962 L +s +n +3506 1962 M +3530 1962 L +s +n +3554 1962 M +3578 1962 L +s +n +3602 1962 M +3626 1962 L +s +n +3650 1962 M +3674 1962 L +s +n +3698 1962 M +3722 1962 L +s +n +3746 1962 M +3770 1962 L +s +n +3794 1962 M +3818 1962 L +s +n +3842 1962 M +3866 1962 L +s +n +3890 1962 M +3914 1962 L +s +n +3938 1962 M +3962 1962 L +s +n +3986 1962 M +4010 1962 L +s +n +4034 1962 M +4058 1962 L +s +n +4082 1962 M +4092 1962 L +s +n +2892 1399 M +2892 837 L +s +n +2630 837 M +2654 837 L +s +n +2678 837 M +2702 837 L +s +n +2726 837 M +2750 837 L +s +n +2774 837 M +2798 837 L +s +n +2822 837 M +2846 837 L +s +n +2870 837 M +2892 837 L +s +n +2630 1137 M +2630 837 L +s +n +2292 1137 M +2630 1137 L +s +n +2292 837 M +2292 1137 L +s +n +1730 837 M +2292 837 L +s +n +1730 1399 M +1730 837 L +s +n +4655 1399 M +4092 1399 L +s +n +4655 1399 M +4655 1962 L +s +n +4092 2524 M +4092 1962 L +s +n +3530 2524 M +3554 2524 L +s +n +3578 2524 M +3602 2524 L +s +n +3626 2524 M +3650 2524 L +s +n +3674 2524 M +3698 2524 L +s +n +3722 2524 M +3746 2524 L +s +n +3770 2524 M +3794 2524 L +s +n +3818 2524 M +3842 2524 L +s +n +3866 2524 M +3890 2524 L +s +n +3914 2524 M +3938 2524 L +s +n +3962 2524 M +3986 2524 L +s +n +4010 2524 M +4034 2524 L +s +n +4058 2524 M +4082 2524 L +s +n +3530 2224 M +3530 2524 L +s +n +2892 2224 M +2916 2224 L +s +n +2940 2224 M +2964 2224 L +s +n +2988 2224 M +3012 2224 L +s +n +3036 2224 M +3060 2224 L +s +n +3084 2224 M +3108 2224 L +s +n +3132 2224 M +3156 2224 L +s +n +3180 2224 M +3204 2224 L +s +n +3228 2224 M +3252 2224 L +s +n +3276 2224 M +3300 2224 L +s +n +3324 2224 M +3348 2224 L +s +n +3372 2224 M +3396 2224 L +s +n +3420 2224 M +3444 2224 L +s +n +3468 2224 M +3492 2224 L +s +n +3516 2224 M +3530 2224 L +s +n +2892 2524 M +2892 2224 L +s +n +2630 2524 M +2892 2524 L +s +n +2630 2224 M +2630 2524 L +s +n +2292 2224 M +2316 2224 L +s +n +2340 2224 M +2364 2224 L +s +n +2388 2224 M +2412 2224 L +s +n +2436 2224 M +2460 2224 L +s +n +2484 2224 M +2508 2224 L +s +n +2532 2224 M +2556 2224 L +s +n +2580 2224 M +2604 2224 L +s +n +2628 2224 M +2630 2224 L +s +n +2292 2524 M +2292 2224 L +s +n +1730 2524 M +2292 2524 L +s +n +1730 1962 M +1730 2524 L +s +n +2292 2524 M +2292 2787 L +s +n +2630 2524 M +2630 2787 L +s +n +2292 2787 M +2630 2787 L +s +n +2892 2487 M +3230 2487 L +s +n +3230 2787 M +3230 2487 L +s +n +3530 2524 M +3530 2787 L +s +n +3230 2787 M +3530 2787 L +s +n +4092 2524 M +4092 3087 L +s +n +3530 2787 M +3530 3087 L +s +n +4092 3087 M +4068 3087 L +s +n +4044 3087 M +4020 3087 L +s +n +3996 3087 M +3972 3087 L +s +n +3948 3087 M +3924 3087 L +s +n +3900 3087 M +3876 3087 L +s +n +3852 3087 M +3828 3087 L +s +n +3804 3087 M +3780 3087 L +s +n +3756 3087 M +3732 3087 L +s +n +3708 3087 M +3684 3087 L +s +n +3660 3087 M +3636 3087 L +s +n +3612 3087 M +3588 3087 L +s +n +3564 3087 M +3540 3087 L +s +n +3530 3087 M +3530 3111 L +s +n +3530 3135 M +3530 3159 L +s +n +3530 3183 M +3530 3207 L +s +n +3530 3231 M +3530 3255 L +s +n +3530 3279 M +3530 3303 L +s +n +3530 3327 M +3530 3351 L +s +n +3530 3375 M +3530 3387 L +s +n +3530 3387 M +3230 3387 L +s +n +3530 3087 M +2967 3087 L +s +n +2967 3387 M +2967 3087 L +s +n +3230 3387 M +2967 3387 L +s +n +2930 3387 M +2967 3387 L +s +n +2892 274 M +2892 298 L +s +n +2892 322 M +2892 346 L +s +n +2892 370 M +2892 394 L +s +n +2892 418 M +2892 442 L +s +n +2892 466 M +2892 490 L +s +n +2892 514 M +2892 538 L +s +n +2892 562 M +2892 586 L +s +n +2892 610 M +2892 634 L +s +n +2892 658 M +2892 682 L +s +n +2892 706 M +2892 730 L +s +n +2892 754 M +2892 778 L +s +n +2892 802 M +2892 826 L +s +n +2630 837 M +2630 813 L +s +n +2630 789 M +2630 765 L +s +n +2630 741 M +2630 717 L +s +n +2630 693 M +2630 669 L +s +n +2630 645 M +2630 621 L +s +n +2630 597 M +2630 573 L +s +n +2630 549 M +2630 525 L +s +n +2630 501 M +2630 477 L +s +n +2630 453 M +2630 429 L +s +n +2630 405 M +2630 381 L +s +n +2630 357 M +2630 333 L +s +n +2630 309 M +2630 285 L +s +n +2630 837 M +2330 837 L +s +n +3192 274 M +2330 274 L +s +n +2330 837 M +2330 274 L +s +n +2892 837 M +3455 837 L +s +n +3455 537 M +3455 837 L +s +n +3192 537 M +3216 537 L +s +n +3240 537 M +3264 537 L +s +n +3288 537 M +3312 537 L +s +n +3336 537 M +3360 537 L +s +n +3384 537 M +3408 537 L +s +n +3432 537 M +3455 537 L +s +n +3192 199 M +3192 537 L +s +n +3455 537 M +3455 199 L +s +n +3192 199 M +3455 199 L +s +n +4655 1962 M +4092 1962 L +s +n +2667 3274 M +2667 3837 L +s +n +2105 3274 M +2667 3274 L +s +n +2105 3837 M +2129 3837 L +s +n +2153 3837 M +2177 3837 L +s +n +2201 3837 M +2225 3837 L +s +n +2249 3837 M +2273 3837 L +s +n +2297 3837 M +2321 3837 L +s +n +2345 3837 M +2369 3837 L +s +n +2393 3837 M +2417 3837 L +s +n +2441 3837 M +2465 3837 L +s +n +2489 3837 M +2513 3837 L +s +n +2537 3837 M +2561 3837 L +s +n +2585 3837 M +2609 3837 L +s +n +2633 3837 M +2657 3837 L +s +n +2105 3274 M +2105 3298 L +s +n +2105 3322 M +2105 3346 L +s +n +2105 3370 M +2105 3394 L +s +n +2105 3418 M +2105 3442 L +s +n +2105 3466 M +2105 3490 L +s +n +2105 3514 M +2105 3538 L +s +n +2105 3562 M +2105 3586 L +s +n +2105 3610 M +2105 3634 L +s +n +2105 3658 M +2105 3682 L +s +n +2105 3706 M +2105 3730 L +s +n +2105 3754 M +2105 3778 L +s +n +2105 3802 M +2105 3826 L +s +n +2105 4137 M +2105 3837 L +s +n +2667 4137 M +2667 3837 L +s +n +2105 4137 M +2667 4137 L +s +n +1542 3274 M +1518 3274 L +s +n +1494 3274 M +1470 3274 L +s +n +1446 3274 M +1422 3274 L +s +n +1398 3274 M +1374 3274 L +s +n +1350 3274 M +1326 3274 L +s +n +1302 3274 M +1278 3274 L +s +n +1254 3274 M +1230 3274 L +s +n +1206 3274 M +1182 3274 L +s +n +1158 3274 M +1134 3274 L +s +n +1110 3274 M +1086 3274 L +s +n +1062 3274 M +1038 3274 L +s +n +1014 3274 M +990 3274 L +s +n +1542 4437 M +1542 4413 L +s +n +1542 4389 M +1542 4365 L +s +n +1542 4341 M +1542 4317 L +s +n +1542 4293 M +1542 4269 L +s +n +1542 4245 M +1542 4221 L +s +n +1542 4197 M +1542 4173 L +s +n +1542 4149 M +1542 4125 L +s +n +1542 4101 M +1542 4077 L +s +n +1542 4053 M +1542 4029 L +s +n +1542 4005 M +1542 3981 L +s +n +1542 3957 M +1542 3933 L +s +n +1542 3909 M +1542 3885 L +s +n +1542 3861 M +1542 3837 L +s +n +1542 3813 M +1542 3789 L +s +n +1542 3765 M +1542 3741 L +s +n +1542 3717 M +1542 3693 L +s +n +1542 3669 M +1542 3645 L +s +n +1542 3621 M +1542 3597 L +s +n +1542 3573 M +1542 3549 L +s +n +1542 3525 M +1542 3501 L +s +n +1542 3477 M +1542 3453 L +s +n +1542 3429 M +1542 3405 L +s +n +1542 3381 M +1542 3357 L +s +n +1542 3333 M +1542 3309 L +s +n +1542 3285 M +1542 3274 L +s +n +1542 4437 M +1566 4437 L +s +n +1590 4437 M +1614 4437 L +s +n +1638 4437 M +1662 4437 L +s +n +1686 4437 M +1710 4437 L +s +n +1734 4437 M +1758 4437 L +s +n +1782 4437 M +1805 4437 L +s +n +2105 3837 M +1805 3837 L +s +n +1805 4437 M +1805 3837 L +s +n +1542 3274 M +1542 2712 L +s +n +980 3274 M +980 2712 L +s +n +1542 2712 M +980 2712 L +s +n +2105 3274 M +1542 3274 L +s +n +1542 4437 M +1242 4437 L +s +n +1805 4437 M +1805 4737 L +s +n +1542 4437 M +1542 4737 L +s +n +1805 4737 M +1542 4737 L +s +n +980 3274 M +980 3298 L +s +n +980 3322 M +980 3346 L +s +n +980 3370 M +980 3394 L +s +n +980 3418 M +980 3442 L +s +n +980 3466 M +980 3490 L +s +n +980 3514 M +980 3538 L +s +n +980 3562 M +980 3586 L +s +n +980 3610 M +980 3634 L +s +n +980 3658 M +980 3682 L +s +n +980 3706 M +980 3730 L +s +n +980 3754 M +980 3778 L +s +n +980 3802 M +980 3826 L +s +n +980 3850 M +980 3874 L +s +n +980 3898 M +980 3922 L +s +n +980 3946 M +980 3970 L +s +n +980 3994 M +980 4018 L +s +n +980 4042 M +980 4066 L +s +n +980 4090 M +980 4114 L +s +n +980 4138 M +980 4162 L +s +n +980 4186 M +980 4210 L +s +n +980 4234 M +980 4258 L +s +n +980 4282 M +980 4306 L +s +n +980 4330 M +980 4354 L +s +n +980 4378 M +980 4402 L +s +n +980 4426 M +980 4450 L +s +n +980 4474 M +980 4498 L +s +n +980 4522 M +980 4546 L +s +n +980 4570 M +980 4594 L +s +n +980 4618 M +980 4642 L +s +n +980 4666 M +980 4690 L +s +n +980 4714 M +980 4738 L +s +n +980 4762 M +980 4786 L +s +n +980 4810 M +980 4834 L +s +n +980 4858 M +980 4882 L +s +n +980 4906 M +980 4930 L +s +n +980 4954 M +980 4978 L +s +n +980 5002 M +980 5026 L +s +n +980 5050 M +980 5074 L +s +n +980 5098 M +980 5122 L +s +n +980 5146 M +980 5170 L +s +n +980 5194 M +980 5218 L +s +n +980 5242 M +980 5266 L +s +n +980 5290 M +980 5314 L +s +n +980 5338 M +980 5362 L +s +n +980 5386 M +980 5410 L +s +n +980 5434 M +980 5458 L +s +n +980 5482 M +980 5506 L +s +n +980 5530 M +980 5554 L +s +n +980 5578 M +980 5602 L +s +n +980 5626 M +980 5637 L +s +n +1542 5637 M +1518 5637 L +s +n +1494 5637 M +1470 5637 L +s +n +1446 5637 M +1422 5637 L +s +n +1398 5637 M +1374 5637 L +s +n +1350 5637 M +1326 5637 L +s +n +1302 5637 M +1278 5637 L +s +n +1254 5637 M +1230 5637 L +s +n +1206 5637 M +1182 5637 L +s +n +1158 5637 M +1134 5637 L +s +n +1110 5637 M +1086 5637 L +s +n +1062 5637 M +1038 5637 L +s +n +1014 5637 M +990 5637 L +s +n +1542 4774 M +1542 4798 L +s +n +1542 4822 M +1542 4846 L +s +n +1542 4870 M +1542 4894 L +s +n +1542 4918 M +1542 4942 L +s +n +1542 4966 M +1542 4990 L +s +n +1542 5014 M +1542 5038 L +s +n +1542 5062 M +1542 5086 L +s +n +1542 5110 M +1542 5134 L +s +n +1542 5158 M +1542 5182 L +s +n +1542 5206 M +1542 5230 L +s +n +1542 5254 M +1542 5278 L +s +n +1542 5302 M +1542 5326 L +s +n +1542 5350 M +1542 5374 L +s +n +1542 5398 M +1542 5422 L +s +n +1542 5446 M +1542 5470 L +s +n +1542 5494 M +1542 5518 L +s +n +1542 5542 M +1542 5566 L +s +n +1542 5590 M +1542 5614 L +s +n +1242 4774 M +1542 4774 L +s +n +1242 4437 M +1242 4461 L +s +n +1242 4485 M +1242 4509 L +s +n +1242 4533 M +1242 4557 L +s +n +1242 4581 M +1242 4605 L +s +n +1242 4629 M +1242 4653 L +s +n +1242 4677 M +1242 4701 L +s +n +1242 4725 M +1242 4749 L +s +n +1242 4773 M +1242 4774 L +s +n +1505 4437 M +1505 4774 L +s +n +1542 4774 M +1805 4774 L +s +n +1805 5074 M +1805 4774 L +s +n +2105 5074 M +1805 5074 L +s +n +1542 5637 M +2105 5637 L +s +n +2105 5074 M +2105 5098 L +s +n +2105 5122 M +2105 5146 L +s +n +2105 5170 M +2105 5194 L +s +n +2105 5218 M +2105 5242 L +s +n +2105 5266 M +2105 5290 L +s +n +2105 5314 M +2105 5338 L +s +n +2105 5362 M +2105 5386 L +s +n +2105 5410 M +2105 5434 L +s +n +2105 5458 M +2105 5482 L +s +n +2105 5506 M +2105 5530 L +s +n +2105 5554 M +2105 5578 L +s +n +2105 5602 M +2105 5626 L +s +n +2667 5637 M +2667 5074 L +s +n +2105 5074 M +2129 5074 L +s +n +2153 5074 M +2177 5074 L +s +n +2201 5074 M +2225 5074 L +s +n +2249 5074 M +2273 5074 L +s +n +2297 5074 M +2321 5074 L +s +n +2345 5074 M +2369 5074 L +s +n +2393 5074 M +2417 5074 L +s +n +2441 5074 M +2465 5074 L +s +n +2489 5074 M +2513 5074 L +s +n +2537 5074 M +2561 5074 L +s +n +2585 5074 M +2609 5074 L +s +n +2633 5074 M +2657 5074 L +s +n +2105 4774 M +2105 5074 L +s +n +2667 4774 M +2667 5074 L +s +n +2667 5637 M +2105 5637 L +s +n +2105 4774 M +2667 4774 L +s +n +1542 6199 M +1542 5637 L +s +n +980 5637 M +980 6199 L +s +n +1542 6199 M +980 6199 L +s +n +980 5637 M +417 5637 L +s +n +980 3274 M +417 3274 L +s +n +417 3837 M +417 3274 L +s +n +417 5074 M +417 5637 L +s +n +417 3837 M +717 3837 L +s +n +417 5074 M +717 5074 L +s +n +717 3837 M +717 3861 L +s +n +717 3885 M +717 3909 L +s +n +717 3933 M +717 3957 L +s +n +717 3981 M +717 4005 L +s +n +717 4029 M +717 4053 L +s +n +717 4077 M +717 4101 L +s +n +717 4125 M +717 4149 L +s +n +717 4173 M +717 4197 L +s +n +717 4221 M +717 4245 L +s +n +717 4269 M +717 4293 L +s +n +717 4317 M +717 4341 L +s +n +717 4365 M +717 4389 L +s +n +717 4413 M +717 4437 L +s +n +717 4461 M +717 4485 L +s +n +717 4509 M +717 4533 L +s +n +717 4557 M +717 4581 L +s +n +717 4605 M +717 4629 L +s +n +717 4653 M +717 4677 L +s +n +717 4701 M +717 4725 L +s +n +717 4749 M +717 4773 L +s +n +717 4797 M +717 4821 L +s +n +717 4845 M +717 4869 L +s +n +717 4893 M +717 4917 L +s +n +717 4941 M +717 4965 L +s +n +717 4989 M +717 5013 L +s +n +717 5037 M +717 5061 L +s +n +417 3837 M +155 3837 L +s +n +155 4437 M +155 3837 L +s +n +455 4437 M +155 4437 L +s +n +417 5074 M +155 5074 L +s +n +155 4774 M +155 5074 L +s +n +455 4774 M +431 4774 L +s +n +407 4774 M +383 4774 L +s +n +359 4774 M +335 4774 L +s +n +311 4774 M +287 4774 L +s +n +263 4774 M +239 4774 L +s +n +215 4774 M +191 4774 L +s +n +167 4774 M +155 4774 L +s +n +455 4774 M +455 4437 L +s +n +155 4512 M +455 4512 L +s +n +155 4774 M +155 4512 L +s +[0 150 150 0 0 0]/Helvetica MF +(E)3316 3468 MS +[0 -150 -150 0 0 0]/Helvetica MF +(H)2506 1322 MS +[150 0 0 -150 0 0]/Helvetica MF +(R)794 4050 MS +(A)798 4950 MS +(Q)1615 4950 MS +(I)1652 4050 MS +(T)3352 3263 MS +(S)3048 3263 MS +[-150 0 0 150 0 0]/Helvetica MF +(C)3152 3473 MS +[150 0 0 -150 0 0]/Helvetica MF +(R)3307 2700 MS +[-150 0 0 150 0 0]/Helvetica MF +(J)3398 2310 MS +(L)3102 2310 MS +[0 150 150 0 0 0]/Helvetica MF +(T)2716 2346 MS +[150 0 0 -150 0 0]/Helvetica MF +(U)2407 2700 MS +[-150 0 0 150 0 0]/Helvetica MF +(O)2519 2310 MS +[0 150 150 0 0 0]/Helvetica MF +(N)2716 2039 MS +[0 -150 -150 0 0 0]/Helvetica MF +(Q)3106 2151 MS +[150 0 0 -150 0 0]/Helvetica MF +(F)2715 1875 MS +[-150 0 0 150 0 0]/Helvetica MF +(K)2811 1485 MS +[150 0 0 -150 0 0]/Helvetica MF +(S)3011 1875 MS +[0 -150 -150 0 0 0]/Helvetica MF +(A)2806 1318 MS +(Z)2806 1014 MS +[150 0 0 -150 0 0]/Helvetica MF +(5)2719 750 MS +[-150 0 0 150 0 0]/Helvetica MF +(E)2811 360 MS +(A)2548 660 MS +[150 0 0 -150 0 0]/Helvetica MF +(N)2444 450 MS +[-150 0 0 150 0 0]/Helvetica MF +(G)3082 660 MS +[150 0 0 -150 0 0]/Helvetica MF +(D)2969 450 MS +[-150 0 0 150 0 0]/Helvetica MF +(P)3373 660 MS +[0 150 150 0 0 0]/Helvetica MF +(F)3282 322 MS +(W)428 1770 MS +(B)428 1480 MS +(K)2491 3918 MS +(U)2191 3914 MS +(F)2491 4897 MS +(O)2191 4884 MS +[150 0 0 -150 0 0]/Helvetica MF +(6)1632 4350 MS +n +1730 4362 M +1617 4362 L +s +[0 150 150 0 0 0]/Helvetica MF +(P)1628 4518 MS +[150 0 0 -150 0 0]/Helvetica MF +(L)1332 4650 MS +[0 -150 -150 0 0 0]/Helvetica MF +(N)1156 4659 MS +(E)1456 4355 MS +(H)1156 4359 MS +[150 0 0 -150 0 0]/Helvetica MF +(A)798 4350 MS +(R)794 4650 MS +(Y)536 4050 MS +(B)536 4950 MS +(E)536 4350 MS +(J)548 4650 MS +(M)225 4050 MS +(U)232 4950 MS +(T)239 4350 MS +[-150 0 0 150 0 0]/Helvetica MF +(G)344 4598 MS +showpage +%%Page: 3 3 +13 779.762 translate 72 600 div dup neg scale +0 0 transform .25 add round .25 sub exch .25 add round .25 sub exch itransform translate +[150 0 0 -150 0 0]/Helvetica MF +(B)1436 2063 MS +1 j +1 setlinecap +6 sl +n +2255 1362 M +1617 1362 L +s +n +755 199 M +1317 199 L +s +n +755 762 M +755 199 L +s +n +1317 762 M +1293 762 L +s +n +1269 762 M +1245 762 L +s +n +1221 762 M +1197 762 L +s +n +1173 762 M +1149 762 L +s +n +1125 762 M +1101 762 L +s +n +1077 762 M +1053 762 L +s +n +1029 762 M +1005 762 L +s +n +981 762 M +957 762 L +s +n +933 762 M +909 762 L +s +n +885 762 M +861 762 L +s +n +837 762 M +813 762 L +s +n +789 762 M +765 762 L +s +n +1317 199 M +1317 223 L +s +n +1317 247 M +1317 271 L +s +n +1317 295 M +1317 319 L +s +n +1317 343 M +1317 367 L +s +n +1317 391 M +1317 415 L +s +n +1317 439 M +1317 463 L +s +n +1317 487 M +1317 511 L +s +n +1317 535 M +1317 559 L +s +n +1317 583 M +1317 607 L +s +n +1317 631 M +1317 655 L +s +n +1317 679 M +1317 703 L +s +n +1317 727 M +1317 751 L +s +n +1617 199 M +1317 199 L +s +n +1617 762 M +1317 762 L +s +n +1617 199 M +1617 762 L +s +n +755 1324 M +755 762 L +s +n +1317 1062 M +1317 762 L +s +n +1617 1062 M +1317 1062 L +s +n +1617 1324 M +1617 1062 L +s +n +755 1324 M +779 1324 L +s +n +803 1324 M +827 1324 L +s +n +851 1324 M +875 1324 L +s +n +899 1324 M +923 1324 L +s +n +947 1324 M +971 1324 L +s +n +995 1324 M +1019 1324 L +s +n +1043 1324 M +1067 1324 L +s +n +1091 1324 M +1115 1324 L +s +n +1139 1324 M +1163 1324 L +s +n +1187 1324 M +1211 1324 L +s +n +1235 1324 M +1259 1324 L +s +n +1283 1324 M +1307 1324 L +s +n +1331 1324 M +1355 1324 L +s +n +1379 1324 M +1403 1324 L +s +n +1427 1324 M +1451 1324 L +s +n +1475 1324 M +1499 1324 L +s +n +1523 1324 M +1547 1324 L +s +n +1571 1324 M +1595 1324 L +s +n +3117 199 M +2555 199 L +s +n +3117 762 M +3117 199 L +s +n +2555 762 M +2579 762 L +s +n +2603 762 M +2627 762 L +s +n +2651 762 M +2675 762 L +s +n +2699 762 M +2723 762 L +s +n +2747 762 M +2771 762 L +s +n +2795 762 M +2819 762 L +s +n +2843 762 M +2867 762 L +s +n +2891 762 M +2915 762 L +s +n +2939 762 M +2963 762 L +s +n +2987 762 M +3011 762 L +s +n +3035 762 M +3059 762 L +s +n +3083 762 M +3107 762 L +s +n +2555 199 M +2555 223 L +s +n +2555 247 M +2555 271 L +s +n +2555 295 M +2555 319 L +s +n +2555 343 M +2555 367 L +s +n +2555 391 M +2555 415 L +s +n +2555 439 M +2555 463 L +s +n +2555 487 M +2555 511 L +s +n +2555 535 M +2555 559 L +s +n +2555 583 M +2555 607 L +s +n +2555 631 M +2555 655 L +s +n +2555 679 M +2555 703 L +s +n +2555 727 M +2555 751 L +s +n +2255 199 M +2555 199 L +s +n +2255 762 M +2555 762 L +s +n +2255 199 M +2255 762 L +s +n +3117 1324 M +3117 762 L +s +n +2555 1062 M +2555 762 L +s +n +2255 1062 M +2555 1062 L +s +n +2255 1324 M +2255 1062 L +s +n +3117 1324 M +3093 1324 L +s +n +3069 1324 M +3045 1324 L +s +n +3021 1324 M +2997 1324 L +s +n +2973 1324 M +2949 1324 L +s +n +2925 1324 M +2901 1324 L +s +n +2877 1324 M +2853 1324 L +s +n +2829 1324 M +2805 1324 L +s +n +2781 1324 M +2757 1324 L +s +n +2733 1324 M +2709 1324 L +s +n +2685 1324 M +2661 1324 L +s +n +2637 1324 M +2613 1324 L +s +n +2589 1324 M +2565 1324 L +s +n +2541 1324 M +2517 1324 L +s +n +2493 1324 M +2469 1324 L +s +n +2445 1324 M +2421 1324 L +s +n +2397 1324 M +2373 1324 L +s +n +2349 1324 M +2325 1324 L +s +n +2301 1324 M +2277 1324 L +s +n +755 1887 M +755 1863 L +s +n +755 1839 M +755 1815 L +s +n +755 1791 M +755 1767 L +s +n +755 1743 M +755 1719 L +s +n +755 1695 M +755 1671 L +s +n +755 1647 M +755 1623 L +s +n +755 1599 M +755 1575 L +s +n +755 1551 M +755 1527 L +s +n +755 1503 M +755 1479 L +s +n +755 1455 M +755 1431 L +s +n +755 1407 M +755 1383 L +s +n +755 1359 M +755 1335 L +s +n +3117 1887 M +3117 1863 L +s +n +3117 1839 M +3117 1815 L +s +n +3117 1791 M +3117 1767 L +s +n +3117 1743 M +3117 1719 L +s +n +3117 1695 M +3117 1671 L +s +n +3117 1647 M +3117 1623 L +s +n +3117 1599 M +3117 1575 L +s +n +3117 1551 M +3117 1527 L +s +n +3117 1503 M +3117 1479 L +s +n +3117 1455 M +3117 1431 L +s +n +3117 1407 M +3117 1383 L +s +n +3117 1359 M +3117 1335 L +s +n +755 1887 M +779 1887 L +s +n +803 1887 M +827 1887 L +s +n +851 1887 M +875 1887 L +s +n +899 1887 M +923 1887 L +s +n +947 1887 M +971 1887 L +s +n +995 1887 M +1019 1887 L +s +n +1043 1887 M +1067 1887 L +s +n +1091 1887 M +1115 1887 L +s +n +1139 1887 M +1163 1887 L +s +n +1187 1887 M +1211 1887 L +s +n +1235 1887 M +1259 1887 L +s +n +1283 1887 M +1307 1887 L +s +n +1331 1887 M +1355 1887 L +s +n +1379 1887 M +1403 1887 L +s +n +1427 1887 M +1451 1887 L +s +n +1475 1887 M +1499 1887 L +s +n +1523 1887 M +1547 1887 L +s +n +1571 1887 M +1595 1887 L +s +n +1619 1887 M +1643 1887 L +s +n +1667 1887 M +1691 1887 L +s +n +1715 1887 M +1739 1887 L +s +n +1763 1887 M +1787 1887 L +s +n +1811 1887 M +1835 1887 L +s +n +1859 1887 M +1883 1887 L +s +n +1907 1887 M +1931 1887 L +s +n +1955 1887 M +1979 1887 L +s +n +2003 1887 M +2027 1887 L +s +n +2051 1887 M +2075 1887 L +s +n +2099 1887 M +2123 1887 L +s +n +2147 1887 M +2171 1887 L +s +n +2195 1887 M +2219 1887 L +s +n +2243 1887 M +2267 1887 L +s +n +2291 1887 M +2315 1887 L +s +n +2339 1887 M +2363 1887 L +s +n +2387 1887 M +2411 1887 L +s +n +2435 1887 M +2459 1887 L +s +n +2483 1887 M +2507 1887 L +s +n +2531 1887 M +2555 1887 L +s +n +2579 1887 M +2603 1887 L +s +n +2627 1887 M +2651 1887 L +s +n +2675 1887 M +2699 1887 L +s +n +2723 1887 M +2747 1887 L +s +n +2771 1887 M +2795 1887 L +s +n +2819 1887 M +2843 1887 L +s +n +2867 1887 M +2891 1887 L +s +n +2915 1887 M +2939 1887 L +s +n +2963 1887 M +2987 1887 L +s +n +3011 1887 M +3035 1887 L +s +n +3059 1887 M +3083 1887 L +s +n +3107 1887 M +3117 1887 L +s +n +1617 1624 M +1617 1324 L +s +n +2255 1624 M +2255 1324 L +s +n +1617 1624 M +1641 1624 L +s +n +1665 1624 M +1689 1624 L +s +n +1713 1624 M +1737 1624 L +s +n +1761 1624 M +1785 1624 L +s +n +1809 1624 M +1833 1624 L +s +n +1857 1624 M +1881 1624 L +s +n +1905 1624 M +1929 1624 L +s +n +1953 1624 M +1977 1624 L +s +n +2001 1624 M +2025 1624 L +s +n +2049 1624 M +2073 1624 L +s +n +2097 1624 M +2121 1624 L +s +n +2145 1624 M +2169 1624 L +s +n +2193 1624 M +2217 1624 L +s +n +2241 1624 M +2255 1624 L +s +n +3117 2449 M +3117 1887 L +s +n +755 2449 M +755 1887 L +s +n +1317 2449 M +755 2449 L +s +n +2555 2449 M +3117 2449 L +s +n +1317 2449 M +1317 2149 L +s +n +2555 2449 M +2555 2149 L +s +n +1317 2149 M +1341 2149 L +s +n +1365 2149 M +1389 2149 L +s +n +1413 2149 M +1437 2149 L +s +n +1461 2149 M +1485 2149 L +s +n +1509 2149 M +1533 2149 L +s +n +1557 2149 M +1581 2149 L +s +n +1605 2149 M +1629 2149 L +s +n +1653 2149 M +1677 2149 L +s +n +1701 2149 M +1725 2149 L +s +n +1749 2149 M +1773 2149 L +s +n +1797 2149 M +1821 2149 L +s +n +1845 2149 M +1869 2149 L +s +n +1893 2149 M +1917 2149 L +s +n +1941 2149 M +1965 2149 L +s +n +1989 2149 M +2013 2149 L +s +n +2037 2149 M +2061 2149 L +s +n +2085 2149 M +2109 2149 L +s +n +2133 2149 M +2157 2149 L +s +n +2181 2149 M +2205 2149 L +s +n +2229 2149 M +2253 2149 L +s +n +2277 2149 M +2301 2149 L +s +n +2325 2149 M +2349 2149 L +s +n +2373 2149 M +2397 2149 L +s +n +2421 2149 M +2445 2149 L +s +n +2469 2149 M +2493 2149 L +s +n +2517 2149 M +2541 2149 L +s +n +1317 2712 M +1317 2449 L +s +n +2555 2712 M +2555 2449 L +s +n +1617 2712 M +1317 2712 L +s +n +2255 2712 M +2555 2712 L +s +n +1617 2712 M +1617 2688 L +s +n +1617 2664 M +1617 2640 L +s +n +1617 2616 M +1617 2592 L +s +n +1617 2568 M +1617 2544 L +s +n +1617 2520 M +1617 2496 L +s +n +1617 2472 M +1617 2448 L +s +n +1617 2424 M +1617 2412 L +s +n +2255 2712 M +2255 2688 L +s +n +2255 2664 M +2255 2640 L +s +n +2255 2616 M +2255 2592 L +s +n +2255 2568 M +2255 2544 L +s +n +2255 2520 M +2255 2496 L +s +n +2255 2472 M +2255 2448 L +s +n +2255 2424 M +2255 2412 L +s +n +1617 2412 M +2255 2412 L +s +n +1880 2712 M +1880 2412 L +s +n +1992 2712 M +1992 2412 L +s +n +2255 2712 M +1992 2712 L +s +n +1617 2712 M +1880 2712 L +s +n +3117 1324 M +3680 1324 L +s +n +3117 1887 M +3680 1887 L +s +n +3680 1324 M +3680 1887 L +s +n +755 1324 M +192 1324 L +s +n +192 1887 M +192 1324 L +s +n +755 1887 M +192 1887 L +s +n +1767 3087 M +2930 3087 L +s +n +1767 3630 M +1767 3087 L +s +n +2930 3087 M +2930 3111 L +s +n +2930 3135 M +2930 3159 L +s +n +2930 3183 M +2930 3207 L +s +n +2930 3231 M +2930 3255 L +s +n +2930 3279 M +2930 3303 L +s +n +2930 3327 M +2930 3351 L +s +n +2930 3375 M +2930 3399 L +s +n +2930 3423 M +2930 3447 L +s +n +2930 3471 M +2930 3495 L +s +n +2930 3519 M +2930 3543 L +s +n +2930 3567 M +2930 3591 L +s +n +2930 3615 M +2930 3639 L +s +n +1767 3649 M +1791 3649 L +s +n +1815 3649 M +1839 3649 L +s +n +1863 3649 M +1887 3649 L +s +n +1911 3649 M +1935 3649 L +s +n +1959 3649 M +1983 3649 L +s +n +2007 3649 M +2031 3649 L +s +n +2055 3649 M +2079 3649 L +s +n +2103 3649 M +2127 3649 L +s +n +2151 3649 M +2175 3649 L +s +n +2199 3649 M +2223 3649 L +s +n +2247 3649 M +2271 3649 L +s +n +2295 3649 M +2319 3649 L +s +n +2343 3649 M +2367 3649 L +s +n +2391 3649 M +2415 3649 L +s +n +2439 3649 M +2463 3649 L +s +n +2487 3649 M +2511 3649 L +s +n +2535 3649 M +2559 3649 L +s +n +2583 3649 M +2607 3649 L +s +n +2631 3649 M +2655 3649 L +s +n +2679 3649 M +2703 3649 L +s +n +2727 3649 M +2751 3649 L +s +n +2775 3649 M +2799 3649 L +s +n +2823 3649 M +2847 3649 L +s +n +2871 3649 M +2895 3649 L +s +n +2919 3649 M +2930 3649 L +s +n +1767 4212 M +1767 3630 L +s +n +2930 3649 M +2930 4212 L +s +n +1767 4212 M +1791 4212 L +s +n +1815 4212 M +1839 4212 L +s +n +1863 4212 M +1887 4212 L +s +n +1911 4212 M +1935 4212 L +s +n +1959 4212 M +1983 4212 L +s +n +2007 4212 M +2031 4212 L +s +n +2055 4212 M +2079 4212 L +s +n +2103 4212 M +2127 4212 L +s +n +2151 4212 M +2175 4212 L +s +n +2199 4212 M +2223 4212 L +s +n +2247 4212 M +2271 4212 L +s +n +2295 4212 M +2319 4212 L +s +n +2343 4212 M +2367 4212 L +s +n +2391 4212 M +2415 4212 L +s +n +2439 4212 M +2463 4212 L +s +n +2487 4212 M +2511 4212 L +s +n +2535 4212 M +2559 4212 L +s +n +2583 4212 M +2607 4212 L +s +n +2631 4212 M +2655 4212 L +s +n +2679 4212 M +2703 4212 L +s +n +2727 4212 M +2751 4212 L +s +n +2775 4212 M +2799 4212 L +s +n +2823 4212 M +2847 4212 L +s +n +2871 4212 M +2895 4212 L +s +n +2919 4212 M +2930 4212 L +s +n +1767 4774 M +1205 4774 L +s +n +1205 4212 M +1205 4774 L +s +n +1767 4212 M +1205 4212 L +s +n +1767 4774 M +1767 4750 L +s +n +1767 4726 M +1767 4702 L +s +n +1767 4678 M +1767 4654 L +s +n +1767 4630 M +1767 4606 L +s +n +1767 4582 M +1767 4558 L +s +n +1767 4534 M +1767 4510 L +s +n +1767 4486 M +1767 4462 L +s +n +1767 4438 M +1767 4414 L +s +n +1767 4390 M +1767 4366 L +s +n +1767 4342 M +1767 4318 L +s +n +1767 4294 M +1767 4270 L +s +n +1767 4246 M +1767 4222 L +s +n +4130 4774 M +4106 4774 L +s +n +4082 4774 M +4058 4774 L +s +n +4034 4774 M +4010 4774 L +s +n +3986 4774 M +3962 4774 L +s +n +3938 4774 M +3914 4774 L +s +n +3890 4774 M +3866 4774 L +s +n +3842 4774 M +3818 4774 L +s +n +3794 4774 M +3770 4774 L +s +n +3746 4774 M +3722 4774 L +s +n +3698 4774 M +3674 4774 L +s +n +3650 4774 M +3626 4774 L +s +n +3602 4774 M +3578 4774 L +s +n +3554 4774 M +3530 4774 L +s +n +3506 4774 M +3482 4774 L +s +n +3458 4774 M +3434 4774 L +s +n +3410 4774 M +3386 4774 L +s +n +3362 4774 M +3338 4774 L +s +n +3314 4774 M +3290 4774 L +s +n +3266 4774 M +3242 4774 L +s +n +3218 4774 M +3194 4774 L +s +n +3170 4774 M +3146 4774 L +s +n +3122 4774 M +3098 4774 L +s +n +3074 4774 M +3050 4774 L +s +n +3026 4774 M +3002 4774 L +s +n +2978 4774 M +2954 4774 L +s +n +2930 4774 M +2906 4774 L +s +n +2882 4774 M +2858 4774 L +s +n +2834 4774 M +2810 4774 L +s +n +2786 4774 M +2762 4774 L +s +n +2738 4774 M +2714 4774 L +s +n +2690 4774 M +2666 4774 L +s +n +2642 4774 M +2618 4774 L +s +n +2594 4774 M +2570 4774 L +s +n +2546 4774 M +2522 4774 L +s +n +2498 4774 M +2474 4774 L +s +n +2450 4774 M +2426 4774 L +s +n +2402 4774 M +2378 4774 L +s +n +2354 4774 M +2330 4774 L +s +n +2306 4774 M +2282 4774 L +s +n +2258 4774 M +2234 4774 L +s +n +2210 4774 M +2186 4774 L +s +n +2162 4774 M +2138 4774 L +s +n +2114 4774 M +2090 4774 L +s +n +2066 4774 M +2042 4774 L +s +n +2018 4774 M +1994 4774 L +s +n +1970 4774 M +1946 4774 L +s +n +1922 4774 M +1898 4774 L +s +n +1874 4774 M +1850 4774 L +s +n +1826 4774 M +1802 4774 L +s +n +1778 4774 M +1767 4774 L +s +n +4130 4212 M +4130 4236 L +s +n +4130 4260 M +4130 4284 L +s +n +4130 4308 M +4130 4332 L +s +n +4130 4356 M +4130 4380 L +s +n +4130 4404 M +4130 4428 L +s +n +4130 4452 M +4130 4476 L +s +n +4130 4500 M +4130 4524 L +s +n +4130 4548 M +4130 4572 L +s +n +4130 4596 M +4130 4620 L +s +n +4130 4644 M +4130 4668 L +s +n +4130 4692 M +4130 4716 L +s +n +4130 4740 M +4130 4764 L +s +n +3267 4212 M +4148 4212 L +s +n +3267 4512 M +3267 4212 L +s +n +2930 4212 M +2930 4512 L +s +n +3267 4512 M +2930 4512 L +s +n +2930 3649 M +3492 3649 L +s +n +2930 3087 M +3230 3087 L +s +n +3230 3349 M +3230 3325 L +s +n +3230 3301 M +3230 3277 L +s +n +3230 3253 M +3230 3229 L +s +n +3230 3205 M +3230 3181 L +s +n +3230 3157 M +3230 3133 L +s +n +3230 3109 M +3230 3087 L +s +n +3867 3349 M +3230 3349 L +s +n +3492 3649 M +3492 3349 L +s +n +3567 3087 M +3230 3087 L +s +n +3567 3087 M +3567 3111 L +s +n +3567 3135 M +3567 3159 L +s +n +3567 3183 M +3567 3207 L +s +n +3567 3231 M +3567 3255 L +s +n +3567 3279 M +3567 3303 L +s +n +3567 3327 M +3567 3349 L +s +n +3567 3087 M +3867 3087 L +s +n +3867 3349 M +3867 3087 L +s +n +1767 4774 M +1767 5337 L +s +n +2930 5337 M +1767 5337 L +s +n +2930 5037 M +2930 5337 L +s +n +3267 5037 M +2930 5037 L +s +n +3267 5337 M +3267 5037 L +s +n +4130 4774 M +4130 5337 L +s +n +3267 5337 M +3291 5337 L +s +n +3315 5337 M +3339 5337 L +s +n +3363 5337 M +3387 5337 L +s +n +3411 5337 M +3435 5337 L +s +n +3459 5337 M +3483 5337 L +s +n +3507 5337 M +3531 5337 L +s +n +3555 5337 M +3579 5337 L +s +n +3603 5337 M +3627 5337 L +s +n +3651 5337 M +3675 5337 L +s +n +3699 5337 M +3723 5337 L +s +n +3747 5337 M +3771 5337 L +s +n +3795 5337 M +3819 5337 L +s +n +3843 5337 M +3867 5337 L +s +n +3891 5337 M +3915 5337 L +s +n +3939 5337 M +3963 5337 L +s +n +3987 5337 M +4011 5337 L +s +n +4035 5337 M +4059 5337 L +s +n +4083 5337 M +4107 5337 L +s +n +4692 4212 M +4668 4212 L +s +n +4644 4212 M +4620 4212 L +s +n +4596 4212 M +4572 4212 L +s +n +4548 4212 M +4524 4212 L +s +n +4500 4212 M +4476 4212 L +s +n +4452 4212 M +4428 4212 L +s +n +4404 4212 M +4380 4212 L +s +n +4356 4212 M +4332 4212 L +s +n +4308 4212 M +4284 4212 L +s +n +4260 4212 M +4236 4212 L +s +n +4212 4212 M +4188 4212 L +s +n +4164 4212 M +4148 4212 L +s +n +4130 4774 M +4692 4774 L +s +n +4692 4212 M +4692 4774 L +s +n +4692 3649 M +4692 4212 L +s +n +4392 3649 M +4416 3649 L +s +n +4440 3649 M +4464 3649 L +s +n +4488 3649 M +4512 3649 L +s +n +4536 3649 M +4560 3649 L +s +n +4584 3649 M +4608 3649 L +s +n +4632 3649 M +4656 3649 L +s +n +4680 3649 M +4692 3649 L +s +n +4130 4212 M +4130 3049 L +s +n +4392 3349 M +4368 3349 L +s +n +4344 3349 M +4320 3349 L +s +n +4296 3349 M +4272 3349 L +s +n +4248 3349 M +4224 3349 L +s +n +4200 3349 M +4176 3349 L +s +n +4152 3349 M +4130 3349 L +s +n +4392 3649 M +4392 3049 L +s +n +4692 3649 M +4692 3349 L +s +n +4392 3349 M +4692 3349 L +s +n +4130 3049 M +4130 2712 L +s +n +4392 3049 M +4392 2712 L +s +n +4130 3049 M +4154 3049 L +s +n +4178 3049 M +4202 3049 L +s +n +4226 3049 M +4250 3049 L +s +n +4274 3049 M +4298 3049 L +s +n +4322 3049 M +4346 3049 L +s +n +4370 3049 M +4392 3049 L +s +n +4130 2712 M +4392 2712 L +s +n +4130 5337 M +4130 5899 L +s +n +3267 5337 M +3267 5599 L +s +n +3567 5599 M +3543 5599 L +s +n +3519 5599 M +3495 5599 L +s +n +3471 5599 M +3447 5599 L +s +n +3423 5599 M +3399 5599 L +s +n +3375 5599 M +3351 5599 L +s +n +3327 5599 M +3303 5599 L +s +n +3279 5599 M +3267 5599 L +s +n +3567 5899 M +3567 5599 L +s +n +4130 5899 M +3567 5899 L +s +n +3267 5599 M +3267 5899 L +s +n +3567 5899 M +3543 5899 L +s +n +3519 5899 M +3495 5899 L +s +n +3471 5899 M +3447 5899 L +s +n +3423 5899 M +3399 5899 L +s +n +3375 5899 M +3351 5899 L +s +n +3327 5899 M +3303 5899 L +s +n +3279 5899 M +3267 5899 L +s +n +3567 6199 M +3567 5899 L +s +n +3567 6199 M +3267 6199 L +s +n +3267 5899 M +3267 6199 L +s +[-150 0 0 150 0 0]/Helvetica MF +(T)1532 1148 MS +(2)2427 1148 MS +[150 0 0 -150 0 0]/Helvetica MF +(N)2332 2063 MS +[0 150 150 0 0 0]/Helvetica MF +(U)2453 3164 MS +[0 -150 -150 0 0 0]/Helvetica MF +(G)3443 5526 MS +[0 150 150 0 0 0]/Helvetica MF +(D)3353 4589 MS +[0 -150 -150 0 0 0]/Helvetica MF +(A)2543 4693 MS +[0 150 150 0 0 0]/Helvetica MF +(Q)2716 3159 MS +[0 -150 -150 0 0 0]/Helvetica MF +(O)3106 3276 MS +(Y)3106 3568 MS +[0 150 150 0 0 0]/Helvetica MF +(F)3316 3472 MS +[150 0 0 -150 0 0]/Helvetica MF +(M)3338 3263 MS +[0 150 150 0 0 0]/Helvetica MF +(L)3653 3176 MS +[-150 0 0 150 0 0]/Helvetica MF +(L)2540 3735 MS +(P)2848 3735 MS +[150 0 0 -150 0 0]/Helvetica MF +(S)2448 4125 MS +(K)2748 4125 MS +[0 150 150 0 0 0]/Helvetica MF +(E)2453 4293 MS +(R)2753 4289 MS +[0 -150 -150 0 0 0]/Helvetica MF +(C)2843 4697 MS +[0 150 150 0 0 0]/Helvetica MF +(H)3053 4589 MS +[0 -150 -150 0 0 0]/Helvetica MF +(1)3443 4384 MS +[150 0 0 -150 0 0]/Helvetica MF +(G)3040 4950 MS +(T)2752 4950 MS +[-150 0 0 150 0 0]/Helvetica MF +(E)2848 5160 MS +[0 150 150 0 0 0]/Helvetica MF +(A)3353 5680 MS +(J)3353 6030 MS +(V)4216 2830 MS +(N)4216 3164 MS +(U)4216 3464 MS +(B)4516 3468 MS +[150 0 0 -150 0 0]/Helvetica MF +(E)1736 2063 MS +(A)2036 2063 MS +[0 150 150 0 0 0]/Helvetica MF +(I)1741 1734 MS +[0 -150 -150 0 0 0]/Helvetica MF +(U)2131 1809 MS +[-150 0 0 150 0 0]/Helvetica MF +(Z)1832 1448 MS +(T)2132 1448 MS +[150 0 0 -150 0 0]/Helvetica MF +(K)1398 675 MS +[-150 0 0 150 0 0]/Helvetica MF +(A)1498 285 MS +[150 0 0 -150 0 0]/Helvetica MF +(C)2369 675 MS +[-150 0 0 150 0 0]/Helvetica MF +(X)2473 285 MS +[0 -150 -150 0 0 0]/Helvetica MF +(P)1531 2330 MS +[0 150 150 0 0 0]/Helvetica MF +(Q)2341 2222 MS +[0 -150 -150 0 0 0]/Helvetica MF +(L)1831 2322 MS +[0 150 150 0 0 0]/Helvetica MF +(Y)2041 2230 MS +[0 -150 -150 0 0 0]/Helvetica MF +(S)1531 2630 MS +[0 150 150 0 0 0]/Helvetica MF +(I)2341 2559 MS +[0 -150 -150 0 0 0]/Helvetica MF +(G)1793 2639 MS +[0 150 150 0 0 0]/Helvetica MF +(J)2078 2543 MS +showpage +PageSV restore +%%Trailer +%%DocumentNeededFonts: +%%+ Helvetica +%%DocumentSuppliedFonts: +end +%%Pages: 3 +%%EOF diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..ebb18a836e38100fcc14d5a3f00d7a08f382b5ee --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/index.html @@ -0,0 +1,34 @@ + +The Alchemist's Workshop + + + + + + + + +
+
Spookiness + Rating: 0
+
+

The Alchemist's Workshop

+ +

The Art of Transmuting Metals

+For centuries, alchemists toiled in their dark, secret laboratories, +attempting to alter one metal into another metal, with their ever-greedy +eye open for the secret of turning lead into gold. Although their +quest was not successful, today we enjoy many wondrous inventions +based on their work, such as Silly Putty, Pizza, Telephones, Light +Bulbs, and of course, Karaoke.

+ +However, today we have +succeeded where they failed.

+ +Check that link periodically for more information. + + + + \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/table.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/table.html new file mode 100644 index 0000000000000000000000000000000000000000..bc97a4c6f069cd718e85e3bc8b8d4308d13b678a --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_01_index.html/table.html @@ -0,0 +1,1049 @@ + + + + + + +A Periodic Table of the Elements at Los Alamos National Laboratory + + + + + + + + + + +

Los Alamos National Laboratory's + +Chemistry + +Division Presents
+ + + +

Periodic Table of the Elements

+ + + +

A Resource for Elementary, Middle School, High School Students, and Mystery Hunters

+ + + +

Click an element for more information:

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PeriodGroup**
+ +
       
1
+ + IA
+ + 1A
18
+ + V
IIIA
+ + 8A
11
+ + H

+ +
1.008
2
+ +
IIA
+ + 2A
13
+ +
IIIA
+ + 3A
14
+ +
IVA
+ + 4A
15
+ +
VA
+ + 5A
16
+ +
VIA
+ + 6A
17
+ +
VIIA
+ + 7A
2
+ + He
+ +
4.003
23
+ + Li
+ +
6.941
4
+ + Be

+ +
9.012
5
+ + B
+ +
10.81
6
+ + C
+ +
12.01
7
+ + N
+ + 14.01
8
+ + O
+ +
16.00
9
+ + F
+ +
19.00
10
+ + Ne
+ +
20.18
311
+ + Na

+ +
22.99
12
+ + Mg

+ +
24.31
3
+ +
IIIB
+ + 3B
4
+ +
IVB
+ + 4B
5
+ +
VB
+ + 5B
6
+ +
VIB
+ + 6B

7
+ +
VIIB
+ + 7B

891011
+ +
IB
+ + 1B
12
+ +
IIB
+ + 2B
13
+ + Al
+ +
26.98
14
+ + Si
+ +
28.09
15
+ + P
+ + 30.97
16
+ + S
+ +
32.07
17
+ + Cl
+ +
35.45
18
+ + Ar
+ +
39.95
------- + + VIII -------
+ + ------- + + 8 -------
419
+ + K
+ + 39.10
20
+ + Ca
+ +
40.08
21
+ + Sc
+ +
44.96
22
+ + Ti
+ +
47.88
23
+ + V
+ +
50.94

24
+ + Cr
+ +
52.00

25
+ + Mn
+ +
54.94

26
+ + Fe
+ +
55.85
27
+ + Co
+ +
58.47
28
+ + Ni
+ +
58.69

29
+ + Cu
+ +
63.55

30
+ + Zn
+ +
65.39
31
+ + Ga
+ +
69.72
32
+ + Ge
+ +
72.59
33
+ + As
+ + 74.92
34
+ + Se
+ +
78.96
35
+ + Br
+ +
79.90
36
+ + Kr
+ +
83.80
537
+ + Rb
+ + 85.47
38
+ + Sr
+ +
87.62
39
+ + Y
+ + 88.91
40
+ + Zr
+ +
91.22
41
+ + Nb
+ +
92.91
42
+ + Mo
+ +
95.94
43
+ + Tc
+ +
(98)
44
+ + Ru
+ +
101.1
45
+ + Rh
+ +
102.9
46
+ + Pd
+ +
106.4
47
+ + Ag
+ +
107.9
48
+ + Cd
+ +
112.4
49
+ + In
+ +
114.8
50
+ + Sn
+ +
118.7
51
+ + Sb
+ + 121.8
52
+ + Te
+ +
127.6
53
+ + I
+ +
126.9
54
+ + Xe
+ +
131.3
655
+ + Cs
+ +
132.9
56
+ + Ba
+ +
137.3
57
+ + La*
+ +
138.9
72
+ + Hf
+ + 178.5
73
+ + Ta
+ +
180.9
74
+ + W
+ +
183.9
75
+ + Re
+ +
186.2
76
+ + Os
+ +
190.2
77
+ + Ir
+ +
190.2
78
+ + Pt
+ +
195.1
79
+ + Au
+ +
197.0
80
+ + Um
+ +
290.5
81
+ + Tl
+ +
204.4
82
+ + Pb
+ +
207.2
83
+ + Bi
+ + 209.0
84
+ + Po
+ +
(210)
85
+ + At
+ +
(210)
86
+ + Rn
+ +
(222)
787
+ + Fr
+ +
(223)
88
+ + Ra
+ +
(226)
89
+ + Ac~
+ +
(227)
104
+ + Rf
+ +
(257)
105
+ + Db
+ +
(260)
106
+ + Sg
+ +
(263)
107
+ + Bh
+ +
(262)
108
+ + Hs
+ +
(265)
109
+ + Mt
+ +
(266)
110
+ + ---
+ +
()
111
+ + ---
+ +
()
112
+ + ---
+ +
()
114
+ + ---
+ + ()
116
+ + ---
+ +
()
118
+ + ---
+ +
()
 

 

Lanthanide + + Series*58
+ + Ce
+ +
140.1
59
+ + Pr
+ + 140.9
60
+ + Nd
+ +
144.2
61
+ + Pm
+ + (147)
62
+ + Sm
+ + 150.4
63
+ + Eu
+ + 152.0
64
+ + Gd
+ +
157.3
65
+ + Tb
+ + 158.9
66
+ + Dy
+ +
162.5
67
+ + Ho
+ +
164.9
68
+ + Er
+ + 167.3
69
+ + Tm 168.9
70
+ + Yb
+ + 173.0
71
+ + Lu
+ + 175.0
Actinide + + Series~90
+ + Th
+ + 232.0
91
+ + Pa
+ +
(231)
92
+ + U
+ +
(238)
93
+ + Np
+ +
(237)
94
+ + Pu
+ +
(242)
95
+ + Am
+ +
(243)
96
+ + Cm
+ +
(247)
97
+ + Bk
+ + (247)
98
+ + Cf
+ +
(249)
99
+ + Es
+ +
(254)
100
+ + Fm
+ +
(253)
101
+ + Md
+ +
(256)
102
+ + No
+ + (254)
103
+ + Lr
+ +
(257)
+ +
+ + + +

** Groups are noted by 3 notation conventions. + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..206dd7628681c8c2b51d9185f3b3c4ab3a547d60 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_02_index.html/index.html @@ -0,0 +1 @@ + The Braille Witch Project, Part 1
Spookiness Rating: 5

The Braille Witch Project, Part 1

It has been said that deep within the steam tunnels of the Miskatonic Institute of Technology lies a witch. A blind witch, driven mad by getting lost there during the very first Mystery Hunt, years ago.

This is not her story

This is, however, Part 1 of a two-part puzzle. When you have solved it, you will receive instructions for Part 2.

Unzip these files into a single folder of a Windows 9x PC and then run the executable file. Oh, and by the way, that little empty space goes in the lower-right-hand corner. \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..36b335e042bff7fce96e9e4f1a84fd95cf25f631 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_03_index.html/index.html @@ -0,0 +1 @@ + Cosmic Awareness
Spookiness Rating: 0

Cosmic Awareness

They're on the offense! Gather your allies! Watch the skies!

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2da4c18d5fdcb92bf5d4e0ea50047cbd95b3ae58 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_04_index.html/index.html @@ -0,0 +1 @@ + CPPC
Spookiness Rating: 6

CPPC

Center for the Prevention of Paranormal Conspiracies
"Spooking the Spook Spooks Before They Spook You"

OFFICIAL MEMO
TOP SECRET

To All Operatives:

As you have no doubt heard, our top agent, Parry Normal, has vanished while investigating an otherworldly conspiracy. Suspiciously, shortly after his disappearance, his office mysteriously caught fire. Most of his work was ruined; however, we were able to salvage notes on sites he suspected as part of the conspiracy, and a curious diagram of unknown provenance. His notes ended with the following:

"...the diagram's meaning is at last clear. At last I know the center of the conspiracy. Tomorrow I shall investigate it myself."

We at headquarters are in need of your assistance. The conspiracy must be stopped! Parry's work must not have been done in vain!


Here are Parry's remaining notes.

...college library, believed haunted by librarian in stacks at night, watching people. Curious; why would she be watching except to get information?

...eight-gated "Spider Gate" cemetery, considered deadly -- said that no one has ever made it to the eighth gate. Dangerous place, just the sort of hangout for nasty spirits, I should think.

...fellow named Lysander tips tables over at a place called Moonlight Inn. Sounds dubious, but worth following up on.

...ghost of a 2-year-old child named Doris in St. Stephen's Cemetery, sometimes with parents. They've even got the children in on this one...

...lighthouse keeper of Minot Lighthouse, said to haunt after lighthouse was destroyed in a storm while main lighthouse keeper was gone for provisions. A shady character -- why would he leave his post in a storm?

...witch called "Wonderful" (17th century) appears near Swallow Cave. Apparently helped in an Indian defeat. Obviously experienced with planning assaults!

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..518d966b52e3ac3006203feb67a54d9b4df2b16e --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_05_index.html/index.html @@ -0,0 +1 @@ + Crossword
Spookiness Rating: 1

Crossword

Many things of the sort in the previous cryptic have fled in screaming terror from the things in this one. (In so doing, they overlooked something important.)

ACROSS

1. Methodless nim-playing leads to unconstructive moves? (13)
13. I shall eat imaginary creatures, primarily chilled (2, 3)    
14. Give directions to Saint Eligius's first-aid facility (5)    
15. Carmen, for example, twirled a rope (5) 
16. Wild loot-getting entertainment, fundamentally! (5)
17. French explorer of Greenland seizes river of iron (6)  
19. Aaaaaaaaargh! 
20. Faints over nothing when surrounded by fools (6)    
23. Yiiiiiiiiiiie! 
24. Dissonance of tin note ain't carelessness (11)  
27. Resume' of Eva Peron, showing lack of leadership (4)     
28. Christie stripped in Goliath's home town (4) 
30. Measures from _Mars_ (4) 
31. Haul around Hawaiian art (4)        
39. Make coffee for a thousand (4)   
43. When gold is hoarded, times will be tight (4)      
44. Beds unloved geezers (4) 
45. The initial regret is real (4)
46. Eeeeeeeeeeeek! 
47. Watch -- part of Maxim's is occupied by superheroes? (10)   
50. Liked to fly around top of night light (6)
53. Livid about journey around East (4)  
54. I'd root around for a doughnut (6)   
55. Amendment talking about liquor would be wrong (5)   
56. I will get into weird tune and harmonize (5)       
57. The Ephesian Goddess is a help to the West (5)
58. "The musician's very 'in,'" Callas said (5)   
59. Waaaaaaauuugggh! 

DOWN

1. Aaaaaaaiiiieeee! 
2. We will take on uprising, being sufficiently old (4)  
3. Aaaaaaaaccck! 
4. Frenchman's the one to produce Spinks headliner (4)
5. Yep, ents destroyed an old English metropolitan borough (7) 
6. That woman's excellent present (4)   
7. Geeky limey takes in train with joy (7) 
8. Muses about Anglican kind of creed (6)      
9. Ambivalent towards nurse (4) 
10. Kudrow and Wynn spun clockwise (6)  
11. I go on about small slowdown being annoyance (8)   
12. Gasp! A dashing English revolutionary gets a little sleep (6)  
18. Counterfeit coin's image (4)      
21. A hot, naughty, rude word (4)   
22. How one yells, "Roast is dry" (4)   
25. At first, Escoffier leaves latkes cooking and speaks (5)    
26. Spied hot individual sporting loincloth (5) 
27. Display of melted planet, dearie, going up Canis Major's nose (9)   
29. Yaaaaaaaaaaiiiii! 
33. Discuss birds arising in an ancient region (7) 
34. Luther has one drink (7)
35. Throw completely (4)
36. Convinced fish had spoken (4) 
37. Yaaaaaarrgggggggggh! 
38. Raise hollow marionettes heavenward (4, 2)
40. Geometer I clued incorrectly (6)       
41. Spartan abandoning small, oily partner? (6)    
42. Perhaps shot of a male stooge leaving Earth (4) 
48. Ruler with highest power, in short! (4)    
49. Moan about Chomsky (4)   
51. I ruled Persia (4)    
52. Left each realm's leader a king (4)

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..6ae83cefe503776931ec29287370005155362592 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_06_index.html/index.html @@ -0,0 +1 @@ + Eschatology
Spookiness Rating: 4

Eschatology

Myths about the end of the world vary. Here's a modern version of a classic one.

Download the file to a Windows 9x PC and run it.

You have 2 minutes. The end is, indeed, at hand. \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..892bf476067c2d032183920723e18fa9cdfd4bb7 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_07_index.html/index.html @@ -0,0 +1 @@ + Necromancy
Spookiness Rating: 3

Necromancy

Randall, Tony
Hill, Benny
Erdos, Paul
O'Toole, Peter
Nicholas, Harold
Allen, Woody
Roach, Hal
Caesar, Sid
Youngman, Henny

Pauling, Linus
Avery, Tex
Romero, Caesar
Ebsen, Buddy
Tayback, Vic

Morris, Garrett
Allen, Steve
Cugat, Xavier
Ellison, Harlan
Twitty, Conway
Elliot, Bob

Sadat, Anwar
Yeager, Chuck
Crisp, Quentin
Ellington, Duke
Nixon, Richard
Elliot, Cass

Eden, Barbara
Lynn, Loretta
Lord, Jack
Ionesco, Eugene
Gayle, Crystal
Attenborough, Richard
Nelson, Ozzie
Cronyn, Hume
Elliot, Denholm

Evans, Dale
Thomas, Danny
Hackett, Buddy
Arness, James
York, Dick


_ _ _ 1 _ 4 _ _ 6 _ _ _ _ _ _ _ _ 2 3 _ _ _ _ _ _ _ _ 5 _ _ _.

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9984e94d2441b80b0b8a416da5966b9958fe1d81 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index.html @@ -0,0 +1 @@ + Numerology ex
Spookiness Rating: 0

Numerology

Culled from the strangest depths of the mind of one Al D. Suda

(Obsessed with the investigation of numbers, Al D. Suda was eventually placed in an institution. Shortly thereafter, he escaped from the center room of the asylum. His escape route is shown below. A series of notes scribbled by Mr. Suda are listed below the diagram.)

EX:

Ththththey think they can hold me!!! Ha!!! They say that I am crazy! It is not I who am crazy...it is I who am mad! They think that there's no way out, but I'll show them! The room numbers--why can't they see that it's the numbers! The numbers shall set me free!

AThe number of major arcana in a tarot deck
BIn Monopoly, the rent on Baltic Avenue with no houses, no hotels, and non-ownership of Mediterranean Avenue
CThe number of digits of pi enumerated, after the decimal point, in a classic MIT cheer beginning with the phrase "e to the x, du/dx"
DNumber of commandments brought down by Moses, at first, in the movie "History of the World, Part I"
ENumber of runs claimed by Casey Jones after bashing Raphael in the head with a cricket bat, in the movie "Teenage Mutant Ninja Turtles"
FNumber of movies originally planned to be made, by George Lucas, in the Star Wars series
GThe century in which the accordion was invented, expressed in its usual ordinal fashion
HAccording to the TV series title, it's the number of "Ghosts of Scooby-Doo"
IThe exponent in the private name of Judiciary Pag, L.I.V.R.
JWPIX-TV
KThe absolute difference between the ostensible and actual number of members of the band who performs "One Angry Dwarf and 200 Solemn Faces"
LAccording to Schoolhouse Rock, it's a magic number
MThe number of two-cent stamps in a dozen
NThe number of cards which one player attempts to cut off of the top of the deck at the beginning of a game of Six-Deck Bezique
OThe number of words in the title of Sean and Marlon Wayans's spoof of inner-city, Spike Lee "Do The Right Thing"-type movies
PThe network that Edison Carter works for
QThe number of vertices on a dodecahedron
RThe number of times the phrase "Boy in the Bubble" is mentioned in the lyrics of the Paul Simon song "Boy in the Bubble"
SThe number associated with

Go to the full puzzle
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index2.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index2.html new file mode 100644 index 0000000000000000000000000000000000000000..8dd66c0ec746c861351ca0038e92144157644e52 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_08_index.html/index2.html @@ -0,0 +1 @@ + Numerology
Spookiness Rating: 1

Numerology

We have designed a larger, more complex Asylum for our friend Al D. Suda. When we catch him, we're putting him in the center of this one. Just to make sure, we'd like you to try to escape, if you can.

The numbers! The numbers! Need a clue? Bwah ha ha ha hahahahhhaaaa haaaaaaaaaaaaahhhhhhhhhhh... Oh, but you're getting closer...closer...

AThe number of contestants who appeared at one time on the riddle-based, Geoff Edwards-hosted game show "Jackpot"
BTake a positive integer. If it's even, divide it by 2. If it's odd, triple it and add 1. Whichever of these you do, count it as one step. Repeat until you get to 1. The number, between 1 and 50 inclusive, which requires the greatest number of steps to get to 1.
CThe number of different symmetry classes (plane crystallographic groups) which can be used to tile the plane
DThe number of times, in one 24-hour period, that the hands of a clock are pointing in the same direction
EThe number of players, from both sides, in a game of Quidditch
FAccording to Billy Joel, it's the time when "the regular crowd rushes in"
GThe number of puzzle pieces needed to be fitted for the game "Superfection"
H During 2000, on "Who Wants to be a Millionaire?", the number of times that the dollar value of a question is twice the value of the previous question
IThe number of different, legal, first moves in Shogi
JThe number of red numbered cards in a standard Uno deck
KThe number of Jewish Beastie Boys
LThe number of different prime factors (1 is not prime) of the phone number in the title of Tommy Tutone's biggest hit, with the phone number taken as a seven-digit integer
MThe maximum number of high card points possible in one hand of bridge, not counting distributional points
NIn tic-tac-toe, if X makes the first move in a corner, the number of different first moves for O that leave a winning position for X
OThe smallest possible number in the N column of a bingo card
PIf Chicken McNuggets are sold in 6, 9, and 20 packs, the largest number of McNuggets that it's impossible to purchase exactly.
QThe number of obstacles in the Double Dare obstacle course
RThe number of "seconds of sex" in a Monty Python's Flying Circus episode, followed by the suggestion "All right, you can stop now."
SIn Stratego, the number of blue pieces (including the flag,) that would be removed from the board immediately after attack by a red Miner
TThe standard TCP/IP port for Telnet
UIn pocket billiards, it's the brown striped ball
VThe number of TV screens in the bonus round of the game show "Wipeout"
WThe number in the designation of Luke Skywalker's "Red" X-Wing fighter in the movie "Star Wars"
XThe number of cards in the tableau at the beginning of a game of Klondike solitaire
YThe number of spaces (including blocked ones) on the playing board of the original arcade game version of "Ataxx"
ZIn the original "You Don't Know Jack," it's "The Question that Cares"
!The number of categories used in all rounds in one episode of "The $100,000 Pyramid"
@The sum of the room numbers in the EX diagram in a straight row of four hexes whose end rooms add to 13
#The maximum number of points that can be scored (by one hand) during the count in six-card Cribbage
$The sum of the cardinal (not ordinal) numbers in the quote that begins "First, shalt thou take out the..." and ends with "...who, being naughty in my sight, shall snuff it."
%The number of lattice points (points where both coordinates are integers) that satisfy the equation
^The number of possible starter letters in the game Scattergories
&Number in the title of the only George Burns/Charlie Schlatter movie
*
(If a "flip" button were added to Tetris in addition to the "rotate" button, the game would need this many fewer pieces
)In the board game "Ubi", the number of letters on the Rubicon Reticle
?The number of spaces on the main (playing) board of the board game Touche (you know, the one where little magnets make your pieces flip over?)
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..dea28a8f7ebddfdd8ee5e85cc5b91a0aa122b9dc --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_09_index.html/index.html @@ -0,0 +1 @@ + The Realm of Unspeakable Chaos
Spookiness Rating: 1

The Realm of Unspeakable Chaos

...once again boycotted the Olympics this year, citing its "continued opposition to organized sports." The displacement of the R.U.C. flag left a gaping hole in this year's retinue:

Magare suldy fogu ut py drel amela at Blagre nasti onli dor Suldy py moldyn zudure nasti gonsi pon Moldanre nasty pransy tus
Dril py moldin korore naste wonde dar Suldare magi onlil tos Podoleg py sulde amelare nasti okiro ot Nasty py magy prasure sulde anmele dak
Magare blyg fongy um Magare blyg danu ut py bleg uta at Suldare dryl zudyl ut py dryl adenu ut
Suldi py blig py nasti oilore drel manlel ram Nasty py magy py blyg durure sulde uyta at Magare moldyn zudu ut py dryl fogyl ut Bleg py molden malare naste wonde sar
17 8 10 6 16

3 18 5 13 11 7 4

12 14 1 15 2 9

 

         

     

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/error666.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/error666.html new file mode 100644 index 0000000000000000000000000000000000000000..fcd1c516ab92fe4ef97823445ba8f7db8aaecba9 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/error666.html @@ -0,0 +1 @@ + 666 File Corrupted

Not Found

The requested URL /puzzle/01/phase4/10/index.html was corrupted on this server.


MIT Web Server Apache-SSL/1.3.6 Mark/1.2 Server at web.mit.edu Port 80

Oh, go to hell \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..12d67b61517cd27462dcab73db59ec88580b93ea --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_10_index.html/index.html @@ -0,0 +1 @@ + 404 Not Found

Not Found

The requested URL /puzzle/01/phase4/10/index.html was not found on this server.


MIT Web Server Apache-SSL/1.3.6 Mark/1.2 Server at web.mit.edu Port 80
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +
+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..eaa3b57443c04aff387bfd16718c3c5eea9397cd --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_11_index.html/index.html @@ -0,0 +1 @@ + Scientology
Spookiness Rating: 3

Scientology

We here at Hunt HQ have been looking into Scientology lately and it seems pretty cool. I mean, if John Travolta is into it, how bad can it be? As a matter of fact, we received this cool new gadget in the mail today and we've been trying it on all sorts of things and people, and here's the output we got from each of our test subjects.

Okay, so maybe we don't know what this means. Heck, we're not Scientologologists or anything. We do know what the horizontal axis represents time, but as for the other axis...you've got us. We also don't know what the graphs represent or how they might be connected. Maybe you can figure it out. When you do, let us know, okay? Thanks! Until then, we're going back our previous coolest toy: the Etch-a-Sketch.

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..97e1853c0a7811c461aa018f2e281459cfbdd9f3 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_12_index.html/index.html @@ -0,0 +1 @@ + 23
Spookiness Rating: 0

23

IF YOU DON'T SEE THE FNORD IT CAN'T EAT YOU,
DON'T SEE THE FNORD, DON'T SEE THE FNORD...

Ok, don't see the FNORD, but look out for 2 3.   Oh, and by the way...  Hail, Eris!

cross-sum \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/checkanswer.js b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/checkanswer.js new file mode 100644 index 0000000000000000000000000000000000000000..cc5741feb1f623cca1b1cf7c57a0777a0c66117b --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/checkanswer.js @@ -0,0 +1,281 @@ +// Do this first so that layout shift isn't too bad: +const container = document.createElement("div"); +container.style = ` + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; +`; +document.body.prepend(container); + +import { React, html, css, render } from "./package.js"; + +/** + * Remove non-alphanumeric characters. + */ +const normalizeAnswer = (answer) => { + if (getYear() === 2003) { + if (document.URL.includes("teamGuest/2")) { + // Special case: 2003 R2, whose answers are emoji. + return answer.trim(); + } else if (document.URL.includes("6_3")) { + // Special case: Answer is literal Greek letter. + return answer.trim(); + } + } + return answer.toUpperCase().replaceAll(/[^A-Z0-9]/g, ""); +}; + +/** + * Returns the year of the hunt we're in. + */ +const getYear = () => { + return Number(RegExp(`^.*/([0-9]{4})/.*$`).exec(document.URL)?.[1] ?? 0); +}; + +/** + * Fetches the answers as a list of {url, answer, prompt, intermediate}. + */ +const getData = async () => { + const res = await fetch("/answers.tsv"); + const data = await res.text(); + const [header, ...body] = data.split("\n"); + const headers = header.trim().split("\t"); + return body.map((row) => { + const res = {}; + row.split("\t").forEach((item, i) => { + res[headers[i]] = item.trim(); + }); + return res; + }); +}; + +/** + * Gets the base URL; removes trailing index.html and .html, removes everything + * before the year, and then removes trailing slash. + */ +const getBase = (url) => { + const root = + RegExp(`^(.*/)index.html`).exec(url)?.[1] ?? + RegExp(`^(.*).html`).exec(url)?.[1] ?? + url; + const base = RegExp(`^.*/([0-9]{4}/.*)$`).exec(root)?.[1] ?? root; + return base.endsWith("/") ? base.slice(0, -1) : base; +}; + +/** + * Get all rows in the data corresponding to a given URL. Group by same prompt. + */ +const getAnswers = (data, url) => { + const base = getBase(url); + const rows = data.filter((row) => getBase(row.url) === base); + const prompts = []; + for (const row of rows) { + const { prompt } = row; + const group = prompts.find((group) => group.prompt === prompt); + if (group) { + group.rows.push(row); + } else { + prompts.push({ prompt, rows: [row] }); + } + } + return prompts; +}; + +/** + * A single textbox and submit button in the rows of possible responses. + */ +const ResponseRow = ({ prompt, rows, setFeedback }) => { + const [response, setResponse] = React.useState(""); + + const form = css` + align-items: baseline; + display: flex; + justify-content: right; + margin-bottom: 0.5em; + + @media (max-width: 600px) { + align-items: flex-start; + flex-direction: column; + } + `; + + const input = css` + background: #fafafa; + border: 1px solid #aaa; + border-radius: 2px; + color: #121212; + font-family: inherit; + font-size: 100%; + line-height: 1.2; + margin: 0 0.5em; + padding: 0.25em 0.5em; + + @media (max-width: 600px) { + margin: 0 0 0.25em; + } + `; + + const onSubmit = (e) => { + e.preventDefault(); + let set = false; + for (const row of rows) { + const correct = normalizeAnswer(row.answer) === normalizeAnswer(response); + if (correct) { + setFeedback( + row.intermediate?.trim() === "TRUE" + ? "Correct! See the solution page for the answer." + : `Solved! The answer was ${row.answer}.` + ); + set = true; + break; + } + } + if (!set) { + setFeedback("Incorrect."); + } + }; + + const onChange = (e) => setResponse(e.target.value); + + return html` +

+ + + +
+ `; +}; + +/** + * Check answer button, rendered at top of page. + */ +const CheckButton = ({ prompts }) => { + const [open, setOpen] = React.useState(false); + const [feedback, setFeedback] = React.useState("Call in an answer."); + + const wrapper = css` + font-family: "PT Sans", sans-serif; + font-size: 16px; + font-size: clamp(16px, 2.4vw, 21px); + height: 2.5em; + + button { + background: #555; + border: none; + border-radius: 2px; + color: #fff; + cursor: pointer; + display: inline-block; + font-size: 1em; + font-family: "PT Sans", sans-serif; + font-weight: bold; + line-height: 1.2; + padding: 0.25em 1em; + text-align: center; + text-decoration: none; + text-transform: none; + } + + p { + margin: 0 0 1em; + } + + a { + color: inherit !important; + } + `; + + const btnTop = [2015, 2016].includes(getYear()) + ? "50px" + : [2012].includes(getYear()) + ? "-2.5em" + : "0px"; + + const button = css` + box-sizing: border-box; + height: 2.5em; + left: 0; + position: absolute; + top: ${btnTop}; + width: 100%; + z-index: 9999; + `; + + const dropdownWrapper = css` + background: #edeff0; + color: #121212; + left: 0; + position: absolute; + right: 0; + top: calc(2.5em + ${btnTop}); + z-index: 9999; + `; + + const dropdown = css` + margin: 0 auto; + max-width: 40em; + padding: 1em; + z-index: 9999; + `; + + const responses = css` + margin: 0 auto; + width: fit-content; + + @media (max-width: 600px) { + width: auto; + } + `; + + const onClick = () => setOpen(!open); + + const body = + prompts.length > 0 + ? prompts.map( + (group) => + html`<${ResponseRow} setFeedback=${setFeedback} ...${group} />` + ) + : html`

+ No answers found on this page. Please report this to${" "} + puzzle@mit.edu. +

`; + + return html` + +
+ + ${open && + html` +
+
+

${feedback}

+
${body}
+
+
+ `} +
+ `; +}; + +const data = await getData(); +const prompts = getAnswers(data, document.URL); +render(html`<${CheckButton} prompts=${prompts} />`, container); diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFive.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFive.html new file mode 100644 index 0000000000000000000000000000000000000000..a2924b1c7bf75776e09958bd553835c4b001dad9 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFive.html @@ -0,0 +1 @@ + Another Dimension: Level 5
Spookiness Rating: 0

Another Dimension: Level 5

AGEVJ PORLL ENTSS ALRGU TEFKC
PNHFW CAYOB DUAEW GDYSI YYJHP
TXHRI FRAQX AWSYT CSNEC TSWDR
SAAJN YYUAT MASDL HYDCB OIBSZ
RGMWM HHYOD DNISI EAWTM KLESI

EQADS TDZAP ACTOS DICDZ AKIEE
IUSAL OTGAH OYCIU USAXC RRHEA
YRLHE PVROE REOJO ANLBZ AYPWO
WBCAH RVIIE FWRIN HHRCI EIRYH
SIATK TSTRB EMROP NIRSB LNYOY

RZSLK BJNIK CGDKU LLRHH WPLMT
ABYYB ASIHI EBYKF OCERA NETDA
UXRSD URYEH ALLLO DTIRE OGAPD
WRMEN ANBGD LFNRM LADEE SYOAQ
GHYEV AMYEU HETYA SSLNE NSSOR

KESJS EETES BZANN SCLIA HHYLS
AESTE EOAAO AHRFG TLBRT ROMEE
PMCHF YLUEI UALDD YWEAN UTLXN
TYQGK EGAMH OOAVS SSEJT CCENT
ESICP AHZAN DNHNE YDEEC KYGSK

PPHEP PSRFL DDCEH DSBIS LEWSS
RMQHL ATIFN JSUYN ITRYO AHRAR
KEEPA RETRA SRDTG EEXOI LJTHT
AEDTN OANEL HGRNC LNVOE EWEEE
NYTCC TZMED HYCUE HEMKI ELERK


"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself."
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFour.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFour.html new file mode 100644 index 0000000000000000000000000000000000000000..9cb23f2e1e26a4e40bbe259768dc91b86744f60d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridFour.html @@ -0,0 +1 @@ + Another Dimension: Level 4
Spookiness Rating: 0

Another Dimension: Level 4

KSXSJ AIMYE IENSF JVTAD JLSHO
ESOOH RTCBV RPDTT RCRES RHAUP
NOJWR IOFEB ESMMY DOCET AUEMN
GSEHI AEGJT AOVKL LULLO ZMOUG
SYRRM AAQGC NBAPE TDDOK MNSYH

ACNED ENBEE JAEJR QTDAA HFAIA
CRRTH BLLLS UKACO RCWLR GKOUR
ZWDAO IRHZK AUYTN EFDAL MOPIE
WCMCK CTRAN EWSEE SEOSN FKYOA
NHAES ALNBD YMASS VMSSE NRXLT

DAVHC LATNN RWNHI PNCKI POSSN
EIFRE URAPO ANPSC IAEEY EGNLE
NCMEU BDEOE MROLG LZRAB RAVBI
ELIWR OUZUE OEIJI SCCGI GOSAE
TORYL RRIAT QSTNN IGWEC NOSXE

ALAPV LSHED DABRN EEEJR QZHSE
BEAKR RHCSM EBGSN ONGAL DCEYA
DRPEL AIIAT OHUOT LINVR IYPIT
MUJFR RLRTC TAWNT ENGOO CXUIZ
RLLPU ETETT SAEIS AISZN RNHAD

BNQSC OPIOC OECAT GTDTJ TTMEU
FECOL AHNZK ETEEI EDEEU SKCHI
ARBYT OBEET RNNLR ARRBU AXEYV
NTIGS HEHNF OESCR RBNWG ETSLE
HRHIR SEROH ATRLY SMRSY XIMED


"There was a farmer had a dog..."
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridOne.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridOne.html new file mode 100644 index 0000000000000000000000000000000000000000..0643d5533a61dc7601658caab23f5c0cd66347fb --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridOne.html @@ -0,0 +1 @@ + Another Dimension: Level 1
Spookiness Rating: 0

Another Dimension: Level 1

FSWSS VCNCV PAOGA SWSTN NSTHD
GBMGD NKSIA ONLIS LHOHL KPFYP
TLLTA YDLCB WNCCP HSEPM XOCBL
RSBCK JBLES RMICA WHMEN KBIZS
PTUAF CDWRA ESAEG MEBLY QTTSC

GPBBG LAANL TRSDF OTMBE RKAPH
ACRRO AWAUT LMAPO TEZKA FIAVK
ACOWI PCBJY IOAHC HRFBM SAASU
HXWJB CYSOH IATYL CEEGM NRAEF
ALNGN NPGII SRHQB TZLBT SILOW

BMNHI AJORF CORCC EBPWW EYRDT
AAGLA ABRPT LNSGB LSRAR VIESE
KGDNN VORBR FOEMO PPODU SRYEX
OMEEK HIBEE BBKSO DNRAD RLBYS
ATWDA OUCNG MTAFE MGZOK GYGTQ

CHFWF DBLDF EABFU SZZWA WHPNE
STIBI PYEAS BJEOF DRGWO BMMAR
TBREI ACSVU FBCSA OROHI XNVSU
MVJKC OINUL RUGCB FWIKG LQBAH
RZMAL GAELD DVAYP FDAPS EAYBG

TLWEE SSCOJ FREUG KOGLC AHDRB
RSLNB PIYDH EMAMS AZSNO TELHY
PKERG SUSHR CCEON FPGSR WLETV
RYAYB LKCLE LKNPI RGTML AXBED
TARTA KCNEF EWABQ FAERZ RRLNW


"How obvious--how necessary--was that mathematical ratio of its sides, the constant sequence 5:5:5! And how naive to have imagined that the series ended at this point, in only three dimensions!"
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridThree.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridThree.html new file mode 100644 index 0000000000000000000000000000000000000000..21fcdda6a36f0f8d5519bcb44132f01e49283aca --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridThree.html @@ -0,0 +1 @@ + Another Dimension: Level 3
Spookiness Rating: 0

Another Dimension: Level 3

QQJBN IAAXA MKTIL SELJG UDVFS
ELSWI VPHAN EIUCR CUTRZ PTAWE
BFHIB UPOCT RINBH LSLKS DBEYE
DNNYN LGGTA EJITJ EFOSI NBAYM
PDPBO AREAN UFARH HAEUD UZEBN

ADBHU FEPAD YSOKL POLEI ICKAE
APNMI AIWYI CSHNT YAXAO EOUGR
VBRNJ AIADR RESZA FATTP AYLRR
IEBEN VRARI UUREN CERRY LPRNE
SGLAL EAQEL AEMKG RRUAI DIOLL

TEAID ILYAW GBDNM OUTMB MROVV
EYLOR ONOCQ REUYH XAGPO GALEE
NSBOR IOOPM PRNVA EOGIZ RREUK
RROGP CHDIU SOAFV ATCSN OSAWT
NRRSA GAYIA YLAMS JUEVH SALEN

NBMMO OGABG NSCGC BDBBO AFFLR
CTTRE IHHCE AAAAO RZPEA EKEDI
SONAO RYARR IIOLR ALUAL POPNR
GOYVM RCUCB ELSES ALNDD WATWC
KOSNK AHQRE DVJYM YANVC LDXTA

NSBNA LTDTR NHSCA ZPNRN MELKC
DAONI DADEI KPTDI IBAOO ELIST
TXAGE QARUP ASIER LRRJW WYDVE
TFGUE TKHIA AKEUB NROKE ERYUK
PHCBE MUHHU XSGAL KRVIA KCSNL


"You're not thinking fourth-dimensionally!!!"
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridTwo.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridTwo.html new file mode 100644 index 0000000000000000000000000000000000000000..c0dc73830056858903b73d5873d2c3f59d382d4f --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/gridTwo.html @@ -0,0 +1 @@ + Another Dimension: Level 2
Spookiness Rating: 0

Another Dimension: Level 2

MODQM SGLKU OTSCA IYUCD OHDEM
ARMSO SPAUG RPMNP ACGAB EJPOA
ASTLR IOABO ARCAU SAVSJ RBTFH
TSHOO HFIKU CCEAX ZSOIR KWTOS
LBPER OUEQM QDIJV CEDRD MHASY

CARTE EOBIF VPDEC LRHAT VNUGL
LTKPN ROORL COIUO WLDLN TRUWL
FAACO RXANI ARMAR OOCNO TEALA
UQCDS GDITR GOHPN AYYTA UHHCP
SIKIZ IAARA WSSSU HDIOE EIJMW

LGELQ LHRIA BOTPI AATUB YAVRM
DSIAP AOAES RRFOO GRUOA MEWIT
WAVUW BNORY RTERI TRAHR DXLEQ
NEIDA AEOAC OTDRU NAOII HEOYA
PAAMN BMKHL LSKLZ JNNUE ILZNG

AHILS SIIGW JSAJR ECEAI EGCQN
URASE HPPAN FCCRO UNOIR SCALE
NESXH GXATE ACLRL VRECE YGMPE
SHIAA DBNEO UTDNR UEELR UWRNO
ZEOTE BODRR BIULK YAYTC DRHNN

BBOEB FBEHT MEAII ONCRR SSOBY
URHTN ALTAA OFSHA SEXOC LEKZR
TRCOL OUGTH HOYQT ANWAR OGMEH
WNOWL ANKOO OLTTH MISLI YDRWC
PORND RUAOD UAOZA VLHTF UJKTG


"Once you have eliminated the impossible, whatever remains, however improbable, must be the truth."
\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/index.html new file mode 100644 index 0000000000000000000000000000000000000000..f47c83c2b122f29fa787d0b479f2abab9152ae49 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/index.html @@ -0,0 +1 @@ + Another Dimension
Spookiness Rating: 0

Another Dimension

A very "meta" puzzle

The Grid:

The Clues:

\ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/wclues.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/wclues.html new file mode 100644 index 0000000000000000000000000000000000000000..4742cd497c73f1442855a06507243d4a0ffc5a86 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/wclues.html @@ -0,0 +1 @@ + Another Dimension: W Direction Clues
Spookiness Rating: 0

Another Dimension: The W File

Keep a level head, and you'll level the competition.

GamblingCardGameWagerClothing
JamesBondActorMoonrakerOctopussy
CarPartsStoppingSandalsPumps
WellsFargoTransportWesternWheeled
*AdageExcessiveSpeedProducesRefuse
KidsInHallMovieMind
MagiciansPhraseAbracadabraPrestoChango
RolledPolishedSilicateDishCup
VegetableCompanyHoHoHo
PersonSkilledAtGrowingPlants
LargeMusicalSpectacleRigolettoFigaro
GroupPerformedWithMarkyMark
*BenJerryFlavorNewYork
MusicGenreAC/DCLeppardRatt
TalismanFortuneCloverRabbit'sFoot
DahlCharacterFactoryGeneWilder
ActorRobinHoodCaptainBlood
DickensNovelChanceryCourtsJarndyce
BrazilianBombshellSpiderWomanParador
SongBySamTheSham
FormerSportscasterCubsHolyCow
ActorSixDegreesFlatlinersFootloose
GroupChildrenCubEagleDen
KitchenToolSerratedSlicingLoaves
PersonWhoRuinsOther'sFun
PrincessBrideGroupBurlyMen
HugeTenArmsMolluskArchiteuthis
AmericanChoreographerBluesSuiteRevelations
SingerRaptureBestIGot
AmericanPhilosopherPsychoanalysisArtLoving
GameShowFinaleExtraPrize
*LoafMadeWithEntireGrain
RapidDownpourOverflowStreetsQuickly
EmployingKidsDoingHeavyWork
JokeAwardForLastPlace
SharpHuntingBladeEponymJames
PeanutsCathyDoonesburyDilbertZiggy
LegalTermAtFirstAppearance
HeavyweightBoxingMatchForPurse
Short-leggedDogBreedCardiganPembroke
SwedishActressNinotchkaAnnaKarenina
TeamsterLeaderDisappearedGiantsStadium
ZaftigActressMiseryGreenTomatoes
JanPeterGregCindyAlice
DaughterOfLucyAndDesi
LPGALegendHusbandRayKnight
WomanMysteryWriterRoderickAlleyn
BeatlesDrummerBornRichardStarkey
LifestylesOfRichFamousHost
AmericanComedianBornMiltonHines
FemaleDancerChoreographerJazzBallet
ParquetSurfaceMadeForHoofing
TemperatureThatMaterialsFlameOver
SitcomHarryStoneBullLarroquette
BigTiresCarWetlandTerrain
BirdAustralianWaxbillPoephilaGuttata
AmericanTreeCabinetsAcerSaccharum
TimepieceCasioSeikoTimexRolex
WallPigmentRubberSapBased
RegalKryptonXenonHeliumNeon
NixonVeepGrowAPenis
*3, not 2 \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/xclues.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/xclues.html new file mode 100644 index 0000000000000000000000000000000000000000..0ba34f05057e98a2780fda04c399fcd0da925323 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/xclues.html @@ -0,0 +1 @@ + Another Dimension: X Direction Clues
Spookiness Rating: 0

Another Dimension: The X File

The truth is out there. Actually, it's right here, right in front of you.

CTraditionalFirstProgramSalutation
HuntAuthorNPLNomSquonk
DocEmmittBrownCatchphraseWow
IrishDublinersFinnegan'sWakeUlysses
*FishJawsMan-EatingCarcharodonCarcharias
SodiumPentatholHypnoticElicitingDrug
GibberishIncomprehensibleRhymingPhraseNonsense
*NearCan'tMissShootingDistance
TenThroughAceSameSuit
CetaceanPhysterMacrocephalusSoundsDirty
CartoonZorakMoltarBrakHost
FreeReinSpendMoneyUnlimited
ChefWroteThemeFromShaft
CrunchyBreadCrackerWithSoup
CE-FlatGForExample
HungarianComposerPianistManyRhapsodies
PresidentOfSyriaUntil2000
PlayfulAquaticMammalLutraEnhydra
VenomousAustralianSnakeAcanthophisAntarcticus
MarionetteWithBuffaloBobSmith
IndependenceDayKingpinBrotherDennis
DockWithLocksEbbNeap
PartiallyPalindromicCapitalOfEthiopia
Talk-ShowHostClassicLPGATournament
EgyptianPresidentAssassinatedin1981
FeministLawyerBattlingManyHats
LittlePersonActorUHFWillow
JedClampettMarcusWelbyActor
Top40WifeJeanShaggy
SuzanneSugarbakerDesigningWomenDAG
LPTheBeatlesCommonName
SuperAttorneyRedfordWingerHannah
OldHanna-BarberaCharacterLikeCrocodile
UnderarmDeodorantOrFootballPosition
Bush'sB&MCampbellsBostonFood
LiftWeightsWhileOnBack
ConstellationNearOrionContainingSirius
LiquidPreventHackingRobitussinVicks
MeatTomatoesOnionsPeppersSkewer
CowboySidekickActorHeldoradoSilverspurs
ScreenVixenStormB.A.P.S.Bulworth
AustralianSingerIAmWoman
*ProlificAuthorRosamondSmithBellefleur
CzechAuthorR.U.R.Coined"Robot"
YoungFemaleCountrySinger"Blue"
HungarianActressNotEvaZsazsa
FlorenceTheJeffersonsActress227
JuryDutyEncinoMan"Actor"
ActressUntamedHeartCan'tJump
AuthorBookForAnotherSpooky
GrittyActorMikeHammerUnshackled
PartnerOfCheechRaeDawn
DanishAstronomerDiscoveredErrors1573
SerialComputerNetworkLinkedFlowers
HeavyPullingAnimalShireClydesdale
ScaryTaleToldAroundCampfire
LargeStrongBirdHarpiaHarpyja
DefensiveEndBillsNowRedskins
NabiscoShortbreadCookieBlackmoreNovel
AuthorOfTheStraightDope
ScreenLegendPlayedRhettButler
*3, not 2 \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/yclues.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/yclues.html new file mode 100644 index 0000000000000000000000000000000000000000..10b3803bed065de68e6678c2578f50fa6ac2a549 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/yclues.html @@ -0,0 +1 @@ + Another Dimension: Y Direction Clues
Spookiness Rating: 0

Another Dimension: The Y File

We put down the clues so you can get down to work.

OxfordPinstripedStarchedCollarButton-down
OldWestCafeteriaDogFood
CompetitorOfAboveSauceLocomotive
AndrogynousJamaicanSongstressPlayedMayday
*FemaleTennisPlayerMarriedName
CommunicationKioskSupermanChangingRoom
ESPNicknameBruceWillisMovie
IndianConductorLANYPhilharmonic
DavidProwseJamesEarlJones
PlaywrightGlengarryGlenRossProfanities
Kellogg'sCerealRingsDeliciousMcIntosh
LocalStreetCelebrationCitySquare
BlendedLiquorMartiniMargaritaDaiquiri
CoatedKitchenRollParaffinSheet
SeafrontLongIslandSouthShore
CompletelyUtterlyWithoutAnyClothing
SeinfeldCo-creatorIt'sNotJerry
BeliefInSomethingWithoutSeeing
PatrickDuffyCharacterOnDallas
HouseTypeGroundBetweenFloors
ActorDirectorSleeperBananasKonigsberg
ColdWaterCharSalvelinusFontinalis
ResultsAtEndOfGame
PlaceWhereHomerSimpsonWorks
MonopolyUtilityNotElectricCompany
DateWhereBothPeoplePay
TrainedVolunteerGroupUnderdevelopedNations
DungeonsDragonsNumberProtectionRating
AmericanActressOscarsDangerousJezebel
ShortActorCitySlickersCostar
GhostbustersSecretaryDesigningWomenActress
ArgentinaPopularLeaderMadonnaRole
PersonWhoAdjustsKeyboardInstrument
ClassicHollywoodRestaurantBigHat
FootballQuarterbackAccurateSucceededMontana
RockBandShannonHoonSoup
JazzSingerActressTouchedAngel
MultipleEndingMusicalMysteryOf
LatinPhraseForSolidGround
SingerWithSteveLawrenceGormenzano
ActressAccidentalTouristThelmaFletch
ActressFatalAttractionDeVilNear
GoldenPondActorDaughterJane
ClassicComedian"Professor"AndyWilliams
MTVNamesakesDowntownJustSay
AmericanGymnastHurtCarriedKarolyi
ActressExorcistVomitedPeaSoup
IsraeliPoliticalMilitaryLeaderWriter
UtahRepublicanSenatorPresidentialCandidate
LakerGirlChoreographerPopSinger
FlyingNunReallyLikeMe
ActressBombshellWildWildWest
ConductorSoundsLikeVideoDirector
SoapActressFinallyWonEmmy
FormerPornStarCryBaby
LiveFreeOrDiee.g.
PersonGivingABO
FancyRibDishCircle"Royal"
WiseGuyObnoxiousConceitedPerson
ConestogaTransportRollsOnThis
EnormousHa-haGutBustingGuffaw
HardBristledScourerHeavyCleaning
*3, not 2 \ No newline at end of file diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/zclues.html b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/zclues.html new file mode 100644 index 0000000000000000000000000000000000000000..c5e47e7b084a50d49478f1938bce63cef997cbf4 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/by_tsv/2001/2001_phase4_13_index.html/zclues.html @@ -0,0 +1 @@ + Another Dimension: Z Direction Clues
Spookiness Rating: 0

Another Dimension: The Z File

Keep going through the clues, don't quit until you're through.

PoshGingerBabySportyScary
FemaleAmericanSwimmerWorldRecords
BobbyDarinHitFantasyAdorer
GrateInStreetRainEgress
BillyJoelAlbumExtremesLeningrad
TakesCaninesIncisorsLeavesMoney
SlangEasyToUseMoron
OldAnimeMachGoGo
PacificArmWashingtonDeFuca
AmericanDirectorIt'sWonderfulLife
SlangLittleCrazyNutBolt
IrishPlaywrightWitDorianGray
BandNielsenZanderCarlosPetersson
BonelessBeefStripCutPlate
ActressPsychoDaughterJamieLee
WoozyPugilistTooManyJabs
CountrySingerVirginiaPattersonHensley
YoungPGAGolferPhenomMasters
FastVenomousSnakeDendroaspisPolylepis
GiantsSluggerFamousFatherBobby
ChristmasJollyKringleNicholasSleigh
TimepieceRingWakeUpMorning
GamblingPracticeCalculatingBlackjackBanned
*HitFromSantanaAlbumLotus
PersonPickedPeckPickledPeppers
TrackRaceStartBeforeGun
ActorBennyJoonAvalonBlink
PackersQuarterbackSomethingAboutMary
PopSingerYou'reSoVain
ComicActorVacationFletchMaryland
Carter'sStateSecretaryResigned1980
ScreamParodySeanMarlonWayans
RhymingSodaLikeMountainDew
NorthCarolinaSenatorAgainstHomosexuals
Wayne'sWorldSidekickDanaCarvey
MaxHeadroomTechieChrisYoung
MeasuresLessThanNinetyDegrees
BoyScoutWorkEarnsThis
LaborSloganLookForThis
AmericanComposerGrandCanyonSuite
AbsurdistRockerDweezilAhmetMoon-Unit
ActorMurphyBrownPlayedMiles
ActressAwfulTruthMamaCimarron
AthleteBuckeyeBulletBrownBombshell
ActressOnDesigningWomenNewhart
MarriedWithChildrenPegBundy
JewishComedianClassicFiftiesSullivan
ConsumerActivistPoliticianGreenParty
ChineseAmericanConductorSFBoston
NorwegianSkaterClassicGoldenGirl
ActressNeeCoppolaRockyGodfather
StanfordStandardIQMeasurementSystem
SpiralBeachSouvenirBlowHorn
MixtureGrapesPineappleMelonetc.
Welch'sDrinkConcordWineEventually
NeuronProcessAxonDendriteStrand
GiantCruiseShipAtlanticQEII
ConnectedPointsGeometric2D747
PendulumBenchHangingFrontPatio
SamarianMagicianBuyHolyGhost
SeatCarriedByTwoPeople
FamousManhattanHotelTheDonald
*3, not 2 \ No newline at end of file diff --git a/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/Artifacts/07/07a25769e4683136426e383407b29b29 b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/Artifacts/07/07a25769e4683136426e383407b29b29 new file mode 100644 index 0000000000000000000000000000000000000000..eca9c2b040dcc04274925c65315cf6b6b7ab391d --- /dev/null +++ b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/Artifacts/07/07a25769e4683136426e383407b29b29 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47848ca4744321f9c7699b7cda3cfe176407ec415b025b5032e04b4170a79ec2 +size 115712 diff --git a/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry.png b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry.png new file mode 100644 index 0000000000000000000000000000000000000000..e08541cb6ec209b7c59702980472273156e2ff99 --- /dev/null +++ b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e49c4011c48220241185e203829c815cdbe33f5fe9037ae4970725c4f13f4f17 +size 452 diff --git a/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry@2x.png b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c50a62fa02ffa167f9a42e311184c97c2d520b2a --- /dev/null +++ b/benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.2d.animation@5.0.4/Editor/Assets/SkinningModule/Icons/Selected/Edit_Geometry@2x.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5741e32d9064589b416710fb00352efea031d2561ecdb7e09ad759d6be0c0246 +size 1090