3장 섯다를 한게임처럼: 1구 선 하프·다이(1구 체크 없음), 예상족보, 패쪼기

- 엔진: 한게임 흐름(공개패 켬·마지막에 고르기)의 1구 첫 베팅(선)은 하프·다이만, 1구에는 체크 없음(시간 초과는 다이)
- view.myReach: 다음 패로 만들 수 있는 족보(공개 정보만: 덱 구성 − 내 패 − 공개패)
- 족보판 [예상족보 켬/끔]: 못 만드는 족보는 흐리게
- 패쪼기: 새로 받은 패는 뒷면, 밀어 올리면 아래부터 보이고 누르면 바로 뒤집힘, 6초 뒤 자동. 뒤집기 전에는 족보·조합을 숨김
- 도움말·규칙 화면·문서, 엔진 테스트 4개, e2e(1구 하프→콜, 패쪼기 드래그) 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-17 01:16:04 +09:00
parent 9ec756bf38
commit c10fac8e82
9 changed files with 229 additions and 25 deletions

View File

@@ -75,7 +75,15 @@ test('섯다: 3장 섯다 공개패 → 베팅 2번 → 고르기 단계(한게
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' });
// 1구 (한게임): 선은 하프·다이만, 그다음은 체크 없이 콜. 2구는 체크.
const dealer = view(state, null).toAct as string;
expect(helpNow(view(state, dealer), dealer, users)).toContain('선이 [하프]나 [다이]만');
while (view(state, null).handPhase === 'betting') {
const who = view(state, null).toAct as string;
const legal = view(state, who).legal.map((l: { type: string }) => l.type);
const t = ['check', 'call', 'half'].find((x) => legal.includes(x))!;
state = applyAction('seotda', state, who, { type: t });
}
expect(view(state, null).handPhase).toBe('choose');
expect(view(state, null).street).toBe(1);
expect(helpNow(view(state, null), null, users)).toContain('패를 공개해요');