-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpieces_tetraminoes.jl
28 lines (20 loc) · 1.1 KB
/
pieces_tetraminoes.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include("data_types.jl")
tetra_O = Piece([Node([(1,1), (1,2), (2,1), (2,2)])], 1, 4, 1)
tetra_I = Piece([Node([(1,1), (2,1), (3,1), (4,1)]),
Node([(1,1), (1,2), (1,3), (1,4)])], 2, 4, 2)
tetra_S = Piece([Node([(1,1), (2,1), (2,2), (3,2)]),
Node([(1,2), (2,2), (2,1), (1,3)])], 2, 4, 3)
tetra_Z = Piece([Node([(2,1), (2,2), (1,2), (3,1)]),
Node([(1,1), (1,2), (2,2), (2,3)])], 2, 4, 4)
tetra_T = Piece([Node([(1,1), (2,1), (3,1), (2,2)]),
Node([(1,2), (2,2), (3,2), (2,1)]),
Node([(1,1), (1,2), (1,3), (2,2)]),
Node([(1,2), (2,1), (2,2), (2,3)])], 4, 4, 5)
tetra_L = Piece([Node([(1,1), (1,2), (1,3), (2,1)]),
Node([(1,1), (2,1), (3,1), (3,2)]),
Node([(1,3), (2,3), (2,2), (2,1)]),
Node([(1,1), (1,2), (2,2), (3,2)])], 4, 4, 6)
tetra_J = Piece([Node([(1,1), (2,1), (2,2), (2,3)]),
Node([(1,2), (2,2), (3,2), (3,1)]),
Node([(1,1), (1,2), (1,3), (2,3)]),
Node([(1,2), (1,1), (2,1), (3,1)])], 4, 4, 7)