섯다: 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

@@ -68,10 +68,17 @@ test('섯다: 2장째를 받으면 지금 내 족보와 마지막 베팅, 족보
expect(helpNow(view(off, p), p, users)).toContain("'족보 도우미'를 보고");
});
test('섯다: 3장 섯다 고르기 단계', () => {
test('섯다: 3장 섯다 공개패 → 베팅 2번 → 고르기 단계(한게임)', () => {
let { state } = setupGame('seotda', 3, { cardMode: 'three' });
expect(view(state, null).handPhase).toBe('open');
expect(helpNow(view(state, 'A'), 'A', users)).toContain('공개하기');
expect(helpNow(view(state, null), null, users)).toContain('공개패');
for (const p of ['A', 'B', 'C']) state = applyAction('seotda', state, p, { type: 'open', cardId: view(state, p).seats.find((x) => x.id === p).cards[0].id });
expect(helpNow(view(state, null), null, users)).not.toContain('공개패를 고르는 중');
while (view(state, null).handPhase === 'betting') state = applyAction('seotda', state, view(state, null).toAct, { type: 'check' });
expect(view(state, null).handPhase).toBe('choose');
expect(view(state, null).street).toBe(1);
expect(helpNow(view(state, null), null, users)).toContain('패를 공개해요');
const t = helpNow(view(state, 'A'), 'A', users);
expect(t).toContain('2장을 눌러 고르면');
expect(t).toContain('정하기');