Free polyominoes enumeration: Difference between revisions

Updated D entry
(+ second D entry)
(Updated D entry)
Line 209:
 
void countSub(in uint n, in uint lv, uint[] field, uint[] putlist,
in uint putno, in uint putlast) nothrow /*@nogc*/ {
check(field, n, lv);
if (n == lv) {
Line 239:
}
 
void initOffset(in uint n) nothrow /*@nogc*/ {
g_anRotationOffset[0] = 0;
g_anRotationX[0] = 1;
Line 273:
}
 
void check(in uint[] field, in uint n, in uint lv) nothrow /*@nogc*/ {
g_pnFieldCheck[0 .. n ^^ 2] = 0;