Created
November 7, 2018 18:27
-
-
Save PaulPolaschek/0153e60d9b5fa81d5d980e9097f84457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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