Commit eb1c773a authored by Ralf's avatar Ralf
Browse files

Merge branch 'master' of https://git.hacksaar.de/hacksaar/haxotel

parents 6d851d68 7c44b9f2
# 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']:
row.append('W')
field.append(row)
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