From 4cb71d8cbe0095afb68e8824ea43f004f1cdcaa4 Mon Sep 17 00:00:00 2001 From: EJClaw Date: Wed, 7 Oct 2026 15:34:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=84=ED=98=91=20=EA=B0=80=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=20=EC=A0=9C=EA=B1=B0:=20=EC=98=A4=EB=AA=A9=20?= =?UTF-8?q?=EC=9C=84=ED=97=98=20=EC=9E=90=EB=A6=AC,=20=EC=B2=B4=EC=8A=A4?= =?UTF-8?q?=C2=B7=EC=9E=A5=EA=B8=B0=20=EC=9C=84=ED=97=98=20=EA=B8=B0?= =?UTF-8?q?=EB=AC=BC=20=EA=B2=BD=EA=B3=A0,=20=EB=B0=94=EB=91=91=20?= =?UTF-8?q?=EB=8B=A8=EC=88=98=20=EA=B2=BD=EA=B3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 오목: 상대 3·4를 막으라는 빨간 동그라미·노란 점선(hints 옵션, view.hints, threatHints) 삭제 - 체스·장기: hints 'movesAndThreats'(주황 점선 위험 기물) 삭제 → 'off' / 'moves'만 남김 - 바둑: atariWarning 옵션과 atariWarnings(깜빡이는 단수 돌) 삭제 - 도움말 문구·설정 화면·docs 정리, 테스트는 "어떤 view에도 위협 표시 없음"으로 바꿈 - 갈 수 있는 칸 점, 금수 ×, 둘 수 없는 점 같은 규칙 표시는 그대로 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/games/baduk/help.ts | 1 - apps/web/src/games/baduk/index.tsx | 10 +--------- apps/web/src/games/chess/help.ts | 1 - apps/web/src/games/chess/index.tsx | 6 +----- apps/web/src/games/janggi/help.ts | 1 - apps/web/src/games/janggi/index.tsx | 7 +------ apps/web/src/games/omok/help.ts | 2 -- apps/web/src/games/omok/index.tsx | 5 +---- docs/games/baduk.md | 5 ++--- docs/games/chess.md | 8 ++++---- docs/games/janggi.md | 4 ++-- docs/games/omok.md | 7 +++---- packages/games/src/baduk/baduk.test.ts | 11 +++-------- packages/games/src/baduk/board.ts | 6 ------ packages/games/src/baduk/index.ts | 9 ++------- packages/games/src/chess/chess.test.ts | 18 ++++++++--------- packages/games/src/chess/index.ts | 8 ++------ packages/games/src/chess/rules.ts | 9 --------- packages/games/src/janggi/index.ts | 15 ++------------ packages/games/src/janggi/janggi.test.ts | 9 +++++---- packages/games/src/omok/index.ts | 25 ------------------------ packages/games/src/omok/omok.test.ts | 8 +++----- 22 files changed, 40 insertions(+), 135 deletions(-) diff --git a/apps/web/src/games/baduk/help.ts b/apps/web/src/games/baduk/help.ts index 471f32e..bf4d2a3 100644 --- a/apps/web/src/games/baduk/help.ts +++ b/apps/web/src/games/baduk/help.ts @@ -69,7 +69,6 @@ export function helpNow(v: BadukView, _me: string | null, players: Record p.reason !== 'suicide')) lines.push('빨간 네모 자리는 패(바로 되따내기 금지)나 같은 모양 반복 때문에 지금은 둘 수 없어요. 다른 곳에 한 수 둔 뒤에 다시 봐요.'); lines.push(caps); diff --git a/apps/web/src/games/baduk/index.tsx b/apps/web/src/games/baduk/index.tsx index ef69bec..c54632d 100644 --- a/apps/web/src/games/baduk/index.tsx +++ b/apps/web/src/games/baduk/index.tsx @@ -279,12 +279,6 @@ function BadukBoard({ view: v, act, pending, tapConfirm }: BoardProps {v.lastMove && lastColor && ( )} - {myTurn && - v.atariWarnings.map((p) => ( - - - - ))} {ghost && v.myColor && } {hoverMark && } {(myTurn || marking) && kbd && } @@ -639,7 +633,6 @@ function statusText(v: BadukView, _me: string | null, players: Record 0) return '상대가 패스했어요. 끝내려면 패스하세요'; - if (v.atariWarnings.length) return `내 차례예요 (${COLOR_KO[v.turn]}). 단수에 몰린 돌이 있어요!`; return `내 차례예요 (${COLOR_KO[v.turn]}). 둘 곳을 눌러 주세요`; } const nick = players[v.players[v.turn]]?.nickname ?? COLOR_KO[v.turn]; @@ -784,8 +777,7 @@ function Options({ value: o, onChange }: OptionsProps) { set({ undo })} />
- 도움 표시 - set({ atariWarning: k === 'on' })} /> + 무승부 제안 set({ drawOffer: k === 'on' })} />
diff --git a/apps/web/src/games/chess/help.ts b/apps/web/src/games/chess/help.ts index 21e7a23..adf0625 100644 --- a/apps/web/src/games/chess/help.ts +++ b/apps/web/src/games/chess/help.ts @@ -43,7 +43,6 @@ export function helpNow(v: ChessView, _me: string | null, players: Record m.promotion)) lines.push(v.autoQueen ? '폰을 끝 줄로 보내면 자동으로 퀸이 돼요(승진).' : '폰을 끝 줄로 보내면 퀸·룩·비숍·나이트 중 무엇으로 바꿀지 고르는 창이 떠요(승진). 보통은 퀸이에요.'); if (legal.some((m) => m.castle)) lines.push('지금 캐슬링을 할 수 있어요. 킹을 누르면 캐슬링할 칸도 표시돼요.'); - if (v.threatened?.length) lines.push('주황 점선 네모가 쳐진 내 기물은 지켜 주는 기물 없이 공격받고 있어요. 조심하세요.'); if (v.drawMode === 'fide' && v.claimable) lines.push(`[⚖ 무승부 주장]을 누르면 상대 동의 없이 바로 비길 수 있어요(${v.claimable === 'threefold' ? '같은 국면 3번' : '50수 동안 폰 이동·잡기 없음'}).`); if (mat) lines.push(mat); diff --git a/apps/web/src/games/chess/index.tsx b/apps/web/src/games/chess/index.tsx index 333928a..8c08097 100644 --- a/apps/web/src/games/chess/index.tsx +++ b/apps/web/src/games/chess/index.tsx @@ -328,10 +328,6 @@ function ChessBoard({ view: v, act, pending }: BoardProps) { {lastFrom && } {lastTo && } {selected && } - {v.threatened?.map((sq) => { - const c = cell(sq); - return ; - })} {check && } {/* Coordinates: files on the bottom row, ranks on the left column. */} {Array.from({ length: 8 }, (_, i) => ( @@ -757,7 +753,7 @@ function Options({ value: o, onChange }: OptionsProps) {
초보 도움말 - set({ hints })} /> + set({ hints })} />