From 0a587a8b98695bf8a3392827c736fa58b370bbab Mon Sep 17 00:00:00 2001 From: EJClaw Date: Wed, 7 Oct 2026 17:21:43 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8:=20=EC=95=BC?= =?UTF-8?q?=EC=B6=94=C2=B7=EC=98=A4=EB=8D=B8=EB=A1=9C=20=EB=AC=B4=EC=9E=91?= =?UTF-8?q?=EC=9C=84=20=EB=8C=80=EA=B5=AD=EC=9D=98=20=ED=95=9C=20=EC=88=98?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC=20=EC=8B=9C=EA=B0=84=20=EC=83=81=ED=95=9C?= =?UTF-8?q?=205ms=E2=86=9230ms=20(=EB=B3=91=EB=A0=AC=20=EC=8B=A4=ED=96=89?= =?UTF-8?q?=20=EC=A4=91=20=EB=B6=80=ED=95=98=EB=A1=9C=20=EA=B0=80=EB=81=94?= =?UTF-8?q?=20=EC=8B=A4=ED=8C=A8,=20=EB=8B=A4=EB=A5=B8=20=EA=B2=8C?= =?UTF-8?q?=EC=9E=84=EA=B3=BC=20=EA=B0=99=EC=9D=80=20=EA=B0=92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- packages/games/src/othello/othello.test.ts | 4 ++-- packages/games/src/yacht/yacht.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/games/src/othello/othello.test.ts b/packages/games/src/othello/othello.test.ts index 1b430fe..ddb1206 100644 --- a/packages/games/src/othello/othello.test.ts +++ b/packages/games/src/othello/othello.test.ts @@ -358,8 +358,8 @@ describe('views, replay, playouts', () => { throw new Error('disc count invariant broken'); } }; - const a = randomPlayout(othello, { players: ['A', 'B'], options, seed: seedN(i), invariant, maxSteps: 200 }); - const b = randomPlayout(othello, { players: ['A', 'B'], options, seed: seedN(i), maxSteps: 200 }); + const a = randomPlayout(othello, { players: ['A', 'B'], options, seed: seedN(i), invariant, maxSteps: 200, maxApplyMs: 30 }); + const b = randomPlayout(othello, { players: ['A', 'B'], options, seed: seedN(i), maxSteps: 200, maxApplyMs: 30 }); expect(a.finished).toBe(true); expect(JSON.stringify(a.finalState)).toBe(JSON.stringify(b.finalState)); expect(othello.result(a.finalState as OthelloState)).not.toBeNull(); diff --git a/packages/games/src/yacht/yacht.test.ts b/packages/games/src/yacht/yacht.test.ts index e1af267..55d8ce9 100644 --- a/packages/games/src/yacht/yacht.test.ts +++ b/packages/games/src/yacht/yacht.test.ts @@ -530,12 +530,12 @@ describe('random playouts (docs/09 ยง7)', () => { fullHouseAllowsYacht: i % 2 === 0, yahtzeeJoker: i % 6 === 0 ? 'free' : 'forced', }); - const a = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, invariant: checker() }); + const a = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, invariant: checker(), maxApplyMs: 30 }); if (!a.finished) throw new Error(`seed ${i} did not finish`); const r = yacht.result(a.finalState as YachtState)!; expect(r.ranking.flat().sort()).toEqual([...players].sort()); if (i % 25 === 1) { - const b = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000 }); + const b = randomPlayout(yacht, { players, options, seed: seedN(i), maxSteps: 20_000, maxApplyMs: 30 }); expect(JSON.stringify(b.finalState)).toBe(JSON.stringify(a.finalState)); } }