Maze Code + Polargraph?

My RSS feed for Slashdot brought my attention to an article on Slate.  The Slashdot summary stated:

This Slate article talks about a single line of code — 10 PRINT CHR$ (205.5 + RND (1)); : GOTO 10 — and how it manages to create a complicated maze without the use of a loop, variables and without very complicated syntax.

Even though that “one line” of code really is two lines and it really does use a loop, that short string of code is still very interesting.  While the way the code generates a maze isn’t immediately intuitive, it becomes obvious once you watch a bit of the video above.  All that code does is randomly kick out a forward slash or backward slash.  Once they wrap around to the next line, they start to form what looks like a maze.

As a little exercise I created something similar using PHP.  To make that work I had to use a fair bit of CSS to make it look decent.  In any case, it occurred to me that this would be a wonderful project for a Polargraph! Draw a random forward slash or backslash, get to the end of the line and make a bunch more on the return line.  How awesome would a huge paper roll of nothing but a giant maze look?

I think I may have found a project cool enough to show off at Maker Faire.  :)

”Posts
  1. Wanna make a DrawBot?
  2. DrawBot Resources and Links
  3. DrawBot, the Adventure Begins
  4. DrawBot - Parts Ordered!!!
  5. DrawBot - The Breakdown
  6. DrawBot - Parts Shipped!!!
  7. DrawBot - What would you draw?
  8. DrawBot - The Plan!
  9. DrawBot - The Hacks
  10. DrawBot - The Delivery?
  11. DrawBot – The Assembly, Part I
  12. DrawBot – The Delivery, Part IV
  13. DrawBot – The Assembly, Part III
  14. A nifty little WordPress plugin...
  15. i find i want to add more posts in some random series, just so i can use my new plugin
  16. Simple Series WordPress Plugin
  17. My first published WordPress plugin! Simple Series!
  18. Now Simple Series will also add the series list to RSS feeds too!
  19. ZOMG! Simple Series is going viral!
  20. DrawBot – The Assembly, Part V
  21. DrawBot – The Assembly, Part VI
  22. DrawBot – The Operation, Part I
  23. DrawBot – The Assembly, Part VIII
  24. DrawBot – The Breakdown, Part II
  25. DrawBot – Printing!
  26. DrawBot – Printing, Part II
  27. DrawBot – Calibration
  28. DrawBot – Pen Selection
  29. DrawBot – How to Recover from a Stalled Print!
  30. DrawBot – Drawing Success(ish)!!!
  31. DrawBot – Pen Selection, Part II
  32. DrawBot – Onwards and Upwards!
  33. DrawBot – Another Successful(ish) Drawing!, and an Update
  34. Plugin Considerations
  35. WordPress plugin - OCD Plugin Stats
  36. Two new DrawBot links! And an update!
  37. Maze Code + Polargraph?
  38. All New Polargraph on the way!!!
  39. Every Body Needs a Skull
  40. Overengineered Bolt Endcaps, Case Holder
  41. DrawBot - A Preview
  42. Arduino Powered Drawing Robot Poll
  43. Building an Arduino Drawing Robot - On The Cheap
  44. DrawBot, now ACTUALLY wall mounted!
  45. Apparently WordPress.org serves up even more delicious download stats
  46. A Study of Drawing Robot Pen Holders and Design Considerations
  47. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments
  48. Ideal Qualities in a Drawing Robot Pen Holder
  49. DrawBot Pen Holder Post Mortem
  50. Drawing Robot Penmanship

One Response to “Maze Code + Polargraph?”

  1. Tony Buser says:

    That’s two lines of code, a loop, and not a maze. :head explode: :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>