섯다: 3장 섯다 방의 재경기(구사·멍텅구리구사·같은 족보)는 2장 섯다로(2장 한 번에, 공개패 없이 베팅 1번)

hand.three를 (재)경기마다 두고 view.threeCard로 알림. 값이 없는 예전 상태는 방의 cardMode를 따름.
컴퓨터 판단·도움말·규칙 화면·문서도 맞춤, 엔진 테스트 2개 추가.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-17 00:58:50 +09:00
parent 3125008895
commit 81b257df74
7 changed files with 72 additions and 13 deletions

View File

@@ -21,6 +21,7 @@ function who(players: Record<string, PublicUser>, id: string): string {
/** Which betting round this is, in plain words. */
function roundText(v: SeotdaView): string {
const o = v.options;
if (o.cardMode === 'three' && !v.threeCard) return '재경기는 2장 섯다로 해요. 2장을 한 번에 받고 한 번만 베팅한 뒤 남은 사람끼리 패를 공개해요.';
if (o.cardMode === 'three')
return v.street === 0
? '2장을 받고 하는 첫 베팅이에요. 끝나면 1장을 더 받아 3장 중 쓸 2장을 골라요.'
@@ -42,7 +43,7 @@ function handLine(v: SeotdaView, seat: SeotdaSeatView): string {
function rematchLine(v: SeotdaView): string {
if (v.rematchNo === 0 || !v.rematchReason) return '';
return `재경기 ${v.rematchNo}회차(${REMATCH_KO[v.rematchReason]})예요. 판돈은 그대로 두고, 기본금은 다시 내지 않아요.`;
return `재경기 ${v.rematchNo}회차(${REMATCH_KO[v.rematchReason]})예요. 판돈은 그대로 두고, 기본금은 다시 내지 않아요.${v.options.cardMode === 'three' ? ' 재경기는 2장 섯다로 해요(공개패 없음).' : ''}`;
}
function resultLine(v: SeotdaView, players: Record<string, PublicUser>): string {
@@ -65,7 +66,7 @@ function resultLine(v: SeotdaView, players: Record<string, PublicUser>): string
function waitingLine(v: SeotdaView, players: Record<string, PublicUser>): string {
if (v.handPhase === 'betting') {
const oneRound = v.options.cardMode === 'two' && v.options.dealMode === 'oneRound';
const oneRound = !v.threeCard && (v.options.cardMode === 'three' || v.options.dealMode === 'oneRound');
const round = oneRound ? '베팅' : v.street === 0 ? '첫 베팅' : '마지막 베팅';
return v.toAct ? `${who(players, v.toAct)} 차례예요(${round}).` : '카드를 나눠 주는 중이에요.';
}