Skip to content

Instantly share code, notes, and snippets.

View enj's full-sized avatar
🐼

Mo Khan enj

🐼
View GitHub Profile
@enj
enj / maze.py
Created January 9, 2017 13:08
maze
import random
def make_maze(columns=20, rows=20):
columns = columns / 2
rows = rows / 2
visited = [[0] * columns + [1] for _ in range(rows)] + [[1] * (columns + 1)]
ver = [["* "] * columns + ['*'] for _ in range(rows)] + [[]]