brute-force funktioniert, 3x3 felder damit man es überhaupt brauchen kann

This commit is contained in:
Alfred Baumann
2026-06-08 14:25:34 +02:00
parent 6de80582d9
commit 21b9ce7ad7
4 changed files with 1032 additions and 11 deletions

View File

@@ -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()