Solve 2025-10, add z3 solver

This commit is contained in:
2025-12-10 13:40:56 +01:00
parent 875e5c1680
commit 204e42236e
7 changed files with 150 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst } from './index.ts';
describe('2025-10', () => {
const testInput = `[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}
[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2}
[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5}`;
it('first', () => {
expect(solveFirst(testInput)).toBe(7);
});
});