윷놀이: 모서리 이름을 숫자로(1번 출발 → 2번 → 3번 → 4번), 칸 이름도 'N번 다음 k칸'·'N번 지름길 k칸'으로 쉽게

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-11-08 02:21:15 +09:00
parent 0e8ba529c0
commit 7084a20e59
11 changed files with 77 additions and 62 deletions

View File

@@ -12,10 +12,18 @@ export type Sticks = [boolean, boolean, boolean, boolean];
export const NODE_COUNT = 29;
export const GOAL = 'goal' as const;
/**
* Screen names (2026-11-08: plain numbers instead of 참먹이·모·뒷모·찌모): the corners are 1번(출발) → 2번 → 3번 → 4번
* in the moving direction, `N번 다음 k칸` is the k-th spot after corner N on the outer ring, `N번 지름길 k칸` the k-th
* spot from corner N toward 방 on a diagonal.
*/
export const NODE_NAMES: readonly string[] = [
'참먹이', '도', '개', '걸', '윷', '모', '뒷도', '뒷개', '뒷걸', '뒷윷',
'뒷모', '찌도', '찌개', '찌걸', '찌윷', '찌모', '날도', '날개', '날걸', '날윷',
'앞모도', '앞모개', '방', '속윷', '속모', '뒷모도', '뒷모개', '사려', '안찌',
'1번(출발)', '1번 다음 1칸', '1번 다음 2칸', '1번 다음 3칸', '1번 다음 4칸',
'2번', '2번 다음 1칸', '2번 다음 2칸', '2번 다음 3칸', '2번 다음 4칸',
'3번', '3번 다음 1칸', '3번 다음 2칸', '3번 다음 3칸', '3번 다음 4칸',
'4번', '4번 다음 1칸', '4번 다음 2칸', '4번 다음 3칸', '4번 다음 4칸',
'2번 지름길 1칸', '2번 지름길 2칸', '방', '4번 지름길 2칸', '4번 지름길 1칸',
'3번 지름길 1칸', '3번 지름길 2칸', '1번 지름길 2칸', '1번 지름길 1칸',
];
export const THROW_STEPS: Record<Throw, number> = { do: 1, gae: 2, geol: 3, yut: 4, mo: 5, backdo: -1 };