Anfang kompliziertere Version vom wfc

This commit is contained in:
Alfred Baumann
2026-06-10 17:19:22 +02:00
parent d39e6ecc25
commit 8139af00d5
3 changed files with 105 additions and 56 deletions

View File

@@ -25,6 +25,9 @@ class Direction(IntEnum):
else:
return Direction(dy + 1)
def flip(self) -> Direction:
return Direction((self + 2) % 4)
class Piece:
type: PieceType