generated from mwc/project_game
the hardest part was creating a maze with a solution. I realized I didn't know how to do that and had to google how to create a maze. Once I had a maze generator, I was unsure of whether there was a solution to it. Figuring that out took some time. Then I changed the look to be more digestible. I chose a maze game because I thought it would be simple, but it didn't feel simple.
8 lines
234 B
Python
8 lines
234 B
Python
class Wall:
|
|
"""
|
|
A simple wall tile. It just sits on the board and blocks movement.
|
|
"""
|
|
character = "█"
|
|
def __init__(self, position):
|
|
# position is a tuple (x, y)
|
|
self.position = position |