증강 윷놀이: 증강 아이콘 101개, 사이트 추가 증강 20개 더(모두 30개), 추가 증강 기본 꺼짐

- 증강마다 48×48 SVG 아이콘(aug-icons/): 타일 색 = 종류(규칙·즉시·사용·승리 조건), 그림 = 증강.
  선택 카드·사람 카드 칩·쓰기 버튼·승리 팝업·방 설정 목록·규칙 보기에 표시. 고양이가 된 증강은 회색 고양이.
  모아 보기: apps/web/scripts/aug-icon-sheet.tsx
- 새 증강 20개: 다시 던지기, 곱빼기, 올인, 저주 인형, 얼음!, 자석, 뒤로 돌아, 꼴찌의 반란, 텃세, 따라쟁이,
  청개구리, 사냥꾼, 줍줍, 도장 깨기, 스타트 대시, 방공호, 벼락, 블랙홀, 로켓 발사, 최후의 일격 (규칙·컴퓨터·테스트·문서)
- augOff 기본값 = 이 사이트 추가 증강 30개(방에서 [추가 증강 켜기]로 켬)
- 카니발리즘: 내 말 잡기를 '잡기'로 세지 않음(ownCaptures) → 개돼지와 함께일 때 컴퓨터·시간 초과가
  자기 말을 잡고 다시 던지기를 끝없이 반복하던 문제 수정
- 방 설정 탭이 방 정보 갱신으로 다시 그려질 때 [윷놀이 설정]으로 되돌아가던 문제 수정

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-20 08:17:47 +09:00
parent 5666b227e7
commit daac1982fa
18 changed files with 2048 additions and 40 deletions

View File

@@ -105,7 +105,12 @@ export const yutOptionsSchema = z.object({
.union([z.literal(2), z.literal(3), z.literal(4)])
.default(3)
.meta({ title: '증강: 후보 수', labels: { 2: '2개', 3: '3개', 4: '4개' } }),
augOff: z.array(z.enum(AUG_IDS).meta({ labels: Object.fromEntries(AUG_IDS.map((id) => [id, AUGS[id].name])) })).max(AUG_IDS.length).default([]).meta({ title: '증강: 나오지 않게 뺀 증강' }),
// This site's own augments start switched off (the room can switch them on).
augOff: z
.array(z.enum(AUG_IDS).meta({ labels: Object.fromEntries(AUG_IDS.map((id) => [id, AUGS[id].name])) }))
.max(AUG_IDS.length)
.default(() => AUG_IDS.filter((id) => AUGS[id].custom))
.meta({ title: '증강: 나오지 않게 뺀 증강' }),
});
export type YutOptions = z.infer<typeof yutOptionsSchema>;
@@ -275,6 +280,8 @@ export interface YutLegalMove {
count: number;
/** Opponent pieces caught. */
captures: number;
/** 증강 카니발리즘: own pieces caught there. */
ownCaptures?: number;
stacks: boolean;
finishes: boolean;
/** Action fields that pick this variant (see the MOVE schema); absent for the ordinary move. */