섯다: 3장 섯다를 한게임 방식으로 — 2장 받고 공개패 1장 고르기 → 1구 베팅 → 1장 더 → 2구 베팅 → 3장 중 2장 골라 승부

- 엔진: 공개패 단계(open)·액션, 공개패는 다른 사람 화면에 앞면, 최종 선택은 마지막 베팅 뒤(threePick=end), 옵션 threeOpen/threePick으로 예전 흐름 유지, 상태 v3(진행 중인 방은 예전 흐름)
- 컴퓨터: 광·4/7/9 열끗은 숨기고 평범한 패 공개, 상대 공개패를 패 범위에 반영
- 화면: 공개패 고르기 상자, 자리 표시·도움말·규칙·옵션
- 2장 섯다 기본(2장 한 번에)은 한게임 안내 그대로, 1장씩(전통)은 옵션
- E2E seotda3, 문서 §2·§5.2·§8

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-13 22:22:06 +09:00
parent 9564e4604c
commit 1cf556b431
10 changed files with 333 additions and 41 deletions

View File

@@ -1519,6 +1519,41 @@ const PLANS: Record<string, Plan> = {
await pages[1]!.screenshot({ path: join(SHOTS, 'seotda-result-phone.png'), fullPage: true });
},
},
seotda3: {
// 3장 섯다 (한게임): 2장 → 각자 공개패 1장 고르기(다른 사람 화면에 앞면) → 1구 베팅 → 1장 더 → 2구 베팅 →
// 3장 중 2장 고르기 → 공개. Everyone opens, checks/calls through both rounds and picks the recommended pair.
game: 'seotda',
players: 3,
lobby: async (host) => {
await host.getByRole('button', { name: /^3장 섯다/ }).first().click();
},
drive: async (pages) => {
for (const p of pages) {
const box = p.getByRole('group', { name: '공개패 고르기' });
await box.waitFor({ timeout: 10_000 });
await box.locator('button, [role="button"]').first().click();
await p.getByRole('button', { name: /패 공개하기$/ }).click();
}
// The others now see one face-up card of each player.
await pages[0]!.waitForFunction(() => document.querySelectorAll('.sd-seat .sd-cards img, .sd-seat .sd-cards svg').length > 0, null, { timeout: 5000 }).catch(() => {});
await pages[0]!.screenshot({ path: join(SHOTS, 'seotda3-open-pc.png') });
for (let n = 0; n < 40 && !(await pages[0]!.getByRole('button', { name: /정하기$|두 장을 고르세요/ }).count()) && !(await pages[0]!.getByText('이번 판 결과').count()); n++) {
// Nobody raises, so every action is a 체크 (콜 stays disabled and would hide it from pressActions).
await pressActions(pages, /^체크/, 1).catch(() => {});
}
await pages[0]!.screenshot({ path: join(SHOTS, 'seotda3-choose-pc.png') });
if (await pages[0]!.getByText('자리 비움').count()) throw new Error('someone timed out (the plan should act for everybody)');
for (const p of pages) {
const rec = p.getByRole('button', { name: /\(추천\)$/ });
if (await rec.count()) {
await rec.first().click();
await p.getByRole('button', { name: /정하기$/ }).click();
}
}
await finishHand(pages);
await pages[1]!.screenshot({ path: join(SHOTS, 'seotda3-result-phone.png'), fullPage: true });
},
},
poker: {
// 3 players, default 7포커: 초이스 (discard 1st card, open 2nd), then everyone checks 4 streets → showdown.
players: 3,