Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey, you can create new maze puzzles for your fun from the JavaScript console (WebKit Inspector, Firebug,...)! First create a new function to paint the custom map by pasting this code into the console: https://gist.github.com/2848451

Next setup Maze.MAP matrix with value 1 for empty cell, 0 for path and 2/3 for start/finish positions.

Now run loadMazeMap() to load your new challenge ;)

Example: http://www.dodaj.rs/f/f/nM/4w3wop7u/custommaze.png



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: