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

@@ -799,7 +799,7 @@ export function SeotdaBoard({ view: v, me, players, act, pending, deadline }: Bo
if (v.foldWin) winners.add(v.foldWin.winner);
for (const p of v.showdown?.pots ?? []) if (p.type !== 'rematch') for (const w of p.winners) winners.add(w);
}
const cardW = phone ? (v.options.cardMode === 'three' ? 24 : 28) : v.options.cardMode === 'three' ? 38 : 46;
const cardW = phone ? (v.threeCard ? 24 : 28) : v.threeCard ? 38 : 46;
const cols = phone ? (others.length > 4 ? 3 : 2) : 0;
const othersEls: ReactNode = others.map(({ s, rel }) => (
<Seat

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}).` : '카드를 나눠 주는 중이에요.';
}

View File

@@ -362,6 +362,7 @@ function Rules({ options }: { options?: SeotdaOptions }) {
<JokboTable options={o ?? ({ gwangTtaeng: 'all', ttaengjabi: 'loose', amhaeng: true, gusa: true, mungGusa: 'upTo9', hints: false } as SeotdaOptions)} />
<p>
<strong>재경기</strong>: 구사나 같은 족보{o?.tieRule === 'split' ? '(이 방은 같은 족보면 나눠 가져요)' : ''}로 재경기가 되면 판돈은 그대로 두고 남은 사람끼리 새로 패를 받아요. 기본금은 다시 내지 않아요.
{o?.cardMode === 'three' ? ' 3장 섯다 방이어도 재경기는 2장 섯다로 해요: 2장을 한 번에 받고(공개패 없음) 한 번만 베팅한 뒤 공개해요.' : ''}
{o && o.rejoinCost !== 'none' ? ` 구사 재경기 때 다이한 사람은 판돈의 ${o.rejoinCost === 'half' ? '절반' : '전부'}만큼 내고 다시 들어올 수 있어요.` : ''} 한 판에서 재경기가{' '}
{o?.maxRematches ?? 3}번을 넘으면 나눠 가져요.
</p>