Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hqt08
hqt08 / Maze Generator
Created September 28, 2014 19:03
python script for backtracking maze algorithm with solution
import numpy
from numpy.random import random_integers as rand
import matplotlib.pyplot as pyplot
class Cell:
def __init__(self, x, y):
self.x = x
self.y = y
self.backtrack = [0,0,0,0] #N,E,S,W
self.solution = [0,0,0,0]