Skip to content

Commit 5e30291

Browse files
committed
Represent all the middle points of a pipe
This allows for arbitrary shapes, and paves a way to print out the program too.
1 parent 3de0a0c commit 5e30291

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Types/LL.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ data Room = Room {
2020
}
2121

2222
data Pipe = Pipe {
23-
start :: Point
24-
, end :: Point
23+
startPoint :: Point
24+
, middlePoints :: [Point]
25+
, endPoint :: Point
2526
}
2627

2728
data ManProgram = ManProgram {

0 commit comments

Comments
 (0)