testsAndMisc/kcd2_dice_solver/src/core
Krzysztof kuhy Rudnicki 47996ac017 Split kcd2 badgeValue.ts 334 -> 172 + baseline
The module did two things: measure what a badge is compared against, and value
each badge against it. Moved the first half to badgeBaseline.ts (185) -- the
shared types, measureBaseline's 4,000-turn simulation, turnValue,
bestThrowsValue, singleCharge, rankValue and the context defaults.

badgeValue.ts (172) keeps valueBadge's per-effect switch and recommendBadges.
The dependency runs one way, and valueBadge's default parameter still calls
measureBaseline, so callers that omit a baseline behave as before.

solve.ts and badgeValue.test.ts were repointed, import paths only. Coverage
totals unchanged at 863/375/181/810, so every arm of the valuation switch is
still exercised.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-17 09:43:06 +02:00
..
badgeBaseline.ts Split kcd2 badgeValue.ts 334 -> 172 + baseline 2026-08-17 09:43:06 +02:00
badgeValue.test.ts Split kcd2 badgeValue.ts 334 -> 172 + baseline 2026-08-17 09:43:06 +02:00
badgeValue.ts Split kcd2 badgeValue.ts 334 -> 172 + baseline 2026-08-17 09:43:06 +02:00
counts.ts kcd2_dice_solver: Balatro's die has one joker face, not six 2026-07-25 16:14:04 +02:00
distribution.ts kcd2_dice_solver: Balatro's die has one joker face, not six 2026-07-25 16:14:04 +02:00
evaluate.test.ts kcd2_dice_solver: Balatro's die has one joker face, not six 2026-07-25 16:14:04 +02:00
evaluate.ts Track kcd2_dice_solver app and add run.sh dependency installer 2026-07-21 18:17:13 +02:00
scoring.test.ts Split kcd2 scoring.ts 361 -> 172 + move generator 2026-08-17 09:39:31 +02:00
scoring.ts Split kcd2 scoring.ts 361 -> 172 + move generator 2026-08-17 09:39:31 +02:00
scoringMoves.ts Split kcd2 scoring.ts 361 -> 172 + move generator 2026-08-17 09:39:31 +02:00
search.test.ts Split kcd2 search.ts 417 -> 100 + two modules 2026-08-17 09:26:42 +02:00
search.ts Split kcd2 search.ts 417 -> 100 + two modules 2026-08-17 09:26:42 +02:00
searchGroups.ts Split kcd2 search.ts 417 -> 100 + two modules 2026-08-17 09:26:42 +02:00
searchStrategies.ts Split kcd2 search.ts 417 -> 100 + two modules 2026-08-17 09:26:42 +02:00
simulate.test.ts Split the kcd2_dice_solver test files under the cap 2026-08-16 20:03:33 +02:00
simulate.ts Split kcd2 simulate and inventoryIo; revert two seams 2026-08-16 19:55:52 +02:00
simulateTurns.test.ts Split the kcd2_dice_solver test files under the cap 2026-08-16 20:03:33 +02:00
simulateTurns.ts Split kcd2 simulate and inventoryIo; revert two seams 2026-08-16 19:55:52 +02:00
solve.demo.test.ts Track kcd2_dice_solver app and add run.sh dependency installer 2026-07-21 18:17:13 +02:00
solve.test.ts kcd2_dice_solver: Balatro's die has one joker face, not six 2026-07-25 16:14:04 +02:00
solve.ts Split kcd2 badgeValue.ts 334 -> 172 + baseline 2026-08-17 09:43:06 +02:00