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

13

u/dominiquec Jun 12 '25

Mr. Sweigart: just wanted to say, thank you for all your work and for making it free! They are invaluable learning resources for my students and me.

5

u/AlSweigart Author of "Automate the Boring Stuff" Jun 12 '25

Ha ha. Yeah, this was a quick project that was my procrastination from doing book work. :)

I'm back on it though.

4

u/CommandOwn8517 Jun 13 '25

I am just starting out with python. You work "Automate boring stuff" has been very helpful.

2

u/AlSweigart Author of "Automate the Boring Stuff" Jun 17 '25

:D

1

u/Educational-Hat6621 1d ago

Hey, do you have a copy of "the rails I tote" ?

1

u/AlSweigart Author of "Automate the Boring Stuff" 1d ago

No, and I can't seem to find it on z-library either. I hadn't heard of it before, but it'd be great to find a copy.

1

u/Wurtle Sep 09 '25

I got trapped in the Stygian abyss.

Awesome website

1

u/AlSweigart Author of "Automate the Boring Stuff" Sep 09 '25

Thanks!

2

u/Educational-Hat6621 Oct 27 '26

I just want to say. Thank you so much for posting this. This is the strangest book I have ever tried to read and it keeps daring me to finish it.

1

u/highbloo Jun 23 '25

Came across this puzzle via Questing Beats on YT -- thank you so much for the upload!!

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.

1

u/joeman2006 Oct 15 '25

you should share with christopher manson hed prob dig it

0

u/[deleted] Sep 24 '25

[deleted] — view deleted comment

1

u/AlSweigart Author of "Automate the Boring Stuff" Sep 24 '25

The Internet Archive has a copy: https://archive.org/details/mazesolveworldsm0000mans

I'm not sure how printable it is: the scanned pages are a bit yellowed and would need cleaning up.

0

u/[deleted] Sep 26 '25

[deleted] — view deleted comment

1

u/AlSweigart Author of "Automate the Boring Stuff" Sep 26 '25

I've updated the link to a new free code. Try it again: https://inventwithpython.com/automateudemy

1

u/[deleted] Jun 18 '25

[removed] — view removed comment

1

u/AlSweigart Author of "Automate the Boring Stuff" Jun 18 '25

Yeah, I managed to snag a copy off ebay for $40, which is about as much as I'll pay for a sentimental object. The PDF you'll find online is surprisingly high quality though, so I don't see any reason to buy a physical copy.