11 lines
440 B
Text
11 lines
440 B
Text
foreach blocks,cells in (T( T(T(2,1),5), T(T,5), T(T(8),10), T(T(2,3,2,3),15),
|
|
T(T(2,3),5) )){
|
|
println("\nConfiguration:\n %s # %d cells and %s blocks"
|
|
.fmt(pblock(T,cells),cells,blocks));
|
|
println(" Possibilities:");
|
|
Utils.Generator(nonoblocks,blocks,cells).reduce('wrap(n,vector){
|
|
println(" ",pblock(vector,cells));
|
|
n+1
|
|
},0)
|
|
: println(" A total of %d possible configurations.".fmt(_));
|
|
}
|