- 규칙 모듈 packages/games/src/ninety-nine: 전용 카드(1~8·10, ±9·±10·0, 조커)와 트럼프(전통 99) 두 규칙, 모든 옵션 한국어 메타. 낼 카드가 없으면 같은 apply 안에서 탈락/목숨 감소/새 판을 연쇄 처리, 시간 초과는 결과 합계가 가장 작은 카드를 자동으로 냄, 연속 3번 시간 초과면 마감 3초, 나가면 탈락 처리. view는 남의 손패·더미를 숨기고 카드별 결과 합계 미리보기와 선택지(+/−, A 1/11, 조커 범위)를 계산해 줌. - 테스트: 문서 10절 시나리오 전부, 무작위 1,000판(보존·유출·onTimeout·결정성)과 엔진 randomPlayout 18판. - 화면 apps/web/src/games/ninety-nine: 큰 합계와 게이지 링, 방향 표시, 목숨 하트, 카드 위 결과 미리보기, ± 두 버튼, 조커 숫자 다이얼, 키보드·스크린리더 지원. - 등록(GAMES, 카탈로그, 화면 레지스트리, 아이콘)과 E2E 계획(PC 1 + 휴대폰 2, 끝까지 진행). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import type { AnyGameDefinition } from '@bg/engine';
|
|
import { omok } from './omok';
|
|
import { othello } from './othello';
|
|
import { chess } from './chess';
|
|
import { janggi } from './janggi';
|
|
import { baduk } from './baduk';
|
|
import { seotda } from './seotda';
|
|
import { poker } from './poker';
|
|
import { yacht } from './yacht';
|
|
import { yut } from './yut';
|
|
import { oneCard } from './one-card';
|
|
import { rummikub } from './rummikub';
|
|
import { davinci } from './davinci-code';
|
|
import { mahjong } from './mahjong';
|
|
import { gostop } from './gostop';
|
|
import { bang } from './bang';
|
|
import { halliGalli } from './halli-galli';
|
|
import { marble } from './marble';
|
|
import { ninetyNine } from './ninety-nine';
|
|
|
|
export const GAMES: Record<string, AnyGameDefinition> = {
|
|
[omok.id]: omok,
|
|
[othello.id]: othello,
|
|
[chess.id]: chess,
|
|
[janggi.id]: janggi,
|
|
[baduk.id]: baduk,
|
|
[seotda.id]: seotda,
|
|
[poker.id]: poker,
|
|
[yacht.id]: yacht,
|
|
[yut.id]: yut,
|
|
[oneCard.id]: oneCard,
|
|
[rummikub.id]: rummikub,
|
|
[davinci.id]: davinci,
|
|
[mahjong.id]: mahjong,
|
|
[gostop.id]: gostop,
|
|
[bang.id]: bang,
|
|
[halliGalli.id]: halliGalli,
|
|
[marble.id]: marble,
|
|
[ninetyNine.id]: ninetyNine,
|
|
};
|