Dominoes: Difference between revisions
m
specify a type for vector
m (add another layout) |
m (specify a type for vector) |
||
Line 104:
patterns = [(zero(tab) .- 1, Tuple{Int, Int}[], Int[])]
while true
newpat =
for (ut, ud, up) in patterns
pos = findfirst(x -> x == -1, ut)
Line 182:
6 4+5 1+5 4 1+4
0.
0.
6 4 2 2 0 6+5 0
+ + + + + +
Line 198:
+ + + +
6+6 5+2 5 3 3 4
2025 layouts found.
</pre>
|