Wait for the host to press "next hand" on every table
Previously only the review CPU table paused after each hand; cash-only, friends and CPU tables moved on automatically after a short delay. Now every table keeps the result on screen until the host presses 次のハンドへ, and the next hand is dealt right away. If the host has left, the new host presses it; with no human seated the table still advances on its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
22ee28ba03
commit
f64c502086
8 files changed
+103
-31
No files matched your search
+3
-3
@@ -342,7 +342,7 @@ test('レビュー付きCPU戦: 作成者だけが座れ、ハンドごとにレ
|
||||
assert.ok(t.hand.finished);
|
||||
t.tick((now += 5000));
|
||||
const v = t.publicState(T(0), new Set([T(0)]));
|
||||
assert.ok(v.review && v.review.last && v.review.waiting);
|
||||
assert.ok(v.review && v.review.last && v.awaitingNext);
|
||||
assert.equal(v.review.hands, 1);
|
||||
assert.equal(t.publicState(T(5), new Set()).review, null); // 作成者以外には送らない
|
||||
|
||||
@@ -350,8 +350,8 @@ test('レビュー付きCPU戦: 作成者だけが座れ、ハンドごとにレ
|
||||
const number = t.hand.number;
|
||||
for (let k = 0; k < 10; k++) t.tick((now += 60000));
|
||||
assert.equal(t.hand.number, number);
|
||||
assert.equal(t.reviewNext(T(5)), '操作できません');
|
||||
assert.equal(t.reviewNext(T(0)), null);
|
||||
assert.equal(t.nextHand(T(5), now), 'ホストのみ操作できます');
|
||||
assert.equal(t.nextHand(T(0), now), null);
|
||||
for (let k = 0; k < 10 && t.hand.number === number; k++) t.tick((now += 5000));
|
||||
assert.equal(t.hand.number, number + 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user