Re:Show HN: Dimity Jones in Puzzle Castle: An Electronic Esc...
by romanows on Tuesday April 09, 2024 @05:27PM
(#39984473)
As a counterpoint, I really like that the whole puzzle is just a text file. It's simple, and as I mention in another comment, it reminds me of learning to program in my early days.
This may not have any other real purpose than to be a piece of art. Or perhaps it's aimed at a narrow demographic of kids who are already decent programmers. However, it's also entirely possible that others will create a whole ecosystem of "unofficial" tutorials and libraries/frameworks around it.
Re:Show HN: Dimity Jones in Puzzle Castle: An Electronic Esc...
by larryboyko on Tuesday April 09, 2024 @06:03PM
(#39984785)
>This may not have any other real purpose than to be a piece of art.
Christine would've loved this answer.
Re:Show HN: Dimity Jones in Puzzle Castle: An Electronic Esc...
by 392 on Friday April 12, 2024 @12:04AM
(#40009279)
This is exactly the kind of art I've always enjoyed the most, but I'm most glad that someone finally pointed out to me that it was art. Thank you!
Re:Show HN: Dimity Jones in Puzzle Castle: An Electronic Esc...
by kej on Thursday April 11, 2024 @05:48PM
(#40007168)
I think it's probably the same audience as something like Advent of Code. People who want to solve programming problems that are more interesting than the typical business logic we have to work on all day.
Assuming that the purpose is the puzzle, not programming (unclear, since presumably your wife had to write a program to generate the puzzle text), I would recommend shipping a script with a framework that defines a bunch of solve01, solve02, etc. functions that it calls when you run the script. This framework would load the text, call pass the text to solve01, compute the checksum and if it passes, call solve02 with the result, etc. (And if it fails, stop and report that problem 1 has not been correctly solved yet.) You probably want to provide a much simpler, solved tutorial that introduces loops, arrays, newlines, etc.
This seems like it might be a good way to introduce kids to programming, especially with a framework that holds their hands for things like reading the file for the source text, but which is examinable to see how it works (especially with liberal commenting). You could also provide an inverse, generating framework so that they could write their own puzzles.
I would recommend some usability improvements:
- ship the cyphertext as its own file; this makes it much more reliable for the user to correctly extract the text (because they don't have to). At least give a checksum for the source text.
- non-programmers will need to know that the text must be treated as list of characters, including space, newline, punctuation, etc. (At least, I assume that is required)
- a tutorial program that solves the original boustrophedon-line diary. Personally I think that Python is a better language for a complete beginner than Ruby; it is about as close to running pseudocode as you can get.