diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013108_MIT_Mystery_Hunt_2013_You_Should_Be_Listening/asset_index.html b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013108_MIT_Mystery_Hunt_2013_You_Should_Be_Listening/asset_index.html new file mode 100644 index 0000000000000000000000000000000000000000..e4e6979d07b58b5d32652690e6d5392a6011c8f3 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013108_MIT_Mystery_Hunt_2013_You_Should_Be_Listening/asset_index.html @@ -0,0 +1,138 @@ + + + +You Should Be Listening (Solution) -- COINHEIST + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + +
+ +

+ You Should Be Listening (Solution) +

+ +

by Ben Aisen, with line art by DD Liu and coloring by Miriam Gershonson, Halimeda Glickman-Hoch, Yuri Lin, Casey McNamara, Robyn Speer and John Wiesemann

+

There are nine pictures, each containing six anime characters. In each picture, three characters share a Japanese voice actor and the other three share an English voice actor. There is a single notable anime character that both the Japanese voice actor and the English voice actor played, and that character's name fits into the boxes - first the Japanese name in kana and then the English name in letters. As an added hint, the pose in which the six characters appear is taken from the solution character's series.

+ +

(Note that names are different in different languages. In particular, a Japanese person's surname is first in +Japanese but the given name is first in English. On the other hand, a Westerner's given name is first in both +languages.)

+ +

1 - Edward Elric (Full Metal Alchemist)
+Romi Park as: Toshiro Hitsugaya (Bleach), Ganta Igarashi (Deadman Wonderland), Naoto Shirogane (Persona 4)
+Vic Mignogna as: Spirit Albarn (Soul Eater), Fai D. Fluorite (Tsubasa Chronicle), Tamaki Suoh (Ouran High School Host Club)

+ +

2 - Ika-musume/Squid Girl (Squid Girl)
+Hisako Kanemoto as: Yui Kiriyama (Kokoro Connect), Astelia de Rochefort (Rinne no Lagrange), Yuki Yoshida (Is this a Zombie?)
+Christine Marie Cabanos as: Minawa Ando (Mahoromatic), Madoka Kaname (Madoka Magica), Azusa Nakano (K-On)

+ +

3 - Tsumugi Kotobuki (K-On)
+Minako Kotobuki as: Mitsuko Kongo (Index), Nekomi Nabeshima (Medaka Box), Sen Tokugawa (Samurai Girls)
+Shelby Lindley as: Chizuru Aizawa (Squid Girl), Shamal (Lyrical Nanoha), Hitomi Shizuki (Madoka Magica)

+ +

4 - Ichigo Kurosaki (Bleach)
+Masakazu Morita as: Barnaby Brooks Jr (Tiger & Bunny), Kazuya Hiramaru (Bakuman), Claire Stanfield (Baccano)
+Johnny Yong Bosch as: Itsuki Koizumi (Haruhi), Lelouch Lamperouge (Code Geass), Vash (Trigun)

+ +

5 - Rintarou Okabe (Steins;Gate)
+Mamoru Miyano as: Masaomi Kida (Durarara!), Takuto Tsunashi (Star Driver), Light Yagami (Death Note)
+J. Michael Tatum as: Kraft Lawrence (Spice & Wolf), Kyoya Ohtori (Ouran High School Host Club), Ryosuke Takahashi (Initial D)

+ +

6 - Yuki Sohma (Fruits Basket)
+Aya Hisakawa as: Minamo Kurasawa (Azumanga Daioh), Ami Mizuno (Sailor Moon), Skuld (Ah My Goddess)
+Eric Vale as: America (Hetalia), Trunks Briefs (Dragon Ball), Yuuji Kaidou (Blue Gender)

+ +

7 - Spike Spiegel (Cowboy Bebop)
+Kouichi Yamadera as: Ryouga Hibiki (Ranma 1/2), Ryouji Kaji (Evangelion), Mew (Pokemon)
+Steven Blum (aka David Lucas) as: Kazuma (Scryed), Roger Smith (Big O), TOM (Toonami)

+ +

8 - Suiseiseki (Rozen Maiden)
+Natsuko Kuwatani as: Ryouko Asakura (Haruhi), Yue Ayase (Negima), Florette Harvenheit (Chrono Crusade)
+Rebecca Forstadt (aka Reba West) as: Rika Furude (When They Cry), Nunnally Lamperouge (Code Geass), Mei Narugesawa (Love Hina)

+ +

9 - Kanade Tachibana (Angel Beats)
+Kana Hanazawa as: Nadeko Sengoku (Bakemonogatari), Mayuri Shiina (Steins;Gate), Anri Sonohara (Durarara!)
+Emily Neves as: Horizon Ariadust (Horizon in the Middle of Nowhere), Kotomi Ichinose (Clannad), Ringo Oginome (Penguin Drum)

+ +

Use Japanese numerals to extract kana, and Roman numerals to extract letters.

+ +

Japanese clue: E-I-GO DE KO-O-SE-KI
+English clue: MALE PRONOUN

+ +

ORE is the only word that's both an English word for "kouseki" and a Japanese male pronoun, so it is the answer to this puzzle.

+ + + + + +
+ + +
+
+
+ + + + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013608_MIT_Mystery_Hunt_2013_Diagramless_Crossmusic/OW.png b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013608_MIT_Mystery_Hunt_2013_Diagramless_Crossmusic/OW.png new file mode 100644 index 0000000000000000000000000000000000000000..1d8df08c5c29dbf8ec792de23cb34ea2561aa656 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2013/mit2013608_MIT_Mystery_Hunt_2013_Diagramless_Crossmusic/OW.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f233715fcc1ea87c627ecb70f662996b68c32c6c3f03c31bbf819315d5d474d +size 6047 diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d10_MIT_Mystery_Hunt_2014_Down_the_Rabbit_Hole_2_Super_Magic_Samurai_Ro/img25.jpg b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d10_MIT_Mystery_Hunt_2014_Down_the_Rabbit_Hole_2_Super_Magic_Samurai_Ro/img25.jpg new file mode 100644 index 0000000000000000000000000000000000000000..87a358f680bea581f15ce05108ed6a96f5aea5f5 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d10_MIT_Mystery_Hunt_2014_Down_the_Rabbit_Hole_2_Super_Magic_Samurai_Ro/img25.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03c673e85e1db418b7e2e08ac50c7a22dea43e0285c01668ebaeda5648620d0f +size 6040 diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/_solution_assets/index.html b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/_solution_assets/index.html new file mode 100644 index 0000000000000000000000000000000000000000..c86946b0d5d8ba8db554c5a54327471cae49304c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/_solution_assets/index.html @@ -0,0 +1,200 @@ + + + + Upstairs, Downstairs (MIT) + + + + +
+
+ + Back + +
+
+ + +
+

Solution to Upstairs, Downstairs

+ +

+Author: Adam Suhl +

+ +

Each description actually clues two different rooms. Taking the difference of the room numbers gives a number between 1 and 26, which maps to a letter.

+ +
+

If you took 18.112 or 3.080 in Fall 2013, you're probably pretty familiar with this classroom.

+
    +
  • 4-153: Where 3.080 was taught in Fall 2013 +
  • 4-149: Where 18.112 was taught in Fall 2013 +
  • 4 → D +
+
+ +
+

I listen to the Rainbow Lounge Nightly News every weekday from 5:30 to 6:00.

+
    +
  • 50-005: Rainbow Lounge +
  • 50-030: WMBR (which broadcasts WMBR Nightly News on weekdays from 5:30 to 6:00) +
  • 25 → Y +
+
+ +
+

If you've ever wanted to read "Escape to Witch Mountain" while hiking up a mountain, this student group (whose office can be found in the student center) is for you.

+
    +
  • W20-473: MITSFS office +
  • W20-461: MITOC office +
  • 12 → L +
+
+ +
+

In 2011, Bexley called this "a door for dwarves." I guess that means the director is a dwarf?

+
    +
  • 8-137: Bexley 2011 i3: "This door is for dwarves" +
  • 8-138: Center for Materials Research in Archaeology & Ethnology: Office of the Director +
  • 1 → A +
+
+ +
+

The 26 third floor men's room is just to the left of a poster with some TV cartoon characters.

+
    +
  • 26-348: To the left of a poster on photon-photon interactions featuring Pinky and the Brain +
  • 26-334: 26 third floor men's room +
  • 14 → N +
+
+ +
+

As I passed through the double doors from 18 to 56, I noticed that the room directly across from me was the BPEC plate reader room.

+
    +
  • 56-402: Sits across from the double doors to 18 on the fourth floor of 56 +
  • 56-421: BPEC Plate Reader room +
  • 19 → S +
+
+ +
+

As I passed through the double doors from 18 to 56, I noticed that the room directly across from me had a poster of a pine forest in the window.

+
    +
  • 56-002: Sits across from the double doors to 18 in the basement of 56 +
  • 56-022: Has a poster of a pine forest in the window +
  • 20 → T +
+
+ +
+

Unauthorized items left in this 56 basement room will be discarded... but only if they're recyclable.

+
    +
  • 56-086: "Recycling only -- no trash!" sign +
  • 56-085: "Unauthorized items will be discarded" sign +
  • 1 → A +
+
+ +
+

Course 1 is headquartered across from the words "Parts Required."

+
    +
  • 1-290: Course 1 headquarters +
  • 1-276: Room located across from the words "Parts Required," which appear on a print in Chris Burden's series "The Master Builder" +
  • 14 → N +
+
+ +
+

This room is across from a picture of a legendary monster and to the right of a Jacob's ladder.

+
    +
  • 4-410: To the right of a Jacob's ladder +
  • 4-406: Across from picture of Loch Ness monster +
  • 4 → D +
+
+ +
+

Where is Professor Golay's office? I just can't remember....

+
    +
  • 24-223: Office of Prof. Michael Golay +
  • 24-214: Office of Prof. Benoit Forget +
  • 9 → I +
+
+ +
+

Two doors to the left of the closed Athena cluster recently absorbed by Course 16, there's a door with a picture of some rather negative Muppets.

+
    +
  • (37-332 or -312: Cluster absorbed by Course 16) +
  • 37-344a: Door two doors to the left of 37-332 +
  • 37-344: Door two doors to the left of 37-312 +
  • 37-358: Has picture of Muppets saying "Join the SSL? Nope Nope Nope Nope Nope Nope..." +
  • 14 → N +
+
+ +
+

An Athena printer can be found in Building 1 in an alcove directly across from Dr. Schuhmann's office.

+
    +
  • 1-165: Room directly across from the Athena printer +
  • 1-172: Dr. Schuhmann's office +
  • 7 → G +
+
+ +
+

While taking a drink from the 26 basement water fountain, I noticed to my left a door with a "DANGER! HIGH VOLTAGE!" sign, but a sign next to the door suggested I'd be welcome to enter anyway.

+
    +
  • 26-018: High voltage room +
  • 26-027: Door with "you are welcome here" sticker +
  • 9 → I +
+
+ +
+

The Lockheed Martin Classroom (named after an MIT '73 alum and his wife) can be found on the first floor of the Stata Center.

+
    +
  • 32-141: Lockheed Martin Classroom +
  • 32-155: Mary Lee and Vernon Altman ('73) Classroom +
  • 14 → N +
+
+ +
+

This Building 16 alcove (which has its own room number) is lined with videodiscs. It's situated in the hallway between a blackboard and a bulletin board.

+
    +
  • 16-655: Alcove with videodiscs +
  • 16-635: Door between a blackboard and a bulletin board +
  • 20 → T +
+
+ +
+

I went to turn in my add form, and while I was there, I downloaded and printed out the class's syllabus.

+
    +
  • 11-120: Student Services Center, where add forms are turned in +
  • 11-112: Quickstation cluster with printers +
  • 8 → H +
+
+ +
+

To the left of a timeline on naval technology live some Seussian marine animals.

+
    +
  • 5-224: Door to the left of the naval technology timeline +
  • 5-229: Door has a picture of the cover of One Fish Two Fish Red Fish Blue Fish +
  • 5 → E +
+
+ +

This spells out DYLAN STANDING IN THE, which clues the answer to the puzzle, DOORWAY.

+ +
+ + +
+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/solution.html b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/solution.html new file mode 100644 index 0000000000000000000000000000000000000000..c86946b0d5d8ba8db554c5a54327471cae49304c --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r1d9_MIT_Mystery_Hunt_2014_Upstairs_Downstairs/solution.html @@ -0,0 +1,200 @@ + + + + Upstairs, Downstairs (MIT) + + + + +
+
+ + Back + +
+
+ + +
+

Solution to Upstairs, Downstairs

+ +

+Author: Adam Suhl +

+ +

Each description actually clues two different rooms. Taking the difference of the room numbers gives a number between 1 and 26, which maps to a letter.

+ +
+

If you took 18.112 or 3.080 in Fall 2013, you're probably pretty familiar with this classroom.

+
    +
  • 4-153: Where 3.080 was taught in Fall 2013 +
  • 4-149: Where 18.112 was taught in Fall 2013 +
  • 4 → D +
+
+ +
+

I listen to the Rainbow Lounge Nightly News every weekday from 5:30 to 6:00.

+
    +
  • 50-005: Rainbow Lounge +
  • 50-030: WMBR (which broadcasts WMBR Nightly News on weekdays from 5:30 to 6:00) +
  • 25 → Y +
+
+ +
+

If you've ever wanted to read "Escape to Witch Mountain" while hiking up a mountain, this student group (whose office can be found in the student center) is for you.

+
    +
  • W20-473: MITSFS office +
  • W20-461: MITOC office +
  • 12 → L +
+
+ +
+

In 2011, Bexley called this "a door for dwarves." I guess that means the director is a dwarf?

+
    +
  • 8-137: Bexley 2011 i3: "This door is for dwarves" +
  • 8-138: Center for Materials Research in Archaeology & Ethnology: Office of the Director +
  • 1 → A +
+
+ +
+

The 26 third floor men's room is just to the left of a poster with some TV cartoon characters.

+
    +
  • 26-348: To the left of a poster on photon-photon interactions featuring Pinky and the Brain +
  • 26-334: 26 third floor men's room +
  • 14 → N +
+
+ +
+

As I passed through the double doors from 18 to 56, I noticed that the room directly across from me was the BPEC plate reader room.

+
    +
  • 56-402: Sits across from the double doors to 18 on the fourth floor of 56 +
  • 56-421: BPEC Plate Reader room +
  • 19 → S +
+
+ +
+

As I passed through the double doors from 18 to 56, I noticed that the room directly across from me had a poster of a pine forest in the window.

+
    +
  • 56-002: Sits across from the double doors to 18 in the basement of 56 +
  • 56-022: Has a poster of a pine forest in the window +
  • 20 → T +
+
+ +
+

Unauthorized items left in this 56 basement room will be discarded... but only if they're recyclable.

+
    +
  • 56-086: "Recycling only -- no trash!" sign +
  • 56-085: "Unauthorized items will be discarded" sign +
  • 1 → A +
+
+ +
+

Course 1 is headquartered across from the words "Parts Required."

+
    +
  • 1-290: Course 1 headquarters +
  • 1-276: Room located across from the words "Parts Required," which appear on a print in Chris Burden's series "The Master Builder" +
  • 14 → N +
+
+ +
+

This room is across from a picture of a legendary monster and to the right of a Jacob's ladder.

+
    +
  • 4-410: To the right of a Jacob's ladder +
  • 4-406: Across from picture of Loch Ness monster +
  • 4 → D +
+
+ +
+

Where is Professor Golay's office? I just can't remember....

+
    +
  • 24-223: Office of Prof. Michael Golay +
  • 24-214: Office of Prof. Benoit Forget +
  • 9 → I +
+
+ +
+

Two doors to the left of the closed Athena cluster recently absorbed by Course 16, there's a door with a picture of some rather negative Muppets.

+
    +
  • (37-332 or -312: Cluster absorbed by Course 16) +
  • 37-344a: Door two doors to the left of 37-332 +
  • 37-344: Door two doors to the left of 37-312 +
  • 37-358: Has picture of Muppets saying "Join the SSL? Nope Nope Nope Nope Nope Nope..." +
  • 14 → N +
+
+ +
+

An Athena printer can be found in Building 1 in an alcove directly across from Dr. Schuhmann's office.

+
    +
  • 1-165: Room directly across from the Athena printer +
  • 1-172: Dr. Schuhmann's office +
  • 7 → G +
+
+ +
+

While taking a drink from the 26 basement water fountain, I noticed to my left a door with a "DANGER! HIGH VOLTAGE!" sign, but a sign next to the door suggested I'd be welcome to enter anyway.

+
    +
  • 26-018: High voltage room +
  • 26-027: Door with "you are welcome here" sticker +
  • 9 → I +
+
+ +
+

The Lockheed Martin Classroom (named after an MIT '73 alum and his wife) can be found on the first floor of the Stata Center.

+
    +
  • 32-141: Lockheed Martin Classroom +
  • 32-155: Mary Lee and Vernon Altman ('73) Classroom +
  • 14 → N +
+
+ +
+

This Building 16 alcove (which has its own room number) is lined with videodiscs. It's situated in the hallway between a blackboard and a bulletin board.

+
    +
  • 16-655: Alcove with videodiscs +
  • 16-635: Door between a blackboard and a bulletin board +
  • 20 → T +
+
+ +
+

I went to turn in my add form, and while I was there, I downloaded and printed out the class's syllabus.

+
    +
  • 11-120: Student Services Center, where add forms are turned in +
  • 11-112: Quickstation cluster with printers +
  • 8 → H +
+
+ +
+

To the left of a timeline on naval technology live some Seussian marine animals.

+
    +
  • 5-224: Door to the left of the naval technology timeline +
  • 5-229: Door has a picture of the cover of One Fish Two Fish Red Fish Blue Fish +
  • 5 → E +
+
+ +

This spells out DYLAN STANDING IN THE, which clues the answer to the puzzle, DOORWAY.

+ +
+ + +
+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r209_MIT_Mystery_Hunt_2014_Oyster_Card/gamma-8.png b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r209_MIT_Mystery_Hunt_2014_Oyster_Card/gamma-8.png new file mode 100644 index 0000000000000000000000000000000000000000..7b4be9e7c43d4dcdbfdd8fbf9939f7a4c5bdba97 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r209_MIT_Mystery_Hunt_2014_Oyster_Card/gamma-8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2b7a41489e7e7ba6fad4192ded51350821f5b8062f5ce98cd1faa210019dfa5 +size 6030 diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/please_remain_seated b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/please_remain_seated new file mode 100644 index 0000000000000000000000000000000000000000..3f74814a4cbbb40ae6e7b5ccc6a7f3e7e440aeee --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2014/mit2014r311_MIT_Mystery_Hunt_2014_Please_Remain_Seated/please_remain_seated @@ -0,0 +1,126 @@ + + + + Please Remain Seated (The Mock Turtle) + + + + +
+
+ + Back + +
+
+ + +
+

Solution to Please Remain Seated

+ +

Author: James Clark

+ +

+Twenty city names are listed, followed by twenty image/video pairs. The image in each pair is of a (real) roller coaster, and the video is of a ride on a roller coaster designed in the game Roller Coaster Tycoon 3 (RCT3). + +

+The first step is to identify all of the real roller coasters. Each one can be found in an amusement park in one of the cities (and each city is represented). +

+The real roller coasters are as follows: + +
OrderCoaster NameParkCity +
1CycloneLuna ParkBrooklyn, NY +
2Rock 'n' Roller Coaster Starring AerosmithWalt Disney World - Hollywood StudiosLake Buena Vista, FL +
3Outlaw RunSilver Dollar CityBranson, MO +
4Steel Dragon 2000Nagashima Spa LandKuwana, Mie, Japan +
5SheiKraBusch Gardens TampaTampa, FL +
6Ice Mountain BobsledsEnchanted ForestTurner, OR +
7NinjaSix Flags Magic MountainValencia, CA +
8GateKeeperCedar PointSandusky, OH +
9NighthawkCarowindsCharlotte, NC +
10UntamedCanobie Lake ParkSalem, NH +
11Mystery MineDollywoodPigeon Forge, TN +
12BizarroSix Flags New EnglandAgawam, MA +
13ExplorerMirabilandiaSavio, Italy +
14Rebel YellKings DominionDoswell, VA +
15Space MountainDisneylandAnaheim, CA +
16Iron RattlerSix Flags Fiesta TexasSan Antonio, TX +
17NemesisAlton TowersAlton, Staffordshire, England +
18Dahlonega Mine TrainSix Flags Over GeorgiaAustell, GA +
19El ToroSix Flags Great AdventureJackson, NJ +
20X CoasterMagic Springs and Crystal FallsHot Springs, AR +
+ +

+The RCT3 roller coasters don't match up with the real roller coasters, since their tracks are not similar to the real roller coasters, and the roller coaster types are in some cases wildly different. However, it can be noticed that some of the RCT3 roller coasters have unusual track layouts, with lots of over/under crossings. + +

+In fact, all of the track layouts are knots (in the knot theory sense). None can be unravelled to form the "unknot", and all are in minimal form with respect to their crossing numbers. + +

+In case solvers do not discover this, reading down the first letters of the real coaster names in the order given gives the clue 'CROSSING NUMBERS INDEX'. + +

+Solvers must now analyze the videos and determine the shape of the knot made by that roller coaster. Here are top-down images of the RCT3 roller coasters, with the crossings marked: + + +
OrderLayoutCrossing Number +
1layout6 +
2layout7 +
3layout8 +
4layout7 +
5layout4 +
6layout7 +
7layout5 +
8layout4 +
9layout5 +
10layout5 +
11layout7 +
12layout4 +
13layout3 +
14layout3 +
15layout3 +
16layout4 +
17layout5 +
18layout4 +
19layout4 +
20layout5 +
+ +

+Finally, order the data by the city list given at the top of the puzzle, indexing the crossing number into the real roller coaster name: + +
CityOriginal OrderRoller Coaster NameCrossing NumberLetter +
Branson, MO3Outlaw Run8U +
Savio, Italy13Explorer3P +
Valencia, CA7Ninja5A +
New York, NY1Cyclone6N +
Charlotte, NC9Nighthawk5T +
Jackson, NJ19El Toro4O +
Turner, OR6Ice Mountain Bobsleds7N +
Pigeon Forge, TN11Mystery Mine7Y +
Salem, NH10Untamed5M +
Austell, GA18Dahlonega Mine Train4L +
Tampa, FL5Sheikra4I +
Myrtle Beach, SC14Rebel Yell3B +
Kuwana, Mie, Japan4Steel Dragon 20007R +
Anaheim, CA15Space Mountain3A +
Hot Springs, AR20X Coaster5S +
Sandusky, OH8GateKeeper4E +
Agawam, MA12Bizarro4A +
Alton, Staffordshire, England17Nemesis5S +
Lake Buena Vista, FL2Rock 'n' Roller Coaster Starring Aerosmith7O +
San Antonio, TX16Iron Rattler4N +
+ +

+This produces the phrase 'UP ANTONYM LIBRA SEASON', which clues the answer DOWNFALL. + +

+ + +
+
+ + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2015/mit2015r038_MIT_Mystery_Hunt_2015_The_Accumulator/the_accumulator b/benchmark/MIT_Mystery_Hunt/puzzles/2015/mit2015r038_MIT_Mystery_Hunt_2015_The_Accumulator/the_accumulator new file mode 100644 index 0000000000000000000000000000000000000000..63606070ed664eec96bf9c519be666d3a64455de --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2015/mit2015r038_MIT_Mystery_Hunt_2015_The_Accumulator/the_accumulator @@ -0,0 +1,141 @@ + + + + + + + + + + + The Accumulator — MIT Mystery Hunt 2015 + + + + + + + + + + + + + + + + +
+
+
+
+
Location: Chemistry Lab
+
+
+
+ + + + +
+ + + +

The Accumulator

+ + +

Answer: click here to reveal

+ + +
+
+ + + +

The cattle rustler bit his   and hid nervously behind a hay   when he heard the   of police sirens.

+

We will drink green   as we   in style at the gala  .

+

My   partner   more Twinkies than any other scientist in our  .

+

Some of the lions stayed in the gross, dirty  , while the rest   in search of a less   home.

+

The recently deceased man was pretty   up with the   Reaper, it was   to see.

+

The TSA wouldn't let the angler bring her fishing   and   of worms onto the  .

+

I think we should   the election, but I won't tell you my   until you stop making   remarks.

+

While I was busy consulting my   of London, the   I'd been pushing was stolen by a filthy, homeless  !

+

Homer Simpson was taking a   when the air   started spewing radioactive  .

+ + +
+
+ + + +
+ + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/asset_index.html b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/asset_index.html new file mode 100644 index 0000000000000000000000000000000000000000..25a4fe7dd5bc83350ba804cd7f690e4be39b3ed6 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/asset_index.html @@ -0,0 +1,178 @@ + + + + + + + + + + + May the Shortz Be With You — Opus — MIT Mystery Hunt 2016 + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+
+
+ +

May the Shortz Be With You

+ +
+
+

From '06 on, Will began lending his signature stylings to a + completely different blockbuster series.

+ +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+ + +

You may find the following chronology helpful:

+

+

2006: Will Shortz lies on his tummy to solve some puzzles. +

2007: Will Shortz is a smiley face. +

2008: Will Shortz places an apple on top of his puzzles. +

2009: Will Shortz dares to put some letters on a checkerboard. +

2010: Will Shortz eats some habaneros. +

2011: Will Shortz carries a supreme pizza to his solvers. +

2012: Will Shortz travels in a hot-air balloon. +

2013: Will Shortz gives the OK to another pizza. +

2014: Will Shortz dresses up as Uncle Sam. +

2015: Will Shortz goes skiing. + +

+
+
+ + + + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/may_the_shortz_be_with_you b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/may_the_shortz_be_with_you new file mode 100644 index 0000000000000000000000000000000000000000..25a4fe7dd5bc83350ba804cd7f690e4be39b3ed6 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r0413_MIT_Mystery_Hunt_2016_May_the_Shortz_Be_With_You/may_the_shortz_be_with_you @@ -0,0 +1,178 @@ + + + + + + + + + + + May the Shortz Be With You — Opus — MIT Mystery Hunt 2016 + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+
+
+ +

May the Shortz Be With You

+ +
+
+

From '06 on, Will began lending his signature stylings to a + completely different blockbuster series.

+ +
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+ + +

You may find the following chronology helpful:

+

+

2006: Will Shortz lies on his tummy to solve some puzzles. +

2007: Will Shortz is a smiley face. +

2008: Will Shortz places an apple on top of his puzzles. +

2009: Will Shortz dares to put some letters on a checkerboard. +

2010: Will Shortz eats some habaneros. +

2011: Will Shortz carries a supreme pizza to his solvers. +

2012: Will Shortz travels in a hot-air balloon. +

2013: Will Shortz gives the OK to another pizza. +

2014: Will Shortz dresses up as Uncle Sam. +

2015: Will Shortz goes skiing. + +

+
+
+ + + + + + + + + + + + diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r094_MIT_Mystery_Hunt_2016_The_Tenebrous_Stygian_Test_of_Knowledge/_solution_assets/ic12.png b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r094_MIT_Mystery_Hunt_2016_The_Tenebrous_Stygian_Test_of_Knowledge/_solution_assets/ic12.png new file mode 100644 index 0000000000000000000000000000000000000000..a98c0c0952216893deafa69c21704e2d518fa7c9 --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2016/mit2016r094_MIT_Mystery_Hunt_2016_The_Tenebrous_Stygian_Test_of_Knowledge/_solution_assets/ic12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc3f28973817f8f080ecc3ace8515f29259760af32f349a36eeba249e0479687 +size 6058 diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event1_MIT_Mystery_Hunt_2017_Test_Your_CHARISMA/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event1_MIT_Mystery_Hunt_2017_Test_Your_CHARISMA/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event1_MIT_Mystery_Hunt_2017_Test_Your_CHARISMA/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event2_MIT_Mystery_Hunt_2017_Test_Your_CONSTITUTION/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event2_MIT_Mystery_Hunt_2017_Test_Your_CONSTITUTION/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event2_MIT_Mystery_Hunt_2017_Test_Your_CONSTITUTION/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event3_MIT_Mystery_Hunt_2017_Test_Your_STRENGTH_and_DEXTERITY/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event3_MIT_Mystery_Hunt_2017_Test_Your_STRENGTH_and_DEXTERITY/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event3_MIT_Mystery_Hunt_2017_Test_Your_STRENGTH_and_DEXTERITY/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event4_MIT_Mystery_Hunt_2017_Test_Your_WISDOM_and_INTELLIGENCE/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event4_MIT_Mystery_Hunt_2017_Test_Your_WISDOM_and_INTELLIGENCE/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017event4_MIT_Mystery_Hunt_2017_Test_Your_WISDOM_and_INTELLIGENCE/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0102_MIT_Mystery_Hunt_2017_Bigram_Battleships/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0102_MIT_Mystery_Hunt_2017_Bigram_Battleships/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0102_MIT_Mystery_Hunt_2017_Bigram_Battleships/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0103_MIT_Mystery_Hunt_2017_Crossing_Your_Arms/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0103_MIT_Mystery_Hunt_2017_Crossing_Your_Arms/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0103_MIT_Mystery_Hunt_2017_Crossing_Your_Arms/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0104_MIT_Mystery_Hunt_2017_Double_Crosser/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0104_MIT_Mystery_Hunt_2017_Double_Crosser/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0104_MIT_Mystery_Hunt_2017_Double_Crosser/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0105_MIT_Mystery_Hunt_2017_Get_Her_Together/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0105_MIT_Mystery_Hunt_2017_Get_Her_Together/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0105_MIT_Mystery_Hunt_2017_Get_Her_Together/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0106_MIT_Mystery_Hunt_2017_It_Takes_Two/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0106_MIT_Mystery_Hunt_2017_It_Takes_Two/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0106_MIT_Mystery_Hunt_2017_It_Takes_Two/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0107_MIT_Mystery_Hunt_2017_Let_s_Get_Physical/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0107_MIT_Mystery_Hunt_2017_Let_s_Get_Physical/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0107_MIT_Mystery_Hunt_2017_Let_s_Get_Physical/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0109_MIT_Mystery_Hunt_2017_Swifties/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0109_MIT_Mystery_Hunt_2017_Swifties/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0109_MIT_Mystery_Hunt_2017_Swifties/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0110_MIT_Mystery_Hunt_2017_A_Turn_of_Phrase/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0110_MIT_Mystery_Hunt_2017_A_Turn_of_Phrase/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0110_MIT_Mystery_Hunt_2017_A_Turn_of_Phrase/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0111_MIT_Mystery_Hunt_2017_Up_in_the_Air/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0111_MIT_Mystery_Hunt_2017_Up_in_the_Air/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0111_MIT_Mystery_Hunt_2017_Up_in_the_Air/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0201_MIT_Mystery_Hunt_2017_Getting_Out_of_Line/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0201_MIT_Mystery_Hunt_2017_Getting_Out_of_Line/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0201_MIT_Mystery_Hunt_2017_Getting_Out_of_Line/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0203_MIT_Mystery_Hunt_2017_Cutting_Room_Floor/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0203_MIT_Mystery_Hunt_2017_Cutting_Room_Floor/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0203_MIT_Mystery_Hunt_2017_Cutting_Room_Floor/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0204_MIT_Mystery_Hunt_2017_Boston_Burgers/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0204_MIT_Mystery_Hunt_2017_Boston_Burgers/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0204_MIT_Mystery_Hunt_2017_Boston_Burgers/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0205_MIT_Mystery_Hunt_2017_Replenish_the_Treasury/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0205_MIT_Mystery_Hunt_2017_Replenish_the_Treasury/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0205_MIT_Mystery_Hunt_2017_Replenish_the_Treasury/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0206_MIT_Mystery_Hunt_2017_Puzzling_is_My_Middle_Name/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0206_MIT_Mystery_Hunt_2017_Puzzling_is_My_Middle_Name/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0206_MIT_Mystery_Hunt_2017_Puzzling_is_My_Middle_Name/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0207_MIT_Mystery_Hunt_2017_Net_Work/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0207_MIT_Mystery_Hunt_2017_Net_Work/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0207_MIT_Mystery_Hunt_2017_Net_Work/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0211_MIT_Mystery_Hunt_2017_School_of_Mines/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0211_MIT_Mystery_Hunt_2017_School_of_Mines/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0211_MIT_Mystery_Hunt_2017_School_of_Mines/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0302_MIT_Mystery_Hunt_2017_The_Sacred_and_the_Mundane/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0302_MIT_Mystery_Hunt_2017_The_Sacred_and_the_Mundane/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0302_MIT_Mystery_Hunt_2017_The_Sacred_and_the_Mundane/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0303_MIT_Mystery_Hunt_2017_Pic_of_the_Litter/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0303_MIT_Mystery_Hunt_2017_Pic_of_the_Litter/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0303_MIT_Mystery_Hunt_2017_Pic_of_the_Litter/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0304_MIT_Mystery_Hunt_2017_Four-Part_Harmony/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0304_MIT_Mystery_Hunt_2017_Four-Part_Harmony/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0304_MIT_Mystery_Hunt_2017_Four-Part_Harmony/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0305_MIT_Mystery_Hunt_2017_CHINA_KILNS/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0305_MIT_Mystery_Hunt_2017_CHINA_KILNS/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0305_MIT_Mystery_Hunt_2017_CHINA_KILNS/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0306_MIT_Mystery_Hunt_2017_Locked_In/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0306_MIT_Mystery_Hunt_2017_Locked_In/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0306_MIT_Mystery_Hunt_2017_Locked_In/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0307_MIT_Mystery_Hunt_2017_State_Dinners/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0307_MIT_Mystery_Hunt_2017_State_Dinners/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0307_MIT_Mystery_Hunt_2017_State_Dinners/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0308_MIT_Mystery_Hunt_2017_Running_Mates/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0308_MIT_Mystery_Hunt_2017_Running_Mates/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0308_MIT_Mystery_Hunt_2017_Running_Mates/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0401_MIT_Mystery_Hunt_2017_Lead_with_Hydrogen/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0401_MIT_Mystery_Hunt_2017_Lead_with_Hydrogen/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0401_MIT_Mystery_Hunt_2017_Lead_with_Hydrogen/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0402_MIT_Mystery_Hunt_2017_Vennder_Bender/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0402_MIT_Mystery_Hunt_2017_Vennder_Bender/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0402_MIT_Mystery_Hunt_2017_Vennder_Bender/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0403_MIT_Mystery_Hunt_2017_Chaser/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0403_MIT_Mystery_Hunt_2017_Chaser/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0403_MIT_Mystery_Hunt_2017_Chaser/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0404_MIT_Mystery_Hunt_2017_Corporate_Chains/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0404_MIT_Mystery_Hunt_2017_Corporate_Chains/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0404_MIT_Mystery_Hunt_2017_Corporate_Chains/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0405_MIT_Mystery_Hunt_2017_The_Gods_Must_Be_Crazy/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0405_MIT_Mystery_Hunt_2017_The_Gods_Must_Be_Crazy/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0405_MIT_Mystery_Hunt_2017_The_Gods_Must_Be_Crazy/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0406_MIT_Mystery_Hunt_2017_Half_and_Half/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0406_MIT_Mystery_Hunt_2017_Half_and_Half/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0406_MIT_Mystery_Hunt_2017_Half_and_Half/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0408_MIT_Mystery_Hunt_2017_Dot_Matrix/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0408_MIT_Mystery_Hunt_2017_Dot_Matrix/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0408_MIT_Mystery_Hunt_2017_Dot_Matrix/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0409_MIT_Mystery_Hunt_2017_Adactyly/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0409_MIT_Mystery_Hunt_2017_Adactyly/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0409_MIT_Mystery_Hunt_2017_Adactyly/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0410_MIT_Mystery_Hunt_2017_Asymmetry/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0410_MIT_Mystery_Hunt_2017_Asymmetry/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0410_MIT_Mystery_Hunt_2017_Asymmetry/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0411_MIT_Mystery_Hunt_2017_Precipice/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0411_MIT_Mystery_Hunt_2017_Precipice/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0411_MIT_Mystery_Hunt_2017_Precipice/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0412_MIT_Mystery_Hunt_2017_Sooner_or_Later/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0412_MIT_Mystery_Hunt_2017_Sooner_or_Later/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0412_MIT_Mystery_Hunt_2017_Sooner_or_Later/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0502_MIT_Mystery_Hunt_2017_Pentoku/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0502_MIT_Mystery_Hunt_2017_Pentoku/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0502_MIT_Mystery_Hunt_2017_Pentoku/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0503_MIT_Mystery_Hunt_2017_Fashionable_Friends/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0503_MIT_Mystery_Hunt_2017_Fashionable_Friends/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0503_MIT_Mystery_Hunt_2017_Fashionable_Friends/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0504_MIT_Mystery_Hunt_2017_Non-Local_Anesthetic/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0504_MIT_Mystery_Hunt_2017_Non-Local_Anesthetic/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0504_MIT_Mystery_Hunt_2017_Non-Local_Anesthetic/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0505_MIT_Mystery_Hunt_2017_Ye_Olde_Seventhe_Duck_Konunnndrum_The_Cones_o/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0505_MIT_Mystery_Hunt_2017_Ye_Olde_Seventhe_Duck_Konunnndrum_The_Cones_o/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0505_MIT_Mystery_Hunt_2017_Ye_Olde_Seventhe_Duck_Konunnndrum_The_Cones_o/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0507_MIT_Mystery_Hunt_2017_Local_Coverage/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0507_MIT_Mystery_Hunt_2017_Local_Coverage/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0507_MIT_Mystery_Hunt_2017_Local_Coverage/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0508_MIT_Mystery_Hunt_2017_Fruitless/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0508_MIT_Mystery_Hunt_2017_Fruitless/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0508_MIT_Mystery_Hunt_2017_Fruitless/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0603_MIT_Mystery_Hunt_2017_Hand_Them_Over/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0603_MIT_Mystery_Hunt_2017_Hand_Them_Over/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0603_MIT_Mystery_Hunt_2017_Hand_Them_Over/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0605_MIT_Mystery_Hunt_2017_Out_of_the_Mouths_of_Babes/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0605_MIT_Mystery_Hunt_2017_Out_of_the_Mouths_of_Babes/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0605_MIT_Mystery_Hunt_2017_Out_of_the_Mouths_of_Babes/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0608_MIT_Mystery_Hunt_2017_Spontaneous_Reactions/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0608_MIT_Mystery_Hunt_2017_Spontaneous_Reactions/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0608_MIT_Mystery_Hunt_2017_Spontaneous_Reactions/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0609_MIT_Mystery_Hunt_2017_Merriweather_Post_Pavilion/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0609_MIT_Mystery_Hunt_2017_Merriweather_Post_Pavilion/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0609_MIT_Mystery_Hunt_2017_Merriweather_Post_Pavilion/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0702_MIT_Mystery_Hunt_2017_Motion_Picture/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0702_MIT_Mystery_Hunt_2017_Motion_Picture/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0702_MIT_Mystery_Hunt_2017_Motion_Picture/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0703_MIT_Mystery_Hunt_2017_A_Lengthy_Journey/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0703_MIT_Mystery_Hunt_2017_A_Lengthy_Journey/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0703_MIT_Mystery_Hunt_2017_A_Lengthy_Journey/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0704_MIT_Mystery_Hunt_2017_Basic_Phrenology/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0704_MIT_Mystery_Hunt_2017_Basic_Phrenology/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0704_MIT_Mystery_Hunt_2017_Basic_Phrenology/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0707_MIT_Mystery_Hunt_2017_Substitutes/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0707_MIT_Mystery_Hunt_2017_Substitutes/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0707_MIT_Mystery_Hunt_2017_Substitutes/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0708_MIT_Mystery_Hunt_2017_Heirplay/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0708_MIT_Mystery_Hunt_2017_Heirplay/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0708_MIT_Mystery_Hunt_2017_Heirplay/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0710_MIT_Mystery_Hunt_2017_Hexed_Adventure/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0710_MIT_Mystery_Hunt_2017_Hexed_Adventure/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0710_MIT_Mystery_Hunt_2017_Hexed_Adventure/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0711_MIT_Mystery_Hunt_2017_The_Leaning_Tower_of_Sheshach/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0711_MIT_Mystery_Hunt_2017_The_Leaning_Tower_of_Sheshach/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0711_MIT_Mystery_Hunt_2017_The_Leaning_Tower_of_Sheshach/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0801_MIT_Mystery_Hunt_2017_Arsenic/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0801_MIT_Mystery_Hunt_2017_Arsenic/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0801_MIT_Mystery_Hunt_2017_Arsenic/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0802_MIT_Mystery_Hunt_2017_A_Beauty_Cold_and_Austere/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0802_MIT_Mystery_Hunt_2017_A_Beauty_Cold_and_Austere/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0802_MIT_Mystery_Hunt_2017_A_Beauty_Cold_and_Austere/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0803_MIT_Mystery_Hunt_2017_Dancing_Girls/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0803_MIT_Mystery_Hunt_2017_Dancing_Girls/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0803_MIT_Mystery_Hunt_2017_Dancing_Girls/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0804_MIT_Mystery_Hunt_2017_Hamiltonian_Path/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0804_MIT_Mystery_Hunt_2017_Hamiltonian_Path/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0804_MIT_Mystery_Hunt_2017_Hamiltonian_Path/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0805_MIT_Mystery_Hunt_2017_How_I_Spent_My_Pre_Post-Apocalyptic_Vacation/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0805_MIT_Mystery_Hunt_2017_How_I_Spent_My_Pre_Post-Apocalyptic_Vacation/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0805_MIT_Mystery_Hunt_2017_How_I_Spent_My_Pre_Post-Apocalyptic_Vacation/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0808_MIT_Mystery_Hunt_2017_Marvels_of_the_Ancient_World/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0808_MIT_Mystery_Hunt_2017_Marvels_of_the_Ancient_World/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0808_MIT_Mystery_Hunt_2017_Marvels_of_the_Ancient_World/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0810_MIT_Mystery_Hunt_2017_Repeated_Punishment/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0810_MIT_Mystery_Hunt_2017_Repeated_Punishment/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0810_MIT_Mystery_Hunt_2017_Repeated_Punishment/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0811_MIT_Mystery_Hunt_2017_Star_Tours/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0811_MIT_Mystery_Hunt_2017_Star_Tours/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0811_MIT_Mystery_Hunt_2017_Star_Tours/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0902_MIT_Mystery_Hunt_2017_Changing_Rooms/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0902_MIT_Mystery_Hunt_2017_Changing_Rooms/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0902_MIT_Mystery_Hunt_2017_Changing_Rooms/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0904_MIT_Mystery_Hunt_2017_Screen_Test/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0904_MIT_Mystery_Hunt_2017_Screen_Test/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0904_MIT_Mystery_Hunt_2017_Screen_Test/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0905_MIT_Mystery_Hunt_2017_Show_Me_the_Proof/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0905_MIT_Mystery_Hunt_2017_Show_Me_the_Proof/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0905_MIT_Mystery_Hunt_2017_Show_Me_the_Proof/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0906_MIT_Mystery_Hunt_2017_Digital_Display/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0906_MIT_Mystery_Hunt_2017_Digital_Display/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0906_MIT_Mystery_Hunt_2017_Digital_Display/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0907_MIT_Mystery_Hunt_2017_Matchbox_Twenty/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0907_MIT_Mystery_Hunt_2017_Matchbox_Twenty/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0907_MIT_Mystery_Hunt_2017_Matchbox_Twenty/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0908_MIT_Mystery_Hunt_2017_Mirrorball/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0908_MIT_Mystery_Hunt_2017_Mirrorball/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0908_MIT_Mystery_Hunt_2017_Mirrorball/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0910_MIT_Mystery_Hunt_2017_Stick_the_Landing/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0910_MIT_Mystery_Hunt_2017_Stick_the_Landing/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r0910_MIT_Mystery_Hunt_2017_Stick_the_Landing/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1001_MIT_Mystery_Hunt_2017_Above_Your_Pay_Grade/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1001_MIT_Mystery_Hunt_2017_Above_Your_Pay_Grade/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1001_MIT_Mystery_Hunt_2017_Above_Your_Pay_Grade/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1002_MIT_Mystery_Hunt_2017_Advisor_s_Nightmare/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1002_MIT_Mystery_Hunt_2017_Advisor_s_Nightmare/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1002_MIT_Mystery_Hunt_2017_Advisor_s_Nightmare/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1003_MIT_Mystery_Hunt_2017_Altered_from_the_Original/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1003_MIT_Mystery_Hunt_2017_Altered_from_the_Original/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1003_MIT_Mystery_Hunt_2017_Altered_from_the_Original/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1005_MIT_Mystery_Hunt_2017_Crackpot_or_Snackpot/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1005_MIT_Mystery_Hunt_2017_Crackpot_or_Snackpot/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1005_MIT_Mystery_Hunt_2017_Crackpot_or_Snackpot/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1006_MIT_Mystery_Hunt_2017_Cutting_the_Cord/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1006_MIT_Mystery_Hunt_2017_Cutting_the_Cord/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1006_MIT_Mystery_Hunt_2017_Cutting_the_Cord/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1007_MIT_Mystery_Hunt_2017_Great_Tits/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1007_MIT_Mystery_Hunt_2017_Great_Tits/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1007_MIT_Mystery_Hunt_2017_Great_Tits/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1008_MIT_Mystery_Hunt_2017_An_Hunt_MIT_Mystery_Puzzle/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1008_MIT_Mystery_Hunt_2017_An_Hunt_MIT_Mystery_Puzzle/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1008_MIT_Mystery_Hunt_2017_An_Hunt_MIT_Mystery_Puzzle/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1009_MIT_Mystery_Hunt_2017_Intercity_Rail/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1009_MIT_Mystery_Hunt_2017_Intercity_Rail/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1009_MIT_Mystery_Hunt_2017_Intercity_Rail/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1014_MIT_Mystery_Hunt_2017_Tree_Rings/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1014_MIT_Mystery_Hunt_2017_Tree_Rings/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1014_MIT_Mystery_Hunt_2017_Tree_Rings/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1016_MIT_Mystery_Hunt_2017_Tricky_Wicket/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1016_MIT_Mystery_Hunt_2017_Tricky_Wicket/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1016_MIT_Mystery_Hunt_2017_Tricky_Wicket/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1101_MIT_Mystery_Hunt_2017_790.06_Crossword_Puzzles_and_Other_Word_Games/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1101_MIT_Mystery_Hunt_2017_790.06_Crossword_Puzzles_and_Other_Word_Games/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1101_MIT_Mystery_Hunt_2017_790.06_Crossword_Puzzles_and_Other_Word_Games/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1102_MIT_Mystery_Hunt_2017_Fill_in_the/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1102_MIT_Mystery_Hunt_2017_Fill_in_the/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1102_MIT_Mystery_Hunt_2017_Fill_in_the/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1105_MIT_Mystery_Hunt_2017_location.location.location/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1105_MIT_Mystery_Hunt_2017_location.location.location/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1105_MIT_Mystery_Hunt_2017_location.location.location/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1106_MIT_Mystery_Hunt_2017_Mentally_Stimulating_Diversion/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1106_MIT_Mystery_Hunt_2017_Mentally_Stimulating_Diversion/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1106_MIT_Mystery_Hunt_2017_Mentally_Stimulating_Diversion/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1108_MIT_Mystery_Hunt_2017_Oh_You/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1108_MIT_Mystery_Hunt_2017_Oh_You/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1108_MIT_Mystery_Hunt_2017_Oh_You/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1110_MIT_Mystery_Hunt_2017_Trips/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1110_MIT_Mystery_Hunt_2017_Trips/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1110_MIT_Mystery_Hunt_2017_Trips/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1201_MIT_Mystery_Hunt_2017_Elf_Dwarf_Brawl/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1201_MIT_Mystery_Hunt_2017_Elf_Dwarf_Brawl/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1201_MIT_Mystery_Hunt_2017_Elf_Dwarf_Brawl/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1202_MIT_Mystery_Hunt_2017_Capital_Punishment/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1202_MIT_Mystery_Hunt_2017_Capital_Punishment/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1202_MIT_Mystery_Hunt_2017_Capital_Punishment/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +}) diff --git a/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1203_MIT_Mystery_Hunt_2017_Chromesthesia/hunt.js b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1203_MIT_Mystery_Hunt_2017_Chromesthesia/hunt.js new file mode 100644 index 0000000000000000000000000000000000000000..1abf796bf07ef48158e887df252a59c50a49fc6d --- /dev/null +++ b/benchmark/MIT_Mystery_Hunt/puzzles/2017/mit2017r1203_MIT_Mystery_Hunt_2017_Chromesthesia/hunt.js @@ -0,0 +1,35 @@ +$(function () { + $('[data-toggle="tooltip"]').tooltip({ + template: '
' + }); + + var answerHashCodes = {"eventa":2056967431,"marvels_of_the_ancient_world":-747733141,"missing_links":2058301775,"hum_a_few_more_bars":700994930,"radio_alphabet":2023408,"its_only_a_model":1459783829,"hamiltonian_path":775246679,"a_turn_of_phrase":219904803,"hopping_lock":2140564,"how_i_spent_my_pre_post_apocalyptic_vacation":1502633849,"a_beauty_cold_and_austere":-589713939,"dispatches_from_the_foreign_service_units":2306913,"dancing_girls":-2097227165,"up_in_the_air":2113000436,"slay_all_day":-2009632967,"790_06_crossword_puzzles_and_other_word_games":-426825587,"fleshed_out":-1847342281,"fill_in_the":-1833520968,"arsenic":1294891450,"the_puzzle_at_the_end_of_this_book":-2028190455,"checkpoint":-1942154137,"eventd":2056967434,"eventc":2056967433,"eventb":2056967432,"special_ops":244376515,"mr_y_hunt":-1934701089,"oh_you":297297651,"location_location_location":2085721814,"senior_superlatives":2687571,"mentally_stimulating_diversion":-1601694203,"general_aviation":722292592,"open_and_shut_case":2511987,"house_arrest":-2134290101,"cube":-856982546,"screen_test":1270550106,"show_me_the_proof":612955128,"changing_rooms":614864846,"housekeeping":2440274,"listicle":-1892677941,"horse_code":2012579975,"some_light_hacking":-1938327713,"league_of_legends_and_lore":-1814605815,"long_time_no_see":2066677399,"bridge":1448013196,"cabin_fever":349948939,"the_leaning_tower_of_sheshach":1776561727,"state_dinners":2044736,"repeated_punishment":-1509459682,"hexed_adventure":-10348520,"running_mates":1967377435,"star_tours":-1298620651,"false_prophets":64204955,"puppy_love":1952107470,"lead_with_hydrogen":2222974,"vennder_bender":71291,"chaser":2014050,"locked_in":2515485,"international_holdings":1201251593,"corporate_chains":78964578,"star_search":-822469968,"the_gods_must_be_crazy":2015167234,"heirplay":1676525233,"half_and_half":73124760,"substitutes":-18197444,"or_dont_we":2358711,"motion_picture":1632670431,"dot_matrix":79219704,"on_numbers_and_games":1673939702,"adactyly":-1846432162,"basic_phrenology":-1322957543,"a_lengthy_journey":1253360643,"swedish_strivers":1202764406,"cleric":-1318566326,"advisors_nightmare":-1069725002,"trips":993392453,"above_your_pay_grade":-1389445255,"attention_span":4289780,"altered_from_the_original":1060152361,"cutting_the_cord":-375914028,"somebodys_watching_me":2074403,"lost_in_translation":-1921929932,"crackpot_or_snackpot":-1997324742,"the_most_interesting_puzzle_in_the_world":2077315,"pentoku":1993502853,"an_hunt_mit_mystery_puzzle":-1974841718,"dungeon":-1706629898,"the_great_gadsby":2401839,"fashionable_friends":-45266660,"great_tits":-176229195,"hand_them_over":74287415,"non_local_anesthetic":76001873,"battle":-475219006,"typecasting":2074440,"ye_olde_seventhe_duck_konundrum_the_cones_of_duckshire":284703690,"intercity_rail":-820141121,"out_of_the_mouths_of_babes":65964,"upon_reflection":1685750595,"spontaneous_reactions":2312727,"local_coverage":1644150519,"rescue_the_linguist":-729509135,"12_step_program":63175802,"fruitless":94261923,"merriweather_post_pavilion":2077335,"matchbox_twenty":1043614952,"mirrorball":-568017853,"fighter":-232097016,"wizard":1500406249,"digital_display":967264273,"rulers":-636906351,"stick_the_landing":576376441,"thespians":69429564,"rescue_the_chemist":1535824883,"four_part_harmony":1834292145,"china_kilns":63463649,"asymmetry":1720340162,"before_and_after_mash":1618802997,"sooner_or_later":79149080,"bigram_battleships":1420126554,"precipice":1899303594,"epic_raft_battles_of_history":79100613,"crossing_your_arms":399734749,"the_sacred_and_the_mundane":66660350,"double_crosser":-1379981541,"pic_of_the_litter":80083432,"get_her_together":1806544021,"it_takes_two":-170111481,"lets_get_physical":2342467,"now_where_was_i":78665696,"swifties":-1969770363,"getting_out_of_line":423197487,"criminal":-1938721016,"a_message_from_our_sponsors":1506854935,"cutting_room_floor":1685760619,"boston_burgers":1675813340,"replenish_the_treasury":-1837878047,"puzzling_is_my_middle_name":2050771,"net_work":-1832810867,"master_pieces":-1675918356,"a_penny_for_your_thoughts":373565870,"fortress":1288997403,"schoolhouse_rock":-873584559,"smart_moves":2089057459,"stackuro":1918584027,"elf_dwarf_brawl":-1093501115,"capital_punishment":1958158384,"chromesthesia":-616912700,"more_merry_wives_beyond_windsor":-718606659,"school_of_mines":-1849738743,"spell_casting":-1787112636,"warlord":967477239,"chemist":-1750608453,"economist":1324974379,"dynast":244140482,"rescue_the_economist":404039653,"minstrels":125487063,"dammit_jim":2607754,"linguist":-840996783,"a_lot_of_f_ing_movies":2694250,"subservient_chicken_vs_tim_the_beaver":2164106,"tricky_wicket":76143323,"tricks_with_bricks":2036237302,"tree_rings":-1380532449,"merchants":1638782610,"snap_story":-1349641941,"patience_for_the_bridge_builder":917662480,"new_bridge_art":1455261255,"modern_journalism":-1776301727}; + + $("#checkAnswerTextbox").on("change keyup paste", function(event) { + var answerHashCode = answerHashCodes[puzzleId]; + if (answerHashCode === undefined) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var submission = $("#checkAnswerTextbox").val(); + if (!submission) { + $("#checkAnswerTextbox").css("background-color", "white"); + return; + } + + var strippedSubmission = submission.toUpperCase().replace(/[^A-Z0-9]/g, ""); + var submissionHashCode = 0; + for (var i = 0; i < strippedSubmission.length; i++) { + var char = strippedSubmission.charCodeAt(i); + submissionHashCode = ((submissionHashCode << 5) - submissionHashCode) + char; + submissionHashCode = submissionHashCode & submissionHashCode; + } + + if (submissionHashCode == answerHashCode) { + $("#checkAnswerTextbox").css("background-color", "#80ff80"); + } else { + $("#checkAnswerTextbox").css("background-color", "#ff8080"); + } + }); +})