game-balance-and-bots
Tunes game difficulty with headless bots - random/greedy/lookahead players, *.sim.test.ts runs, balance bands, difficulty curves, tuning knobs, the fun-within-seconds kill test. Use when balancing, tuning pacing or adding bots or bot sims. Not for solvers or par (level-generation-and-solvers).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- game-balance-and-bots
- description
- Tunes game difficulty with headless bots - random/greedy/lookahead players, *.sim.test.ts runs, balance bands, difficulty curves, tuning knobs, the fun-within-seconds kill test. Use when balancing, tuning pacing or adding bots or bot sims. Not for solvers or par (level-generation-and-solvers).
02 资源文件 500
- 资产文件assets/shared.json964 B
- 脚本examples/halo-drift/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本examples/halo-drift/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本examples/halo-drift/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本examples/halo-drift/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本examples/halo-drift/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 参考文档examples/halo-drift/reports/sim/halo-drift.json3.7 KB
- 参考文档examples/halo-drift/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本examples/halo-drift/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本examples/line-siege/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本examples/line-siege/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本examples/line-siege/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本examples/line-siege/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本examples/line-siege/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本examples/line-siege/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 参考文档examples/line-siege/reports/sim/line-siege.json5.5 KB
- 参考文档examples/line-siege/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本examples/line-siege/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 参考文档references/balance-contract.md11.7 KB
- 参考文档references/bots-and-sims.md20.4 KB
- 参考文档references/fun-and-kill-test.md7.1 KB
- 参考文档references/tuning-playbook.md12.8 KB
- 脚本scripts/check-balance.mjs28.2 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/lib/balance.mjs10.0 KB
- 脚本scripts/selftest.mjs1.1 KB
- 脚本templates/apps/__GAME_ID__/src/rules/__GAME_ID__-tuning.test.ts1.4 KB
- 脚本templates/apps/__GAME_ID__/src/rules/__GAME_ID__-tuning.ts2.6 KB
- 脚本templates/apps/__GAME_ID__/src/testing/__GAME_ID__-bot.test.ts3.1 KB
- 脚本templates/apps/__GAME_ID__/src/testing/__GAME_ID__-bot.ts3.1 KB
- 脚本templates/jest.sim.config.js911 B
- 脚本templates/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本templates/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本templates/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本templates/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本templates/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本templates/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本templates/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本templates/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本templates/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本templates/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本templates/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本templates/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本templates/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本templates/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本templates/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档templates/test/sims/__GAME_ID__/balance-bands.json2.3 KB
- 脚本templates/test/sims/__GAME_ID__/balance.sim.test.ts4.1 KB
- 脚本tests/build-fixtures.mjs22.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/EXPECT.txt76 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/jest.config.js220 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/package.json146 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/geom/stick-command.ts120 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/sim-stats.ts3.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/game-kit/src/timeline/sample.ts108 B
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/reports/sim/halo-drift.json3.7 KB
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/reports/sim/line-siege.json5.5 KB
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 参考文档tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/bad-kit-import-changed/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/jest.config.js220 B
- 脚本tests/fixtures/check-balance-kit-growth/good/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-kit-growth/good/package.json146 B
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/geom/stick-command.ts120 B
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/game-kit/src/timeline/sample.ts108 B
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档tests/fixtures/check-balance-kit-growth/good/reports/sim/halo-drift.json3.7 KB
- 参考文档tests/fixtures/check-balance-kit-growth/good/reports/sim/line-siege.json5.5 KB
- 参考文档tests/fixtures/check-balance-kit-growth/good/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 参考文档tests/fixtures/check-balance-kit-growth/good/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本tests/fixtures/check-balance-kit-growth/good/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/levels/line-siege-level-plan.ts184 B
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/levels/pack-1.json75 B
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/levels/pack-2.json76 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/EXPECT.txt45 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/jest.config.js220 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/package.json146 B
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/reports/sim/halo-drift.json3.7 KB
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/reports/sim/line-siege.json5.5 KB
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 参考文档tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-level-plan-changed-after-report/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/levels/line-siege-level-plan.ts184 B
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/levels/pack-1.json75 B
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/levels/pack-2.json76 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/EXPECT.txt75 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/jest.config.js220 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/package.json146 B
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/reports/sim/halo-drift.json3.7 KB
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/reports/sim/line-siege.json5.5 KB
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 参考文档tests/fixtures/check-balance-packs/bad-rules-changed-after-report/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本tests/fixtures/check-balance-packs/bad-rules-changed-after-report/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/levels/line-siege-level-plan.ts184 B
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-packs/good/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/good/jest.config.js220 B
- 脚本tests/fixtures/check-balance-packs/good/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-packs/good/package.json146 B
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/game-kit/src/testing/trace-bot.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/tooling/src/sims/write-sim-report.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/good/packages/tooling/src/sims/write-sim-report.ts4.6 KB
- 参考文档tests/fixtures/check-balance-packs/good/reports/sim/halo-drift.json3.7 KB
- 参考文档tests/fixtures/check-balance-packs/good/reports/sim/line-siege.json5.5 KB
- 参考文档tests/fixtures/check-balance-packs/good/test/sims/halo-drift/balance-bands.json2.2 KB
- 脚本tests/fixtures/check-balance-packs/good/test/sims/halo-drift/balance.sim.test.ts3.4 KB
- 参考文档tests/fixtures/check-balance-packs/good/test/sims/line-siege/balance-bands.json3.0 KB
- 脚本tests/fixtures/check-balance-packs/good/test/sims/line-siege/balance.sim.test.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/halo-drift/src/sim/halo-drift-sim.test.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/halo-drift/src/sim/halo-drift-sim.ts8.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/halo-drift/src/sim/halo-drift-tuning.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/halo-drift/src/testing/halo-drift-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/halo-drift/src/testing/halo-drift-bot.ts4.4 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/levels/line-siege-level-plan.ts184 B
- 参考文档tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/levels/pack-1.json75 B
- 参考文档tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/levels/pack-2.json76 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/apply-move.test.ts10.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/apply-move.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/board-lines.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/board-lines.ts1.9 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/continue-run.test.ts6.7 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/continue-run.ts2.9 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/create.test.ts3.8 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/create.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/intent-to-move.test.ts4.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/intent-to-move.ts2.4 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-engine.test.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-engine.ts2.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-evaluate.test.ts1.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-evaluate.ts971 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-persistence.test.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-persistence.ts4.7 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-stats.test.ts2.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-stats.ts1.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-tuning.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-tuning.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/line-siege-types.ts4.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/list-moves.test.ts1.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/list-moves.ts428 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/monster-attack.test.ts5.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/monster-attack.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/monster-march.test.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/monster-march.ts3.7 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/opening.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/opening.ts4.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/outcome.test.ts2.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/outcome.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/pieces.test.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/pieces.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/placement.test.ts1.5 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/rules/placement.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/testing/line-siege-bot.test.ts1.4 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/testing/line-siege-bot.ts1.6 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/testing/line-siege-testing.test.ts1.8 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/apps/line-siege/src/testing/line-siege-testing.ts1.3 KB
- 参考文档tests/fixtures/check-balance-packs/pass-packs-after-sims/EXPECT.txt62 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/jest.config.js220 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/jest.sim.config.js911 B
- 参考文档tests/fixtures/check-balance-packs/pass-packs-after-sims/package.json146 B
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/balance-bands.test.ts5.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/balance-bands.ts9.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/bot-policies.test.ts2.5 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/bot-policies.ts4.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/parse-balance-bands.test.ts3.1 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/parse-balance-bands.ts5.3 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/play-bot.ts3.5 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/run-sim-bot.test.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/run-sim-bot.ts3.4 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/sim-stats.test.ts1.7 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/sim-stats.ts3.2 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/trace-bot.test.ts3.0 KB
- 脚本tests/fixtures/check-balance-packs/pass-packs-after-sims/packages/game-kit/src/testing/trace-bot.ts3.0 KB
03 SKILL.md 正文
Game balance and bots
Every Pocket Arcade game is played thousands of times headless by seeded bots before a person plays it. The sims measure the difficulty curve, whether skill matters, how soon the first win moment comes and whether the twist happens; a bands file says what "balanced" means; every balance number lives in one tuning file. This skill builds the harness once, each game's bots, sims and bands, and the check that judges the numbers.
Rules that must hold
- Bots play only through the pure engine contract (
create,listMoves,applyMove,outcome), headless in plain Node viajest.sim.config.js, never through the UI. Why: the same rules the app runs are measured, in seconds, with no React Native mock. - Every run is deterministic: seeds
1…seedsPerCell, the bot's own seeded RNG, noMath.random,Date,performance.now, retries, skips or focus; the report has no timestamps. Why: a rerun gives identical bytes, so a diff of the report shows exactly what a change did. - Every run has a hard move cap, and no run may reach it (
capHits= 0). Why: a stuck or endless game is a rules bug that a bot finds long before a player does. - Use the three standard players:
random(the baseline),greedy(the reasonable player, also the game module'stesting.bot) andlookahead(the upper bound; it sees the seeded future). Skill must matter: random < greedy < lookahead by a clear step. Why: if naive play does as well as smart play, the choices are fake. - A sim asserts properties of at least 100 seeds per cell, never a single outcome, and writes
reports/sim/<game-id>.jsonbefore its assertions. Why: one game proves nothing about balance, and a failing run must still leave numbers to read. - Every balance number lives in
apps/<game-id>/src/rules/<game-id>-tuning.ts(real-time games:src/sim/<game-id>-tuning.ts, a'worklet';module): documented knobs plus a per-difficulty table read throughknobsFor; the rules contain no other balance numbers. Why: one place to tune, and a diff shows every balance change. - Difficulty is one scale, whole numbers 0..100, never a table index.
knobsFor(d)returns the endless row at 100 (ENDLESS_DIFFICULTY, goal 0, never won) and otherwise the rowrowFor(d, rows)picks, with areduceover the table; the grid samples the lower bound of each row ([0, 25, 50, 75]), and an endless mode gets its ownendlessblock at 100, never a step of the curve. Why: levels (0..99), the daily (40-50) and the save all use this scale; a 0..3 index makes every level above 3 play the hardest row. - Balance is a contract in
test/sims/<game-id>/balance-bands.json: the bands hold, the difficulty curve moves monotonically byminStep, the skill gap holds, the first payoff comes early, the twist happens, and the endless run is never won and stays inside its own bands. Never widen a band, cut seeds, change seeds or tune the bot to go green. Why: bands are the design record; moving them hides the problem instead of fixing the game. - The fun-within-seconds kill test: on the easiest level the greedy bot reaches the first payoff within 1-3 moves (seconds for real-time games:
runSimBotwithpayoffStepTicks: 120) in at least 90 % of runs, and the twist fires at least once per run. If even the lookahead bot cannot, stop and report to the owner. Why: the prototype toys showed that ideas fail here structurally (Snare Snake caught nothing in 13 foreseen moves; Scrap Shove's twist came 0.25 times per game). - A report counts only for the code it measured: its fingerprint covers the game's
rules/,levels/(without the generatedpack-*.json),sim/andtesting/folders, the sim file and thepackages/game-kit/srcfiles they import (the sim's import closure), and game logic imports nothing outside them; rerunnpm run test:simafter any change there (a game-kit file nothing there imports, and the level packs generated after the sims, leave the report fresh). Why: stale numbers approve code that no longer exists. - Change the game, not the player: improve a bot's evaluation only to match reasonable human play, never to reach a band. Why: a bot tuned to the bands measures nothing.
- The owner's play-test is the final judge, and it never blocks: bands stay
"proposed"until the owner has played and agreed, then become"approved". The play-test is the owner's personal step (owner decision O6, 2026-09-30): every slice and release report lists it under "Owner steps (not blocking)", andcheck-balance.mjs --releaseprints unapproved bands as anOWNER STEP (not blocking)line, not a problem. Why: bots measure pace, not joy, and the owner's feel wins whenever it comes; nothing waits for it.
Workflow
- Pick the job. First harness setup: step 2. A game's bots and sims: steps 3-8. Retuning: steps 6-8. Judging a new idea early: read references/fun-and-kill-test.md, then steps 3-5 at the easiest difficulty only. Always finish with steps 9-10.
- Harness (once per repo). Read references/bots-and-sims.md. Run
node ${CLAUDE_SKILL_DIR}/scripts/check-balance.mjs .; for everyharness-missing,harness-outdatedorsim-configline copy the file fromtemplates/verbatim (packages/game-kit/src/testing/*with tests,packages/tooling/src/sims/write-sim-report.tswith its test,jest.sim.config.js), add"test:sim": "jest --ci --config jest.sim.config.js"to the rootpackage.json, and make the unit project ofjest.config.jsignore\\.sim\\.test\\.. They needpackages/game-kit/src/rng/sfc32.tsandcontract/game-engine.ts(game-rules-engine). Runnpx jest packages/game-kit/src/testing --ci --selectProjects unit(paths first:--selectProjectsswallows every following word as a project name and would run the whole suite). - Tuning file. Read references/tuning-playbook.md first. The template
templates/apps/__GAME_ID__/src/rules/__GAME_ID__-tuning.ts(with its test) is the template game's, Tap Flip's, and the game-rules-engine templates already ship it; copy it if the game does not have it yet. Rename the knobs to the game's (document each per-difficulty knob once, onDifficultyKnobs), move every balance number of the rules into it (hearts, rates, damage, goals, opening layout counts, points) and read them throughTUNINGandknobsFor(difficulty). Keep therowFor+reducelookup. A game with an endless mode adds the endless row (goal 0) and returns it first forisEndlessDifficulty(difficulty): examples/line-siege/apps/line-siege/src/rules/line-siege-tuning.ts is the full model. - Bot hooks, test-first. Copy
templates/apps/__GAME_ID__/src/testing/__GAME_ID__-bot.tsand its test (Tap Flip's hooks; replace__GAME_ID__,__GAME_PASCAL__and__GAME_CAMEL__, the camelCase id) and rewrite them for the game:evaluate<Game>(how a reasonable person values a position),scoreOf<Game>(the number the HUD and the result show:state.scorefor a game with points),tag<Game>Event(payoff and twist) and the greedy<game>Bot, imitating examples/line-siege/apps/line-siege/src/testing/line-siege-bot.ts and its test, then setbot: <game>Botin the game's testing spec (<game-id>-testing.ts, replacing its starter bot). When the levels will be proven by the greedy bot (a witness), put the evaluation inrules/<game-id>-evaluate.tsand re-export it from the bot file:levels/may not importtesting/. Keepoutcomecheap (an early-exit move check). A real-time game instead exports itsSimBotGamehooks and theidle,wanderanddodgecommand policies, imitating examples/halo-drift/apps/halo-drift/src/testing/halo-drift-bot.ts and its test. - Sim and bands. Copy
templates/test/sims/__GAME_ID__/totest/sims/<game-id>/, replace__GAME_ID__and__GAME_PASCAL__, point the four engine imports at the game's files, set the grid to the lower bound of each tuning row ([0, 25, 50, 75]for four rows; the template's[0, 34, 67]are Tap Flip's three), and for a game with an endless mode replace"endless": nullwith its block (policy, difficulty 100, bands onmedianMoves,medianScore,twistPerRun; balance-contract.md, "Endless mode"). Runnpx eslint --fixandnpx prettier --writeon it, thennpx jest test/sims/<game-id> --ci --config jest.sim.config.js(the path first, as with every jest command). The first run writes the report even if the bands fail. Real-time games play throughrunSimBotinstead oftraceBot: imitate examples/halo-drift/ ("Real-time" in bots-and-sims.md). - Read and tune. Read references/balance-contract.md. Fix what is broken first (cap hits, replay differences, no early payoff, no twist), then tune one knob at a time with the tuning loop and the symptom table in the tuning playbook, rerunning the sim after each change and reading
lossReasons. - Write the bands around the tuned numbers with a margin and a
whyper band, and the story innotesin plain words; keep"status": "proposed". - Kill test verdict. If the first payoff or the twist cannot be reached after reasonable tuning, stop and tell the owner (fun-and-kill-test.md, "When a game fails"). Do not polish a game that fails it.
- Run the check (run, fix, rerun until
RESULT: PASS):npm run test:sim, thennode ${CLAUDE_SKILL_DIR}/scripts/check-balance.mjs .(add--game <game-id>for one game). EveryFAILline names the file, the rule and the fix. - Report and hand over. Put the plain-language "Bots" line per difficulty (numbers from the report) in the evidence report, and list "Play-test <game> on a phone" under "Owner steps (not blocking)" until the owner has done it. When they agree, set
"status": "approved"and"approvedOn". Before a release run the check with--release: it passes with proposed bands and prints theOWNER STEP (not blocking)line to copy into the release report. The balance sims pass before level-generation-and-solvers generates the packs; a tuning change after the packs exist regenerates them in the same commit with aGate-Change:trailer.
Definition of done
- [ ] The harness files and their unit tests are in place and green;
npm run test:simexists and never runs insidenpm test. - [ ] Each game has a documented tuning file on the 0..100 scale (
rowFor+reduce, an endless row only with an endless mode) with its test, bot hooks with tests,test/sims/<game-id>/balance.sim.test.tsandbalance-bands.jsonwithnotes(grid 0..99, the endless block when the game has one). - [ ]
npm run test:simpasses: no cap hits, identical replays, every band, the curve, the skill gap, the first payoff and the twist; one sim file runs in about 60 s or less. - [ ]
reports/sim/<game-id>.jsonis fresh (fingerprint matches) and its numbers are in the evidence report in plain words. - [ ] For a release: the check passes with
--release; itsOWNER STEP (not blocking)line, when the bands are still"proposed", is copied into the report's "Owner steps (not blocking)" list (the owner's play-test never blocks, O6). - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-balance.mjs .printsRESULT: PASS
Anti-patterns
- Balancing by playing a few games by hand, or by one seed. Balance is a distribution; run 100+ seeds per cell and read the spread (
p10Moves,p90Moves,lossReasons). - Loosening a band, lowering
minStepor trimming seeds to get green. Change a knob in the tuning file, or bring the owner a design question. - A smarter bot to rescue a failing curve. If random ≈ greedy, the game's choices are weak; fix the rules.
- Balance numbers scattered through the rules (
hearts: 3increate.ts, a literal8for damage). Move them into the tuning file with a comment. - A sim that needs React Native, a clock or
Math.random. The rules must be pure and seeded; fix the rules, not the sim config. - Trusting a report after changing the rules. The fingerprint makes it stale; rerun
npm run test:sim. - Tuning the whole difficulty table at once. Change one knob, rerun, compare the two reports; otherwise nothing is learned.
- Difficulty as a table index, or 100 in the greedy grid. Every level above 3 then plays the hardest row, and the endless run's win rate of 0 becomes a fake last step of the curve; use
rowForand theendlessblock. table[index] ?? table[0]. The fallback can never run, so the copied file fails the per-file branch threshold; pick the row with areduce.- Polishing a game that fails the kill test. Art and sound cannot fix a first payoff that never comes; stop and ask the owner.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/bots-and-sims.md | The harness, what a bot needs, the three players, bot hooks, payoff and twist tags, the sim file, real-time games, determinism, speed, debugging, reporting | Workflow steps 2, 4 and 5 |
| references/balance-contract.md | The report fields, the fingerprint, the bands file, setting bands from the first run, owner approval, how the check judges | Workflow steps 6, 7 and 10 |
| references/tuning-playbook.md | The tuning file, knob families, the difficulty curve, the tuning loop, symptoms and what to turn, the Line Siege tuning log | Workflow steps 3 and 6 |
| references/fun-and-kill-test.md | Why seconds matter, the kill test, what the toys revealed, openings built for an early payoff, payoff/twist events per game, when to stop | Workflow steps 1 and 8 |
templates/packages/game-kit/src/testing/ |
play-bot (the shared minimal loop), trace-bot, bot-policies, sim-stats, balance-bands, parse-balance-bands, run-sim-bot, each of the last six with its test |
Step 2 (copy verbatim; keep an existing identical play-bot.ts) |
| templates/packages/tooling/src/sims/write-sim-report.ts | rulesFingerprint over the sim's import closure (fingerprintFiles) and writeSimReport (Node side) |
Step 2 |
| templates/packages/tooling/src/sims/write-sim-report.test.ts | Its test: an unrelated game-kit file or the generated level packs leave the fingerprint unchanged; an imported kit file (even through another kit file), a rules file or the level plan changes it | Step 2 |
| templates/jest.sim.config.js | Plain-Node Jest config for *.sim.test.ts (synced from the library; do not edit here) |
Step 2 |
| templates/test/sims/GAME_ID/balance.sim.test.ts | A game's sim: plays the grid, writes the report, asserts the bands | Step 5 |
| templates/test/sims/GAME_ID/balance-bands.json | The template game's balance contract (Tap Flip's measured bands on its three rows, endless: null) |
Steps 5 and 7 |
| templates/apps/GAME_ID/src/rules/GAME_ID-tuning.ts | Tap Flip's tuning (synced from the library, the same file the rules templates ship): side documented on DifficultyKnobs in three rows picked with rowFor and a reduce, scalar knobs, knobsFor, pressesFor |
Step 3 |
| templates/apps/GAME_ID/src/rules/GAME_ID-tuning.test.ts | Its test: every row's band bounds, clamping, the press ramp (100 % branches) | Step 3 |
| templates/apps/GAME_ID/src/testing/GAME_ID-bot.ts | Tap Flip's bot hooks: evaluate (fewer lit cells, a board one press from dark valued as a person sees it), scoreOf, tag (payoff: board cleared; twist: a press that flips its neighbours), the greedy bot |
Step 4 |
| templates/apps/GAME_ID/src/testing/GAME_ID-bot.test.ts | Its test | Step 4 |
examples/line-siege/ |
Line Siege v1, synced from the library (never edit here): the whole rules folder (with the tuning file, its endless row and line-siege-evaluate.ts), the bot hooks and example states (+ tests) under apps/line-siege/src/, the sim and bands with an endless block under test/sims/line-siege/, and the real report under reports/sim/ |
Steps 3-7, as the model |
examples/halo-drift/ |
The real-time model: a reduced Halo Drift fixed-step sim and 'worklet' tuning file (+ replay tests), SimBotGame hooks and the idle/wander/dodge command policies (+ tests), a runSimBot sim, bands in ticks and seconds, and its real report |
Steps 3-7 for a real-time game |
scripts/check-balance.mjs |
Checks the sim config, harness, sims, bot hooks, tuning file, fingerprint scope and bands, and judges each report (fresh, for this game, complete, no cap hits, bands, curve, skill gap, first payoff, twist); --release prints unapproved bands as an OWNER STEP (not blocking) line |
Steps 2, 9 and 10 |
scripts/selftest.mjs |
Proves the checker passes the good fixtures and catches every planted bug | After changing the checker, a template or the example |
scripts/lib/balance.mjs |
JavaScript port of the fingerprint and the bands rules | When changing the checker |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
assets/shared.json |
Declares the shared files this skill copies in (check-lib, the sim Jest config, the Line Siege example) | When adding a shared file |
tests/build-fixtures.mjs |
Rebuilds tests/fixtures/ from the templates and both examples plus one planted bug per case |
After changing a template, an example or the checker |
tests/fixtures/ |
Good repos (a turn-based and a real-time game) and planted-bad copies: the normal suite, the -wrapped suite (a Prettier-wrapped difficulty table must pass), the --release suite (pass-proposed: proposed bands pass and print the owner step; bad-approved-without-date) the -kit-growth suite (game-kit files the sims never import leave the report fresh) and the -packs suite (pass-packs-after-sims: level packs generated after the sims leave the report fresh; a rules or level-plan change after them makes it stale) |
When adding a rule |
Related skills
game-rules-engine- the engine contract, events, the determinism policy and the sfc32 PRNG the bots drive.level-generation-and-solvers- solvers, par, stars, packs and proving every shipped level winnable.realtime-game-loop- the fixed-step sims thatrunSimBotplays headless.new-game-scaffold- where a new game's tuning file, bot hooks and sim start.quality-gates-test:siminsideverifyand the gated paths.git-commits-and-reporting- the plain-language evidence report the bot numbers go into.game-audio-and-haptics- sounds and haptics for the payoff moments the sims find.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).