wall.py 247 Bytes
Newer Older
Ralf's avatar
Ralf committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
from thing import Thing

class Wall(Thing):
	def __init__(self):
		super().__init__()
	
	def onMove(self, newField):
		return False
	
	def blocksMove(self):
		return True
	
	def __str__(self):
		return "a wall"
	
	def __repr__(self):
		return "#"