윷놀이: 증강 윷놀이 옵션 추가 (원작 증강 71개 + 추가 10개, 증강 탭·선택 창·능력·알까기·특수 승리)

- 엔진 aug.ts: 라운드·동시 비공개 증강 선택(1·6·12 등, 혼돈 모드, 후보 수, 제외 목록), 질문(거머리·접기·돌림판·투표·색 맞히기 등),
  특수 말·보호막·함께 서기·함정/선물/똥/마늘/조준/지뢰, 특수 승리·탈락·순위, 컴퓨터(aug-bot.ts), 알까기 물리(physics.ts)
- 화면: 방 설정 [게임 종류] + [증강 윷놀이] 탭(켜기/끄기·찾기), 증강 선택 창, 내 증강 쓰기, 증강 칸, 특수 승리 팝업, 안개, 알까기 조준
- 문서 docs/games/yut-augmented.md, 테스트 aug.test.ts 59개, e2e yut-aug

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-19 22:42:52 +09:00
parent d40ba1e121
commit 28ef4ed947
21 changed files with 5928 additions and 41 deletions

View File

@@ -7,6 +7,7 @@ import type { BotStrategy } from '../bots/types';
import { answerRequests, best, pick, playable } from '../bots/policy';
import { FLAT_P, GOAL, THROW_STEPS, advance, defaultPrev, remainingDistance, throwProbabilities, type NodeId, type Throw } from './board';
import type { YutAction, YutLegalMove, YutView } from './index';
import { augBotAction } from './aug-bot';
const STEP = 3; // points per step of progress per piece
const THROWS: Throw[] = ['backdo', 'do', 'gae', 'geol', 'yut', 'mo'];
@@ -14,6 +15,10 @@ const THROWS: Throw[] = ['backdo', 'do', 'gae', 'geol', 'yut', 'mo'];
export const yutBot: BotStrategy<YutView, YutAction> = ({ view, legal, random }) => {
const req = answerRequests(legal);
if (req) return req;
if (view.aug) {
const a = augBotAction(view, legal, random);
if (a) return a;
}
const moves = legal.filter((a) => a.type === 'MOVE') as Extract<YutAction, { type: 'MOVE' }>[];
if (!moves.length || !view.legalMoves) return pick(playable(legal), random);