import { answer, Riddle, riddles } from "../../html/find-the-code-together.tsx"; const render_riddle = ({ riddle, id }: { riddle: string; id: number }) => ( `${ 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}` ); const encoder = new TextEncoder(); async function write_riddle(riddle: Riddle, id: number) { const file = await Deno.open(`/home/mbk/Aims/cohost/static/ftct/${id}.txt`, { write: true, create: true, truncate: true, }); file.write(encoder.encode(render_riddle({ ...riddle, id }))); file.close(); } 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(` you did it!!!!

Congratulations!!!!

You (plural, I hope) have done well to find this.

I have prepared two rewards for everyone who has found this, alone or working together

  1. if you'd like, you can join my discord server i created to say "man, computers are incredible" every day, 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 (ping @mehbark and ask me if i agree)), and your name will be added to the list below
  2. you get to be the first ones to see my cohost git repository! here it is: https://git.pyrope.net/mbk/cohost 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 hope you'll enjoy it. you probably like cohost, right?
winners: