2025-07-02 13:12:54 +01:00
|
|
|
import solver from "../index.js";
|
|
|
|
|
|
2025-07-24 18:15:13 +01:00
|
|
|
const timeStart = Date.now();
|
2025-07-02 13:12:54 +01:00
|
|
|
const solutions = await solver(Math.random().toString(), {
|
2026-03-01 13:20:48 +00:00
|
|
|
onProgress: (status) => {
|
|
|
|
|
process.stdout.moveCursor(0, -1);
|
|
|
|
|
process.stdout.clearScreenDown();
|
|
|
|
|
console.log(`Progress: ${status.progress}%`);
|
|
|
|
|
},
|
|
|
|
|
c: 50,
|
|
|
|
|
s: 30,
|
|
|
|
|
d: 4,
|
2025-07-02 13:12:54 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
process.stdout.moveCursor(0, -1);
|
|
|
|
|
process.stdout.clearScreenDown();
|
|
|
|
|
|
2025-07-24 18:15:13 +01:00
|
|
|
console.log(solutions, "solutions");
|
|
|
|
|
console.log("took", (Date.now() - timeStart).toFixed(2), "ms");
|