summaryrefslogtreecommitdiff
path: root/Walls.py
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-11-02 22:36:35 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-11-02 22:36:35 +0200
commit1475dd4020ec24df8b29f5d90d89843b64f93f95 (patch)
tree7965e1d9cdaceb0a02a945b8f39b1437be3ed7e7 /Walls.py
parent314be3895ece7dbeb47bcdd85a05acbc4bc0ff9c (diff)
downloadSnakePuzzle-1475dd4020ec24df8b29f5d90d89843b64f93f95.tar.gz
SnakePuzzle-1475dd4020ec24df8b29f5d90d89843b64f93f95.zip
feat: hacky level changing and parsing system, also fixed unintentional class-wide variables
Diffstat (limited to 'Walls.py')
-rw-r--r--Walls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Walls.py b/Walls.py
index 860a7ef..d591291 100644
--- a/Walls.py
+++ b/Walls.py
@@ -7,9 +7,9 @@ class Walls:
Supports iterating over the walls and checking if there is a wall at a specific coordinate.
Useful as a wrapper to later increase performance of these operations."""
- _walls = []
def __init__(self, walls):
+ _walls = []
self._walls = walls
def fromString(wallString):