pretty much just the post and the submit thing
This commit is contained in:
parent
5f1876b245
commit
421ab7864f
24 changed files with 219 additions and 79 deletions
|
@ -7,53 +7,98 @@ import { render_and_copy, randirect } from "./common.tsx";
|
|||
export type Riddle = { riddle: string; answer: string };
|
||||
// TODO: vet
|
||||
export const riddles: Riddle[] = [
|
||||
{ riddle: "I'm the first letter of the alphabet. What am I?", answer: "a" },
|
||||
{ riddle: "I'm a fruit and also a color. What am I?", answer: "o" },
|
||||
{ riddle: "I'm a shape with three sides. What am I?", answer: "t" },
|
||||
{
|
||||
riddle: btoa(
|
||||
btoa(
|
||||
`HIGH IN THE AREA THERE IS FOUND A PLACE OF PEACE AND TRANQUILITY. YOU APPROACH. YOU DO NOT REMEMBER WHO YOU ARE. YOU DO NOT REMEMBER WHAT IS THAT IT IS THAT IT WOULD BE FOR YOU TO REMEMBER. YOU ARRIVE. IT ALL COMES RUSHING BACK THROUGH YOU. YOU DO NOT REMEMBER. ${btoa(
|
||||
btoa(
|
||||
"YOU SEE BLANKNESS MIND NUMBING BLANKNESS BLANK BLANK THERE IS NAUGHT NAUGHT."
|
||||
)
|
||||
)} .... SHE TELLS YOU THE LAST NUMBER IS ONE. YOU KNOW THAT BEFORE THAT THERE MUST BE ${btoa(
|
||||
btoa(
|
||||
btoa(
|
||||
"HALF. THERE MUST BE HALF. SCORE. THERE MUST BE. HALF SCORE."
|
||||
)
|
||||
)
|
||||
)} A DEEP, SELF-PROCLAIMED WHOLESOME ENERGY OVERTAKES YOU. YOU SENSE THAT, EVEN BEFORE THAT, THERE MUST BE SOMETHING NICE. WHAT IS LEFT IS ${btoa(
|
||||
btoa(btoa(btoa(btoa(btoa(btoa("bad luck"))))))
|
||||
)}`
|
||||
)
|
||||
),
|
||||
answer: "0041369101",
|
||||
},
|
||||
{
|
||||
riddle: "With today's megadigigraphics, many games have three of these",
|
||||
answer: "d",
|
||||
},
|
||||
{ riddle: "A man in half-life", answer: "g" },
|
||||
{ riddle: "I'm a number that comes after nine. What am I?", answer: "a" },
|
||||
{ riddle: "I'm a sound a dog makes. What am I?", answer: "b" },
|
||||
{
|
||||
riddle: "I'm a small insect that flies around flowers. What am I?",
|
||||
answer: "b",
|
||||
},
|
||||
{ riddle: "I'm a month with 30 days. What am I?", answer: "a" },
|
||||
{
|
||||
riddle: "I'm a punctuation mark used to end sentences. What am I?",
|
||||
answer: "p",
|
||||
},
|
||||
{ riddle: "I'm a planet closest to the sun. What am I?", answer: "m" },
|
||||
{
|
||||
riddle: "I'm a body part that you use to smell. What am I?",
|
||||
answer: "n",
|
||||
},
|
||||
{ riddle: "I'm a type of nut often used in pies. What am I?", answer: "p" },
|
||||
{
|
||||
riddle: "I'm a metal that's attracted to magnets. What am I?",
|
||||
answer: "i",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a type of bird associated with wisdom. What am I?",
|
||||
answer: "o",
|
||||
},
|
||||
{ riddle: "I'm a reptile that can change color. What am I?", answer: "c" },
|
||||
{ riddle: "I'm a letter that sounds like 'you.' What am I?", answer: "u" },
|
||||
{
|
||||
riddle: "I'm a game where you try to sink your opponent's ships. What am I?",
|
||||
answer: "b",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a type of flower often given on Valentine's Day. What am I?",
|
||||
riddle: "I'm sot of shy, so I'm not in this one. It was just a lot of pessue, and I'm not getting paid at all so",
|
||||
answer: "r",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a beverage made from beans and enjoyed hot. What am I?",
|
||||
riddle: "Jerry seinfeld liked these, at least at some point",
|
||||
answer: "b",
|
||||
},
|
||||
{
|
||||
riddle: "I'm the sound a long series of Os makes (like in Joooooooooooooooooohn)",
|
||||
answer: "u",
|
||||
},
|
||||
{
|
||||
riddle: "Formerly twitter, currently suffering an elongated death",
|
||||
answer: "x",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a rareish letter you relish writing in Coq's proof mode",
|
||||
answer: "q",
|
||||
},
|
||||
{ riddle: "I'm, like, a super popular letter", answer: "e" },
|
||||
{
|
||||
riddle: "Were I uppercase, you could make me into sunglasses or teeth (or both at the same time!)",
|
||||
answer: "b",
|
||||
},
|
||||
{
|
||||
riddle: "I'm the name of the identity function in the SKI combinator calculus",
|
||||
answer: "i",
|
||||
},
|
||||
{
|
||||
riddle: "You can put like a boat on it. Also, you can it the it",
|
||||
answer: "c",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a country known for kangaroos and the Outback. What am I?",
|
||||
riddle: "I'm a vowel that describes how to pronounce itself. I'm also the sound you'll make when you figure it out",
|
||||
answer: "o",
|
||||
},
|
||||
{ riddle: "OMG THIS IS SO GROSS WHY IS THERE A POTTY WORD", answer: "p" },
|
||||
{
|
||||
riddle: "How the type of undefined is usually displayed in haskell",
|
||||
answer: "a",
|
||||
},
|
||||
{ riddle: "I'm a shape with four equal sides. What am I?", answer: "s" },
|
||||
{
|
||||
riddle: "Arguably, the real main character of Vriska. Okay, I'm keeping that typo, but I really meant Homestuck. Don't overthink this one",
|
||||
answer: "u",
|
||||
},
|
||||
{
|
||||
riddle: "I'm a super cool combinator that, unfortunately, has been subsumed in google (and wikipedia!) by some weird capitalism thing",
|
||||
answer: "y",
|
||||
},
|
||||
{
|
||||
riddle: "What was the sixth letter of my username again?",
|
||||
answer: "r",
|
||||
},
|
||||
{
|
||||
riddle: "I'm Z. Oops. Definitely wasn't supposed to just outright say that. My bad.",
|
||||
answer: "z",
|
||||
},
|
||||
{
|
||||
riddle: "The first letter of the last name of my favorite Homestuck troll",
|
||||
answer: "p",
|
||||
},
|
||||
];
|
||||
|
||||
const answer = riddles.map(r => r.answer).join();
|
||||
export const answer = riddles.map(r => r.answer).join("");
|
||||
|
||||
console.log(answer);
|
||||
// assert in ohio be like XD
|
||||
if (answer.length != 30) throw `dude ${answer.length}`;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
The answer to this riddle is 10 digits (0-9).
|
||||
This is riddle #0 (nice job finding this one!)
|
||||
I'm the first letter of the alphabet. What am I?
|
||||
U0V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FlWbTE0VTFZeFJYZFRhMUpXWWtVd2QxZHFSazlTYkVweVRWWk9hRlpWY0ZaV1ZsSkNUbFpWZUZOc1VrOVNSRUU1SUVFZ1JFVkZVQ3dnVTBWTVJpMVFVazlEVEVGSlRVVkVJRmRJVDB4RlUwOU5SU0JGVGtWU1Ixa2dUMVpGVWxSQlMwVlRJRmxQVlM0Z1dVOVZJRk5GVGxORklGUklRVlFzSUVWV1JVNGdRa1ZHVDFKRklGUklRVlFzSUZSSVJWSkZJRTFWVTFRZ1FrVWdVMDlOUlZSSVNVNUhJRTVKUTBVdUlGZElRVlFnU1ZNZ1RFVkdWQ0JKVXlCV2JUQjRaREZKZVZKdVVsZGhNbEpWVmpCa05GWkdXWGRhUms1cVVteGFlbGRyWXpWaGF6RlhWMjVzVjJKVVJraFdNbmhoWXpGT2MySkdWbWxTYkZZMFZteFdZVll4V2xaTlZWWm9aV3BCT1E9PQ==
|
40
static/ftct/0041369101dgarbuxqebicopauyrzp.html
Normal file
40
static/ftct/0041369101dgarbuxqebicopauyrzp.html
Normal file
|
@ -0,0 +1,40 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>you did it!!!!</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0 auto;
|
||||
width: min(500px, 100vw);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Congratulations!!!!</h1>
|
||||
<p>You (plural, I hope) have done well to find this.
|
||||
<p>I have prepared two rewards for everyone who has found this, alone or working together
|
||||
<ol>
|
||||
<li>if you'd like, you can join <a href="https://pyrope.net/mcai">my discord
|
||||
server i created to say "man, computers are incredible" every day</a>, and post
|
||||
proof that you helped find the code (or at least interesting fake proof) in the
|
||||
#ftct channel (you should get access to it pretty quickly), and
|
||||
your name will be added to the list below
|
||||
|
||||
<li>you get to be the ones to see my cohost git repository! i know this is sort
|
||||
of lame but there's over 2300 lines of typescript JSX, a lot of comments showing
|
||||
my thought processes, and a (decent) git history for you to look through so i'll
|
||||
hope you'll enjoy it. you probably like cohost, right?
|
||||
</ol>
|
||||
|
||||
winners:
|
||||
<ul>
|
||||
<!-- i'm doing the winners by hand so don't try to be clever -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #1
|
||||
I'm a fruit and also a color. What am I?
|
||||
With today's megadigigraphics, many games have three of these
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #10
|
||||
I'm a type of nut often used in pies. What am I?
|
||||
Were I uppercase, you could make me into sunglasses or teeth (or both at the same time!)
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #11
|
||||
I'm a metal that's attracted to magnets. What am I?
|
||||
I'm the name of the identity function in the SKI combinator calculus
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #12
|
||||
I'm a type of bird associated with wisdom. What am I?
|
||||
You can put like a boat on it. Also, you can it the itm also the sound you'll make when you figure it out
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #13
|
||||
I'm a reptile that can change color. What am I?
|
||||
I'm a vowel that describes how to pronounce itself. I'm also the sound you'll make when you figure it out
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #14
|
||||
I'm a letter that sounds like 'you.' What am I?
|
||||
OMG THIS IS SO GROSS WHY IS THERE A POTTY WORD in haskell
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #15
|
||||
I'm a game where you try to sink your opponent's ships. What am I?
|
||||
How the type of undefined is usually displayed in haskelleping that typo, but I really meant Homestuck. Don't overthink this one
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #16
|
||||
I'm a type of flower often given on Valentine's Day. What am I?
|
||||
Arguably, the real main character of Vriska. Okay, I'm keeping that typo, but I really meant Homestuck. Don't overthink this oneg
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #17
|
||||
I'm a beverage made from beans and enjoyed hot. What am I?
|
||||
I'm a super cool combinator that, unfortunately, has been subsumed in google (and wikipedia!) by some weird capitalism thing
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #18
|
||||
I'm a country known for kangaroos and the Outback. What am I?
|
||||
What was the sixth letter of my username again? outright say that. My bad.
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #19
|
||||
I'm a shape with four equal sides. What am I?
|
||||
I'm Z. Oops. Definitely wasn't supposed to just outright say that. My bad.
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #2
|
||||
I'm a shape with three sides. What am I?
|
||||
A man in half-life What am I?
|
3
static/ftct/20.txt
Normal file
3
static/ftct/20.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #20
|
||||
The first letter of the last name of my favorite Homestuck troll
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #3
|
||||
I'm a number that comes after nine. What am I?
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #4
|
||||
I'm a sound a dog makes. What am I?
|
||||
I'm sot of shy, so I'm not in this one. It was just a lot of pessue, and I'm not getting paid at all so
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #5
|
||||
I'm a small insect that flies around flowers. What am I?
|
||||
Jerry seinfeld liked these, at least at some point
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #6
|
||||
I'm a month with 30 days. What am I?
|
||||
I'm the sound a long series of Os makes (like in Joooooooooooooooooohn)
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #7
|
||||
I'm a punctuation mark used to end sentences. What am I?
|
||||
Formerly twitter, currently suffering an elongated death
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #8
|
||||
I'm a planet closest to the sun. What am I?
|
||||
I'm a rareish letter you relish writing in Coq's proof mode
|
|
@ -1,3 +1,3 @@
|
|||
All riddles have a one letter answer (a-z).
|
||||
All riddles (sans one) have a one letter answer (a-z).
|
||||
This is riddle #9
|
||||
I'm a body part that you use to smell. What am I?
|
||||
I'm, like, a super popular letterWhat am I?
|
|
@ -1,7 +1,11 @@
|
|||
import { Riddle, riddles } from "../../html/find-the-code-together.tsx";
|
||||
import { answer, Riddle, riddles } from "../../html/find-the-code-together.tsx";
|
||||
|
||||
const render_riddle = ({ riddle, id }: { riddle: string; id: number }) => (
|
||||
`All riddles have a one letter answer (a-z).
|
||||
`${
|
||||
id == 0
|
||||
? "The answer to this riddle is 10 digits (0-9)."
|
||||
: "All riddles (sans one) have a one letter answer (a-z)."
|
||||
}
|
||||
This is riddle #${id} ${id == 0 ? "(nice job finding this one!)" : ""}
|
||||
${riddle}`
|
||||
);
|
||||
|
@ -18,3 +22,51 @@ async function write_riddle(riddle: Riddle, id: number) {
|
|||
}
|
||||
|
||||
riddles.map(write_riddle);
|
||||
|
||||
const winners: string[] = [];
|
||||
|
||||
const file = await Deno.open(
|
||||
`/home/mbk/Aims/cohost/static/ftct/${answer}.html`,
|
||||
{
|
||||
write: true,
|
||||
create: true,
|
||||
},
|
||||
);
|
||||
file.write(encoder.encode(`
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>you did it!!!!</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0 auto;
|
||||
width: min(500px, 100vw);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Congratulations!!!!</h1>
|
||||
<p>You (plural, I hope) have done well to find this.
|
||||
<p>I have prepared two rewards for everyone who has found this, alone or working together
|
||||
<ol>
|
||||
<li>if you'd like, you can join <a href="https://pyrope.net/mcai">my discord
|
||||
server i created to say "man, computers are incredible" every day</a>, and post
|
||||
proof that you helped find the code (or at least interesting fake proof) in the
|
||||
#ftct channel (you should get access to it pretty quickly), and
|
||||
your name will be added to the list below
|
||||
|
||||
<li>you get to be the ones to see my cohost git repository! i know this is sort
|
||||
of lame but there's over 2300 lines of typescript JSX, a lot of comments showing
|
||||
my thought processes, and a (decent) git history for you to look through so i'll
|
||||
hope you'll enjoy it. you probably like cohost, right?
|
||||
</ol>
|
||||
|
||||
winners:
|
||||
<ul>
|
||||
<!-- i'm doing the winners by hand so don't try to be clever -->
|
||||
${winners.map((w) => `<li>${w}`).join("\n")}
|
||||
</body>
|
||||
</html>
|
||||
`));
|
||||
|
|
Loading…
Reference in a new issue