mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-14 17:50:47 +01:00
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 |
||
|---|---|---|
| .. | ||
| badgeBaseline.ts | ||
| badgeValue.test.ts | ||
| badgeValue.ts | ||
| counts.ts | ||
| distribution.ts | ||
| evaluate.test.ts | ||
| evaluate.ts | ||
| scoring.test.ts | ||
| scoring.ts | ||
| scoringMoves.ts | ||
| search.test.ts | ||
| search.ts | ||
| searchGroups.ts | ||
| searchStrategies.ts | ||
| simulate.test.ts | ||
| simulate.ts | ||
| simulateTurns.test.ts | ||
| simulateTurns.ts | ||
| solve.demo.test.ts | ||
| solve.test.ts | ||
| solve.ts | ||