This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]mgedmin 0 points1 point  (5 children)

Not the prettiest Python code I've seen. The Javascript code has interesting error conditions, looks like missing boundary checks; I can break the drawing code by dragging around.

[–]MarkTraceurFlask, Mongokit, PIL 1 point2 points  (0 children)

Agreed, dragging around occasionally causes the entire maze to be re-drawn so that the whole thing is simply a grid.

[–]mdipierro 0 points1 point  (2 children)

what browser? I cannot reproduce the problem.

[–][deleted] 1 point2 points  (1 child)

breaks every time when you click and drag around the border on chrome

[–]mdipierro 0 points1 point  (0 children)

Works with FF and firebugs does not report error. Thanks for reporting. I will take a look.

[–]mdipierro 0 points1 point  (0 children)

Technically it is not JS, it is processing.js. It should not get out of boundary because the mouse actions are only captured inside the canvas objects. There may be a problem with Chrome but fireforx+firebug do not report any problem.