Commit 7c44b9f2 authored by Constantin's avatar Constantin
Browse files

read labyrinths

parent 27fe4cac
# function for reading a labyrinth
def readlab (stream):
field = []
for line in stream:
row = []
for char in line:
if char in [' ','0']:
row.append(' ')
elif char in ['W','w','#','1']:
return field
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment