Skip to content

Instantly share code, notes, and snippets.

View spheppner's full-sized avatar
🎯
Focusing

Simon Heppner spheppner

🎯
Focusing
  • Austria
  • 11:58 (UTC +02:00)
View GitHub Profile
#! /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]