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 in the DrawBot Adventure Series
  1. Wanna make a DrawBot?
  2. DrawBot Resources and Links
  3. DrawBot, the Adventure Begins
  4. DrawBots for the slow learner
  5. DrawBot - Parts Ordered!!!
  6. DrawBot - The Breakdown
  7. DrawBot - Parts Shipped!!!
  8. DrawBot - What would you draw?
  9. DrawBot - The Plan!
  10. DrawBot - The Hacks
  11. DrawBot - Giant Unicorn?
  12. DrawBot - The Delivery?
  13. DrawBot - The Delivery, Part II
  14. DrawBot – The Delivery, Part III
  15. DrawBot – The Assembly, Part I
  16. DrawBot – The Software, Part I (and an existential conversation)
  17. DrawBot – The Delivery, Part IV
  18. DrawBot – The Assembly, Part II
  19. DrawBot – The Assembly, Part III
  20. DrawBot – The Assembly, Part IV
  21. DrawBot – Design Considerations
  22. DrawBot – Halp!!! No - seriously, a little help?
  23. DrawBot – The Face Palm
  24. DrawBot – The Delivery, Part V
  25. DrawBot – The Silver Lining of Failure
  26. DrawBot – The Delivery, Part VI
  27. DrawBot – The Assembly, Part V
  28. DrawBot – The Assembly, Part VI
  29. DrawBot – Printed Parts
  30. DrawBot – The Assembly, Part VII
  31. DrawBot – The Operation, Part I
  32. DrawBot – The Breakdown, Part II
  33. DrawBot – Printing!
  34. DrawBot – Printing, Part II
  35. DrawBot – Why are you crying?
  36. DrawBot – How to Recover from a Stalled Print!
  37. DrawBot – Drawing Success(ish)!!!
  38. DrawBot – Pen Selection, Part II
  39. DrawBot – Onwards and Upwards!
  40. DrawBot – Another Successful(ish) Drawing!, and an Update
  41. Restarting a Stalled DrawBot Drawing
  42. TSP FTW!
  43. Speedier DrawBot Drawings
  44. Two new DrawBot links! And an update!
  45. Excellent DrawBot Slides
  46. Another Drawing Robot!!!
  47. DrawBot Practice Tip: A Watched Pot
  48. The biggest inkjet printer ever
  49. Why do DrawBots draw on walls?
  50. Maze Code + Polargraph?
  51. All New Polargraph on the way!!!
  52. Ideas for improving my DrawBot
  53. DrawBot Aesthetic Re-Design Ideas
  54. The Eagle Has Landed
  55. Every Body Needs a Skull
  56. I think I know what I want to draw next...
  57. This project is not going to overengineer itself
  58. Overengineered Spools
  59. Overengineered Stepper Motor Mounts, Filament Guides
  60. Overengineered Bolt Endcaps, Case Holder
  61. Sourcing DrawBot Parts
  62. DrawBot - A Tour!
  63. DrawBot - A Preview
  64. Arduino Powered Drawing Robot Poll
  65. Building an Arduino Drawing Robot - On The Cheap
  66. DrawBot - Printed Parts Tour
  67. Unidentified Foam Object
  68. Arduino Powered Drawing Robot - Take 2 (Or 3)
  69. DrawBot, now ACTUALLY wall mounted!
  70. A Study of Drawing Robot Pen Holders and Design Considerations
  71. Drawing Robot Pen Holders, Calligraphy Pens, and Thought Experiments
  72. Enough talk! Finally a pen holder!
  73. DrawBot Pen Holder Post Mortem
  74. To Maker Faire!!!
  75. Skipping! How could I forget the skipping?!
  76. Drawing Robot Penmanship
  77. PlotterBot at Maker Faire Bay Area 2013!
  78. PlotterBot.com - a new site dedicated to drawing robots

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=""> <s> <strike> <strong>