Jump to content

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 = []empty(patterns)
for (ut, ud, up) in patterns
pos = findfirst(x -> x == -1, ut)
Line 182:
6 4+5 1+5 4 1+4
 
0.003087000507 seconds (266.9306 k allocations: 21.326715 MiB)
 
0.062496023503 seconds (39592.9166 k allocations: 4435.811817 MiB, 11.69% gc time)
6 4 2 2 0 6+5 0
+ + + + + +
Line 198:
+ + + +
6+6 5+2 5 3 3 4
 
2025 layouts found.
</pre>
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.