Skip to content

Instantly share code, notes, and snippets.

@PaulPolaschek
Created November 7, 2018 18:27
Show Gist options
  • Save PaulPolaschek/0153e60d9b5fa81d5d980e9097f84457 to your computer and use it in GitHub Desktop.
Save PaulPolaschek/0153e60d9b5fa81d5d980e9097f84457 to your computer and use it in GitHub Desktop.
import random
"""
#########################################
#.......................................#
#.......................................#
#########################################
"""
maxlines=5
maxchars=20
d=[]
# --- generate dungeon ---
for y in range(maxlines):
line=[]
for x in range(maxchars):
line.append("#")
d.append(line)
# --- view dungeon ---
#print(d)
for line in d:
for char in line:
print(char, end="")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment