r/Python • Author of "Automate the Boring Stuff" • Jun 12 '25

Showcase Website version of Christopher Manson's 1985 puzzle book, "Maze"

This out of print book was from before my time, but Maze: Solve the World's Most Challenging Puzzle by Christopher Manson was a sort of choose-your-own-adventure book that had a $10,000 prize for whoever solved it first. (No one did; the prize was eventually split up among twelve people who got the closest.)

I created a modern, mobile-friendly web version of the book.

GitHub (with Python source): https://github.com/asweigart/mazewebsite

Website: https://inventwithpython.com/mazewebsite/

Start of the maze: https://inventwithpython.com/mazewebsite/directions.html

There are 45 "rooms" in the maze. I created HTML image maps and gathered the text descriptions into a throwaway Python script that generates the html files for the maze. I didn't want it to rely on a database or backend, just HTML, CSS, and a little Bootstrap to make it mobile-friendly. The Python code is in the git repo.

What My Project Does

Generates HTML files for a web version of Christopher Manson's 1985 puzzle book, "Maze"

Target Audience

Anyone can view the output website. The Python code may be of interest to people who have similar one-off projects.

Comparison

The throwaway script spits out html files, making it easy for me to make updates to all 45 pages at once. It's a one-off project that doesn't use other modules, so it's not supposed to be a web framework like Flask or Django or anything.

137 Upvotes

16 comments sorted by

View all comments

1

u/sparkcrz Sep 26 '25

I'm four months late but:

I'm pretty sure the doors without numbers are also enter-able if you decipher their signs to a page number, like what you did for page 3 with the mirrored signs.

If we only go by numbers (even with page 3 solved) the puzzle is unsolvable. For instance pages 17, 23, 28, 32, and 45 aren't reachable by visible door numbers alone:

  • Page 17 is only mentioned by number from 45;
  • Page 23 is only mentioned by number from 28 and 45;
  • Page 28 is only mentioned by number from 23, 32, and 45;
  • Page 32 is only mentioned by number from 28;
  • Page 45 is only mentioned by number from 17, 23 and 28;

Essentially forming two closed circuits, the one we start at and the one with room 45 in it.