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