introduce bitloops

This commit is contained in:
mike
2026-01-21 06:12:05 +01:00
parent 386777e576
commit ebcbc9b33c
13 changed files with 35 additions and 407 deletions

View File

@@ -114,7 +114,6 @@ public class Main {
else rebuildIndex();
info("indexUpdated : " + INDEX_FILE);
} catch (IOException e) {
e.printStackTrace();
err("Failed to write: " + FILE_NAME);
err("Reason : " + e.getMessage());
System.exit(2);
@@ -345,7 +344,6 @@ public class Main {
try {
return _attempt(rng, dict, opts);
} catch (Exception e) {
e.printStackTrace();
System.err.println("Failed to operate" + e.getMessage());
return null;
}
@@ -445,7 +443,6 @@ public class Main {
Files.writeString(indexPath, content, StandardCharsets.UTF_8);
info("indexUpdated : " + indexPath);
} catch (IOException e) {
e.printStackTrace();
err("Failed to update index.json: " + e.getMessage());
}
}
@@ -486,12 +483,10 @@ public class Main {
var pathInIndex = "/puzzles/" + filename;
records.add(toIndexRecordJson(id, pathInIndex, date, theme, difficulty, createdAt));
} catch (IOException e) {
e.printStackTrace();
err("Failed to read " + path + ": " + e.getMessage());
}
});
} catch (IOException e) {
e.printStackTrace();
err("Failed to list puzzles: " + e.getMessage());
return;
}
@@ -502,7 +497,6 @@ public class Main {
Files.writeString(indexPath, content, StandardCharsets.UTF_8);
info("Successfully rebuilt index.json with " + records.size() + " records.");
} catch (IOException e) {
e.printStackTrace();
err("Failed to write index.json: " + e.getMessage());
}
}