brute-force funktioniert, 3x3 felder damit man es überhaupt brauchen kann
This commit is contained in:
@@ -16,7 +16,7 @@ class Grid:
|
||||
def __init__(self, width: int, height: int) -> None:
|
||||
self.height = height
|
||||
self.width = width
|
||||
if width != height or width not in [5, 7, 9, 11, 13]:
|
||||
if width != height or width not in [3, 5, 7, 9, 11, 13]:
|
||||
raise ValueError("Feldgrösse nicht erlaubt")
|
||||
with open(f"descriptions/{width}x{height}.txt") as f:
|
||||
lines = f.readlines()
|
||||
|
||||
Reference in New Issue
Block a user