새 게임 라이어 게임: 규칙 엔진·말하는 컴퓨터·화면·도움말·문서·E2E

- packages/games/src/liar: 주제 10개 제시어 은행, 설명(두 번째 바퀴 거꾸로)·자유 토론·투표(동점 재투표 한 번, 또 동점이면 라이어 승리)·라이어 정답 맞히기(띄어쓰기·다른 표기 무시), 바보 모드
- 컴퓨터: 마피아처럼 live 전략, 레벨 1~60을 LiveBotInput.level 로 받음(서버 BotDriver 가 넘김), BOT_CHAT_REQUIRED 에 추가
- 웹: 꾹 누르는 제시어 카드, 설명 기록·토론 채팅·투표 화면, 30초 요약, [?] 도움말
- 문서 docs/games/liar.md, 등록(GAMES·CATALOG·BOT_GAMES·registry·아이콘), 서버 방 테스트, E2E(거절 알림이 저절로 사라지는지 확인 포함)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-13 03:14:39 +09:00
parent bde430f33e
commit 74a7daa4d3
25 changed files with 3569 additions and 12 deletions

View File

@@ -24,7 +24,8 @@ export function botProfile(id: string): PublicUser | null {
/**
* Games that offer computer players. Real-time and drawing games (도블, 할리갈리, 그림 맞히기) don't: a bot there is
* either unbeatable or meaningless. 마피아 has talking computers (2026-10-11). 사과 게임 is a race where everyone solves
* their own copy of the board, so a computer simply races too at its level's speed (2026-10-12).
* their own copy of the board, so a computer simply races too at its level's speed (2026-10-12). 라이어 게임 has
* talking computers like 마피아 (2026-10-12).
*/
export const BOT_GAMES: readonly string[] = [
'omok',
@@ -55,18 +56,19 @@ export const BOT_GAMES: readonly string[] = [
'clue',
'connect-four',
'uno',
'liar',
];
/** Players a practice room starts with when the minimum makes a thin game (마피아 4명 = 마피아 1, 경찰, 의사, 시민 1). */
export const PRACTICE_PLAYERS: Readonly<Record<string, number>> = { mafia: 6 };
/** Players a practice room starts with when the minimum makes a thin game (마피아 4명 = 마피아 1, 경찰, 의사, 시민 1; 라이어 게임 3명). */
export const PRACTICE_PLAYERS: Readonly<Record<string, number>> = { mafia: 6, liar: 5 };
export const botsAllowed = (gameId: string): boolean => BOT_GAMES.includes(gameId);
/**
* Games where computers must talk to play at all (마피아 토론): their computers always speak, whatever the room's
* Games where computers must talk to play at all (마피아 토론, 라이어 게임 설명·토론): their computers always speak, whatever the room's
* "컴퓨터 채팅" setting says. In every other game the computers' small talk is off unless the host turns it on.
*/
export const BOT_CHAT_REQUIRED: readonly string[] = ['mafia'];
export const BOT_CHAT_REQUIRED: readonly string[] = ['mafia', 'liar'];
export const botChatRequired = (gameId: string): boolean => BOT_CHAT_REQUIRED.includes(gameId);