Free polyominoes enumeration: Difference between revisions
Content added Content deleted
(+ second D entry) |
(Updated D entry) |
||
Line 209: | Line 209: | ||
void countSub(in uint n, in uint lv, uint[] field, uint[] putlist, |
void countSub(in uint n, in uint lv, uint[] field, uint[] putlist, |
||
in uint putno, in uint putlast) nothrow |
in uint putno, in uint putlast) nothrow @nogc { |
||
check(field, n, lv); |
check(field, n, lv); |
||
if (n == lv) { |
if (n == lv) { |
||
Line 239: | Line 239: | ||
} |
} |
||
void initOffset(in uint n) nothrow |
void initOffset(in uint n) nothrow @nogc { |
||
g_anRotationOffset[0] = 0; |
g_anRotationOffset[0] = 0; |
||
g_anRotationX[0] = 1; |
g_anRotationX[0] = 1; |
||
Line 273: | Line 273: | ||
} |
} |
||
void check(in uint[] field, in uint n, in uint lv) nothrow |
void check(in uint[] field, in uint n, in uint lv) nothrow @nogc { |
||
g_pnFieldCheck[0 .. n ^^ 2] = 0; |
g_pnFieldCheck[0 .. n ^^ 2] = 0; |
||