introduce bitloops

This commit is contained in:
mike
2026-01-14 13:12:21 +01:00
parent 0b7a59b769
commit b1f54c2cae
2 changed files with 90 additions and 81 deletions

View File

@@ -162,14 +162,14 @@ public class MainTest {
var mask = swe.generateMask(opts.pop, opts.gens, Math.max(opts.pop, (int) Math.floor(opts.pop * 1.5)));
val clued = new Clued(mask);
val test = clued.gridToString();
val RESULT = " 3 300\n" +
" 1 \n" +
" 1 \n" +
" 3 0 \n" +
" 31 \n" +
" 1 \n" +
" 1 2\n" +
"21 22 3";
val RESULT = "001 \n" +
" 3 3\n" +
" 3\n" +
" 3\n" +
" 21 1 \n" +
" 3 \n" +
"221 1 \n" +
"1 22";
Assertions.assertEquals(18, clued.clueCount(), "Found seed changed");
Assertions.assertEquals(RESULT, test, "Found seed changed");