introduce bitloops
This commit is contained in:
@@ -40,7 +40,6 @@ public class Main {
|
||||
public int pop = SSIZE * 2;
|
||||
public int offspring = SSIZE * 3;
|
||||
public int gens = 600;
|
||||
public String wordsPath = "nl_score_hints_v4.csv";
|
||||
public double minSimplicity = 0; // 0 means no limit
|
||||
public int threads = Math.max(1, Runtime.getRuntime().availableProcessors());
|
||||
public int tries = threads;
|
||||
@@ -65,7 +64,6 @@ public class Main {
|
||||
|
||||
section("Puzzle Generator");
|
||||
info("OutputDir : " + OUT_DIR);
|
||||
info("WordsFile : " + opts.wordsPath);
|
||||
|
||||
section("Settings");
|
||||
printSettings(opts);
|
||||
@@ -88,7 +86,7 @@ public class Main {
|
||||
System.out.print(indentLines(res.grid().renderHuman(res.clues().c()), " "));
|
||||
|
||||
var exported = res.exportFormatFromFilled(new Rewards(50, 2, 1));
|
||||
|
||||
|
||||
section("Clues");
|
||||
info("status : generating...");
|
||||
info("generatedFor : " + exported.words().length);
|
||||
@@ -146,7 +144,6 @@ public class Main {
|
||||
System.out.printf(Locale.ROOT, " %-14s: %d%n", "population", o.pop);
|
||||
System.out.printf(Locale.ROOT, " %-14s: %d%n", "offspring", o.offspring);
|
||||
System.out.printf(Locale.ROOT, " %-14s: %d%n", "generations", o.gens);
|
||||
System.out.printf(Locale.ROOT, " %-14s: %s%n", "wordsPath", o.wordsPath);
|
||||
System.out.printf(Locale.ROOT, " %-14s: %.2f%n", "minSimplicity", o.minSimplicity);
|
||||
System.out.printf(Locale.ROOT, " %-14s: %d%n", "threads", o.threads);
|
||||
}
|
||||
@@ -229,9 +226,6 @@ public class Main {
|
||||
} else if (a.equals("--tries")) {
|
||||
out.tries = Integer.parseInt(v);
|
||||
i++;
|
||||
} else if (a.equals("--words")) {
|
||||
out.wordsPath = v;
|
||||
i++;
|
||||
} else if (a.equals("--min-simplicity")) {
|
||||
out.minSimplicity = Double.parseDouble(v);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user