섯다·포커: 다른 사람이 모두 죽고 혼자 남으면 카드를 공개할지 고르기(카드 공개/공개 안 함, 시간 초과·나감·기본은 공개 안 함, 공개하면 모두에게 패와 족보를 뒤집어 보여 주고 기록에 남김, 컴퓨터도 센 패면 가끔 공개)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-14 04:27:55 +09:00
parent 73b929739d
commit 966bc3c5ef
20 changed files with 529 additions and 48 deletions

View File

@@ -96,10 +96,19 @@ test('섯다: 모두 다이 → 판 결과와 [다음 판으로], 다이한 사
state = applyAction('seotda', state, first, { type: 'die' });
expect(helpNow(view(state, first), first, users)).toContain('이번 판은 다이했어요');
state = applyAction('seotda', state, view(state, null).toAct, { type: 'die' });
expect(view(state, null).handPhase).toBe('handEnd');
const t = helpNow(view(state, 'A'), 'A', users);
expect(view(state, null).handPhase).toBe('reveal');
const winner = view(state, null).reveal.by as string;
const loser = ['A', 'B', 'C'].find((p) => p !== winner)!;
expect(helpNow(view(state, winner), winner, users)).toContain('[카드 공개]');
expect(helpNow(view(state, loser), loser, users)).toContain('카드 공개 여부를 고르는 중');
const hidden = applyAction('seotda', state, winner, { type: 'reveal', show: false });
expect(view(hidden, null).handPhase).toBe('handEnd');
const t = helpNow(view(hidden, 'A'), 'A', users);
expect(t).toContain('모두 다이해서');
expect(t).toContain('패는 공개하지 않았어요');
expect(t).toContain('[다음 판으로]');
const shown = applyAction('seotda', state, winner, { type: 'reveal', show: true });
expect(helpNow(view(shown, loser), loser, users)).toContain('패를 공개했어요(');
});
test('섯다: 시작 금액 다시 받기 / 구사 재경기 참가 / 재경기 표시', () => {