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
#! /usr/bin/python3 | |
import os | |
import random | |
def is_monster(pos): | |
"""check if pos is occupied by monster""" | |
if dungeon[pos]==".": | |
return False | |
else: | |
return dungeon[pos] |
NewerOlder