게임 4개 원래 이름으로, .5 + NPMplus 배포 구성
- 보석 상인 → 스플렌더, 벽 쌓기 길찾기 → 쿼리도, 숫자 타일 → 루미큐브, 주사위 땅따먹기 → 부루마불 - deploy/docker-compose.proxy.yml: Caddy 없이 앱만(.5:2970), HTTPS·헤더는 NPMplus - deploy/npmplus-advanced.conf: Caddyfile과 같은 보안 헤더 - 문서: 2026-10-06 결정, 배포 7절 (e2e 구십구 0 카드 방향 버튼 반영 포함) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ const users = usersOf(['A', 'B', 'C', 'D']);
|
||||
const view = (s: unknown, who: string | null) => GAMES.quoridor!.view(s, who) as any;
|
||||
const seatOf = (s: any, id: string) => s.seats.find((x: any) => x.playerId === id);
|
||||
|
||||
test('벽 쌓기 길찾기: 내 차례 / 상대 차례 / 관전', () => {
|
||||
test('쿼리도: 내 차례 / 상대 차례 / 관전', () => {
|
||||
// joinOrder: A=남(빨강, 먼저), B=북(파랑).
|
||||
const { state } = setupGame('quoridor', 2, { seatOrder: 'joinOrder' });
|
||||
const mine = helpNow(view(state, 'A'), 'A', users);
|
||||
@@ -23,7 +23,7 @@ test('벽 쌓기 길찾기: 내 차례 / 상대 차례 / 관전', () => {
|
||||
expect(spec).toContain('고양이님(파랑) 8칸');
|
||||
});
|
||||
|
||||
test('벽 쌓기 길찾기: 벽을 다 쓰면 말만, 뛰어넘기 안내', () => {
|
||||
test('쿼리도: 벽을 다 쓰면 말만, 뛰어넘기 안내', () => {
|
||||
const { state } = setupGame('quoridor', 2, { seatOrder: 'joinOrder' });
|
||||
seatOf(state, 'A').wallsLeft = 0;
|
||||
seatOf(state, 'A').pos = { c: 4, r: 3 };
|
||||
@@ -33,7 +33,7 @@ test('벽 쌓기 길찾기: 벽을 다 쓰면 말만, 뛰어넘기 안내', () =
|
||||
expect(t).toContain('뛰어넘는 칸');
|
||||
});
|
||||
|
||||
test('벽 쌓기 길찾기: 무르기 요청과 무승부 제안', () => {
|
||||
test('쿼리도: 무르기 요청과 무승부 제안', () => {
|
||||
const { state } = setupGame('quoridor', 2, { seatOrder: 'joinOrder' });
|
||||
let s = applyAction('quoridor', state, 'A', { type: 'move', to: { c: 4, r: 1 } });
|
||||
s = applyAction('quoridor', s, 'A', { type: 'requestUndo' });
|
||||
@@ -46,7 +46,7 @@ test('벽 쌓기 길찾기: 무르기 요청과 무승부 제안', () => {
|
||||
expect(helpNow(view(s, 'A'), 'A', users)).toContain('무승부');
|
||||
});
|
||||
|
||||
test('벽 쌓기 길찾기: 4명, 도착하면 끝', () => {
|
||||
test('쿼리도: 4명, 도착하면 끝', () => {
|
||||
const { state } = setupGame('quoridor', 4, { seatOrder: 'joinOrder' });
|
||||
const t = helpNow(view(state, 'A'), 'A', users);
|
||||
expect(t).toContain('남은 벽 5개');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** 벽 쌓기 길찾기 [?] "지금 할 수 있는 것" (docs/07 §5). Pure: only reads the client view. */
|
||||
/** 쿼리도 [?] "지금 할 수 있는 것" (docs/07 §5). Pure: only reads the client view. */
|
||||
import type { QuoridorSeatView, QuoridorView, Seat } from '@bg/games/quoridor';
|
||||
import type { PublicUser } from '@bg/shared/lite';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** 벽 쌓기 길찾기 화면 (docs/games/quoridor.md §9). 판은 내 출발 쪽이 아래로 오도록 돌려서 그린다. */
|
||||
/** 쿼리도 화면 (docs/games/quoridor.md §9). 판은 내 출발 쪽이 아래로 오도록 돌려서 그린다. */
|
||||
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
||||
import type { Cell, QuoridorLegalWall, QuoridorMove, QuoridorOptions, QuoridorSeatView, QuoridorView, Seat, Wall } from '@bg/games/quoridor';
|
||||
import type { PublicUser } from '@bg/shared/lite';
|
||||
@@ -370,7 +370,7 @@ function QuoridorBoard({ view: v, players, act, pending, tapConfirm }: BoardProp
|
||||
}}
|
||||
tabIndex={0}
|
||||
role="grid"
|
||||
aria-label={`벽 쌓기 길찾기 판 9×9, 지금은 ${mode === 'wall' ? '벽 세우기' : '말 움직이기'}. 방향키로 고르고 Enter로 정해요. W는 모드 바꾸기, R은 벽 방향 바꾸기예요.${myGoal ? ` 내 목표는 ${myGoal} 줄이에요.` : ''}`}
|
||||
aria-label={`쿼리도 판 9×9, 지금은 ${mode === 'wall' ? '벽 세우기' : '말 움직이기'}. 방향키로 고르고 Enter로 정해요. W는 모드 바꾸기, R은 벽 방향 바꾸기예요.${myGoal ? ` 내 목표는 ${myGoal} 줄이에요.` : ''}`}
|
||||
onKeyDown={onKey}
|
||||
>
|
||||
{goalSides.map((g, k) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/** 벽 쌓기 길찾기 30초 규칙 요약 (docs/07 §5). A small corner of the board, drawn inline. */
|
||||
/** 쿼리도 30초 규칙 요약 (docs/07 §5). A small corner of the board, drawn inline. */
|
||||
import type { QuickCard } from '../types';
|
||||
|
||||
type Pawn = [number, number, string];
|
||||
|
||||
Reference in New Issue
Block a user