September 11, 2008

Python Maze Generator

Chris Stakor of Mucho Mazes wants, of course, mucho mazes, and asked for help making our PDF maze generator output multiple mazes at once. Sure thing! The updated python maze generator code now accepts a page count argument.

Here is the form:

width in points
height in points
cell size
pages
curvy straight
crossings not

Warning that if you try more than about a dozen pages on my website, my CPU limits will stop the script from completing. Of course, you can run the script on your own server if you want hundreds of pages.

It occurs to me that I never bothered to write something to draw solutions. Any volunteers?

Posted by David at September 11, 2008 09:07 AM
Comments

Hi Dave,

These mazes are really cool! Thanks for sharing the simple python code.

I am working on a solution generator. It currently solves the maze and adds a page of solution per maze, redrawing the maze but with the solution. It is a recursive solution that has problems with very dense mazes (I got it to work down to cell size of 9 on my PowerMac). Also, the drawing of solution path leaves a lot to be desired, especially when cross and/or curve are turned on. I plan to work on those issues next.

I will post it on my web site for now.

Cheers,
Tom Krauss

Posted by: Tom Krauss at October 1, 2008 11:04 PM

Hi,

If anyone is interested I got solve to work for all the supported modes... please contact me if you want to share. There is a "mini-blog" of sorts on my web site with a few details and examples.

- Tom

Posted by: Tom Krauss at October 11, 2008 11:19 PM

Note, With David's permission I've made the modified code available at http://www.kraussfamily.org/pymaze_with_soln.py.

Posted by: Tom Krauss at November 7, 2008 10:34 PM

Hi again!

I've attempted a few clean ups to the "drawsolution" function, making it clearer and more compact. Actually, it may be a little too compact to easily follow :-) but it is my attempt at following the style of the original pymaze.py - and it's at the very least better than what I first posted.

See my web page for the latest.

Best,
Tom K.

Posted by: Tom K. at November 12, 2008 10:57 PM

Thanks so much for these mazes! I used them (with lots of other things) for a friend's "kids wedding activity book" and at my own kids' urging also made an "older kids reception activity book" - they are so attractive and, with the crossings, challenging even for older kids! Thanks for making them available!

After making those mazes and seeing how beautifully they turned out, I have a request - I have made a repeating design from your mazes

http://www.ipernity.com/doc/323971/24122749

With your permission I would like to make and sell fabric at Spoonflower in four or five colorways with that design. I think it would make attractive fabric! Would that be okay with you? I would credit you and link to your program. I see that the program itself is copyrighted; If you would rather I didn't use a modified maze for commercial activity, I won't, and will take down the picture I posted.

Thanks again!

Kelly

Posted by: kelly at July 24, 2013 08:22 AM

http://www.coachoutletonlinehandbags.us.com/
http://www.pandorabraceletjewelry.us.com/
http://www.christianlouboutinshoesdiscount.us.com/
http://www.nikeairvapormax.us.com/
http://www.timberlandbootsshoes.us.com/
http://www.pandoracharm-jewelry.us.com/
http://www.yeezys-shoes.us.com/
http://www.christianlouboutininc.us.com/
http://www.jamesharden-shoes.us.com/
http://www.michaelkorscanada-outlet.ca/
http://www.yeezysboost350v2.us.com/
http://www.adidasoutlet-store.us.com/
http://www.airmaxs.us.com/
http://www.jimmychoooutletshoes.us.com/
http://www.lebron-shoes.us.com/
http://www.kd10.com.co/
http://www.adidas-yeezys.us.com/
http://www.timberlandbootsofficial.us.com/
http://www.air-maxfr.fr/
http://www.pandoracanadajewelry.ca/
http://www.katespadeoutletfactory.us.com/
http://www.vansoutlet-store.us.com/
http://www.ralphlauren-outlet-online.us.com/
http://www.jameshardenshoes.com.co/
http://www.vanscom.us.com/
http://www.redbottomshoesforwomen.us.com/
http://www.poloralphlaurenoutlet-store.us.com/
http://www.pandorascharms.us.com/
http://www.ralphlaurenoutletpoloonline.us.com/
http://www.monclers.org.uk/
http://www.yeezy350v2boost.us/
http://www.ralph--lauren.us.com/
http://www.yeezybeluga.us.com/
http://www.yeezys.com.co/
http://www.kyrie-irvingshoes.us.com/
http://www.air-jordans11.us.com/
http://www.nmd.us.com/
http://www.birkenstockoutletsale.us.com/
http://www.kyrie3.com.co/
http://www.christianlouboutinshoesinc.us.com/
http://www.northfacesjackets.us.com/
http://www.nikeoutlet--store.us.com/
http://www.pandorajewelryoff.us.com/
http://www.jordans11.us.com/
http://www.pandora--jewelry.us.com/
http://www.jordan11space-jam.us/
http://www.nike-cortez.org/
http://www.nike-uptempo.com/
http://www.airmax90chaussure.fr/
http://www.louboutinsshoes.us.com/
http://www.michaelkors-outletcanada.ca/
http://www.nike-airmax2018.us.com/
http://www.ralphlaurenoutlet-store.us.com/
http://www.puma--shoes.us.com/
http://www.air-max90.us.com/
http://www.longchampoutletsale.us.com/
http://www.kyrie3shoes.us.com/
http://www.yeezy.us.org/
http://www.jordanretro-11.us.com/
http://www.nikeairmax2018.us/
http://www.birkenstocks-sandals.us.com/
http://www.adidasshoesonline.us.com/
http://www.longchampcom.us.com/
http://www.nikeairforce1.com.co/
http://www.coachoutletfactorys.us.com/
http://www.yeezysboost-350.us.com/
http://www.clarks-shoes.org/
http://www.adidasshoesadidas.us.com/
http://www.pandora-outlets.us/
http://www.ultra-boost.us.com/
http://www.pandorainc.us.com/
http://www.adidas-outlets.us.com/
http://www.jordan11red.us.com/
http://www.adidasnmdofficial.us.com/
http://www.longchampshandbags.us.com/
http://www.curry-4.us.com/
http://www.coachoutlet-official.us.com/
http://www.kyrie4.com.co/
http://www.new-jordans.us.com/
http://www.huarachesnike.us.com/
http://www.yeezybluetint.us/
http://www.pandorajewelryofficialsite.us.com/
http://www.birkenstock-shoes.us.com/
http://www.nike--outlet.us.com/
http://www.birkenstockcom.us.com/
http://www.lebron15.com.co/
http://www.kd-shoes.us.com/
http://www.pandorasjewelry.us.com/
http://www.louboutinshoesheels.us.com/
http://www.pandoraringsofficial.us.com/
http://www.kd10shoes.us.com/
http://www.nike--shoes.us.com/
http://www.pandorarings.us.com/
http://www.curry-shoes.us.com/
http://www.rihannafentypuma.us.com/
http://www.nike-vapormax.us.com/
http://www.airmax-95.us.com/
http://www.soccercleats.us.com/
http://www.nmdadidas.com.co/
http://www.kyrieirving-shoes.com/
http://www.northfaceoutletoff.us.com/
http://www.pandoras.us.com/
http://www.goyards.us.com/
http://www.skechersuk.org.uk/
http://www.adidas--yeezy.us.com/
http://www.lebron-15.us/
http://www.red-bottomsshoes.us.com/
http://www.katespadeoutlet-online.us/
http://www.monclerukoutllet.org.uk/
http://www.officialpandorajewelry.us.com/

Posted by: Lisa at January 27, 2019 07:02 PM

https://www.air-max95.us.com/
https://www.yeezysneakersboost.us/
https://www.nikeair-max270.us.com/
https://www.adidasoriginalssuperstar.us.com/
https://www.pandoranecklaces.us/
https://www.shoes-yeezy.us.com/
https://www.airjordan-retro11.us.com/
https://www.airjordanshoesretros.us.com/
https://www.goyard-bags.us.org/
https://www.vansshoes-outlets.us.com/
https://www.pandora-charmssaleclearance.us.com/
https://www.golden-gooses.us.com/
https://www.airmax720.us.com/
https://www.pumas-shoes.us.com/
https://www.yeezys-adidas.us.com/
https://www.ferragamosshoes.us.com/
https://www.adidassuperstarsshoes.us.com/
https://www.puma-outletstore.us.com/
https://www.nmdr1adidas.us.com/
https://www.christianlouboutins.us.org/
https://www.yeezy-supply.us.com/
https://www.ferragamobelts.us.com/
https://www.nmds-adidas.us.com/
https://www.pandorajewelry-officialsites.us.com/
https://www.asicsshoesoutlet.us.com/
https://www.pandorabracelets-charms.us.com/
https://www.timberlands-shoes.us/
https://www.adidassneakers.us.com/
https://www.balenciagasneakerssale.us.com/
https://www.nikecortezs.us/
https://www.filashoessale.us/
https://www.shoes-valentino.us.com/
https://www.nikeoutletstore-onlineshopping.us.com/
https://www.pandora-braceletcharms.us.com/
https://www.yeezysboosts.us.com/
https://www.christian-louboutins.us.org/
https://www.longchampoutlet-onlines.us.com/
https://www.timberland-outletstore.us.com/
https://www.filadisruptor2.us/
https://www.goyard-handbags.us.org/
https://www.nikes-sneakers.us.com/
https://www.adidasstores.us.com/
https://www.nikeair-max2019.us.com/
https://www.yeezy500boost.us.com/
https://www.red-bottomshoesforwomen.us.com/
https://www.nikeair-max270.us/
https://www.boots-timberlands.us.com/
https://www.yeezy500.us.org/
https://www.airmax2019.us.org/
https://www.christian-louboutins-shoes.us.com/
https://www.red-bottomheels.us/
https://www.adidasyeezys-shoes.us.com/
https://www.yeezyboosts-350.us.com/
https://www.nike-runningshoes.us/
https://www.nikesclearance.us/
https://www.nike-airmax98.us/
https://www.nike-airmax95.us/
https://www.fjallravenbackpack.us/
https://www.adidasultra-boosts.us.com/
https://www.stan-smith-adidas.us/
https://www.fitflop-saleclearances.us.com/
https://www.pandorajewelry-site.us.com/
https://www.airmax720.us/
https://www.michael-jordanshoes.us.com/
https://www.christian-louboutinoutletsale.us.com/
https://www.nikerunning-shoes.us/
https://www.pandorabracelets-clearance.us.com/
https://www.pandorajewellerys.us.com/
https://www.ferragamo-shoes.us.org/
https://www.yeezyshoess.us.com/
https://www.timberlandworkboots.us.com/
https://www.lebron16shoes.us/
https://www.yeezyscheap.us.com/
https://www.nikecortez.us.org/
https://www.timberlands-outlets.us.com/
https://www.hermesshandbags.us.com/
https://www.nikeoutletonlineclearance.us.com/
https://www.christianslouboutin.us.com/
https://www.nikesneakersformenwomen.us/
https://www.asics-runningsshoes.us.com/
https://www.red-bottomshoeslouboutin.us.com/
https://www.asicsoutletonline.us.com/
https://www.pandora-jewelrystore.us.com/
https://www.filasneakers.us/
https://www.valentinos.us.org/
https://www.nikefactorys.us/
https://www.louboutinshoess.us/
https://www.adidas-nmds.us.org/
https://www.ultra-boosts.us.com/
https://www.asicsshoes.us.org/
https://www.nikeshoesonlines.us.com/
https://www.adidas-yeezysshoes.us.com/
https://www.kevin-durantsshoes.us.com/
https://www.timberlands-shoes.us.com/
https://www.adidas-eqts.us/
https://www.skechersgowalkshoes.us/
https://www.nikeshoesshop.us.com/
https://www.lebronjamesshoessale.us.com/
https://www.outletmonclers.us.com/
https://www.shoesyeezy.us.com/
https://www.adidaseqtsupport.us/
https://www.nikeairmax720.us.com/
https://www.christian-louboutin-shoes.us.org/
https://www.airmaxs-270.us.com/
https://www.fjallravens.us/
https://www.pandora-rings.us.org/
https://www.yeezysneakers.us.com/
https://www.christianlouboutinshoessaleoutlets.us/
https://www.hermesbelts-outlet.us.com/
https://www.adidas-shoesoutlet.us.com/
https://www.airmax270s.us.com/
https://www.pandoraoutlet-online.us.com/
https://www.pandoracharmssales.us.com/
https://www.fjallravenkankenbackpack.us/
https://www.nmds-adidas.us.org/
https://www.nike-outletstores.us.com/
https://www.jewelrycharms.us/
https://www.airjordans-sneakers.us/
https://www.balenciagasneakerss.us.com/
https://www.nikestores.us.org/
https://www.ultra-boost.us.org/
https://www.pandora-earrings.us/
https://www.christianlouboutins-outlet.us.com/
https://www.airmaxs97.us.com/
https://www.kd11shoes.us.com/
https://www.adidasstan-smith.us.com/
https://www.valentinoshoessale.us.com/
https://www.airmax-98.us.com/

Posted by: Robert at January 30, 2019 12:27 AM
Post a comment









Remember personal info?