라이어 게임: 설명·토론·투표·정답 맞히기 시간 무제한(할 일을 마칠 때까지, 연결 끊긴 사람은 유예 뒤 넘김), 설명·투표·지목 소리, 움직임
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,18 @@ describe('whole games', () => {
|
||||
}, 60_000);
|
||||
}
|
||||
|
||||
test('모든 시간 무제한, 컴퓨터만: 설명·토론 끝내기·투표·맞히기를 해서 모두 끝나요', () => {
|
||||
const options = opts({ describeSeconds: null, discussionSeconds: null, voteSeconds: null, guessSeconds: null });
|
||||
for (const n of [3, 5, 8, 10]) {
|
||||
const r = liveBotPlayout(liar, liarBot, { players: seats(n, 0), options, seed: seedN(900 + n), isBot });
|
||||
expect(r.finished).toBe(true);
|
||||
expect(r.rejected).toEqual([]);
|
||||
const st = r.state as LiarState;
|
||||
expect(st.descriptions.every((d) => d.text !== null)).toBe(true);
|
||||
expect(r.elapsed).toBeGreaterThan(30_000);
|
||||
}
|
||||
}, 60_000);
|
||||
|
||||
test('컴퓨터는 토론 때 말하고, 라이어 컴퓨터는 자기를 지목하지 않아요', () => {
|
||||
for (let s = 1; s <= 10; s++) {
|
||||
const r = liveBotPlayout(liar, liarBot, { players: seats(6, 0), seed: seedN(300 + s), isBot });
|
||||
|
||||
@@ -130,6 +130,15 @@ function matchAll(m: TopicModel, text: string): Map<string, number> {
|
||||
|
||||
// ---------------------------------------------------------------- the bot
|
||||
|
||||
/** How a computer paces a 무제한 phase: like the default clock of that phase. */
|
||||
const UNLIMITED_PACE_MS: Record<Exclude<LiarView['phase']['kind'], 'ended'>, number> = {
|
||||
reveal: 10_000,
|
||||
describe: 30_000,
|
||||
discussion: 90_000,
|
||||
vote: 30_000,
|
||||
guess: 30_000,
|
||||
};
|
||||
|
||||
class LiarBot {
|
||||
readonly v: LiarView;
|
||||
readonly me: PlayerId;
|
||||
@@ -197,8 +206,11 @@ class LiarBot {
|
||||
return this.v.phase.startedAt;
|
||||
}
|
||||
|
||||
/** Phase length; 무제한 phases are paced like the default clock (so a computer neither rushes nor stalls). */
|
||||
private get phaseLen(): number {
|
||||
return Math.max(1000, (this.v.phase.endsAt ?? this.phaseStart) - this.phaseStart);
|
||||
const ph = this.v.phase;
|
||||
if (ph.endsAt === null && ph.kind !== 'ended') return UNLIMITED_PACE_MS[ph.kind];
|
||||
return Math.max(1000, (ph.endsAt ?? this.phaseStart) - this.phaseStart);
|
||||
}
|
||||
|
||||
/** `lo..hi` seconds into the phase (scaled by pace), never later than `cap` of it. */
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
*
|
||||
* Phases run on the server clock like 마피아: every phase has `endsAt`, and the room applies the system-only
|
||||
* `phaseTimeout` there (one "driver" player; `timeoutNotBefore` keeps an away driver from firing it early).
|
||||
* 무제한 phases (`endsAt` null) end when everyone needed is done; a player away past the room's grace period
|
||||
* is passed by their own `phaseTimeout` (넘김 / no vote / wrong guess).
|
||||
* 제시어 확인 → 차례대로 한 문장 설명(바퀴 수만큼, 두 번째 바퀴는 거꾸로) → 자유 토론 → 투표(동점이면 동점자끼리 재투표 한 번,
|
||||
* 또 동점이면 라이어 승리) → 지목된 사람이 라이어면 제시어 맞히기 → 결과.
|
||||
*
|
||||
@@ -97,6 +99,8 @@ function speakerOf(s: LiarState): PlayerId | null {
|
||||
/** The liar is known to everybody once accused (guess phase) or at the end. */
|
||||
const liarKnown = (s: LiarState) => s.phase.kind === 'guess' || s.final !== null;
|
||||
|
||||
const endsIn = (now: number, sec: number | null) => (sec === null ? null : now + sec * 1000);
|
||||
|
||||
/** Starts the describe turn at `turn` of `round` (skipping people who left), or the next round, or the discussion. */
|
||||
function nextTurn(s: LiarState, now: number, round: number, turn: number): void {
|
||||
for (let r = round; r <= s.options.rounds; r++) {
|
||||
@@ -104,17 +108,17 @@ function nextTurn(s: LiarState, now: number, round: number, turn: number): void
|
||||
for (let t = r === round ? turn : 0; t < order.length; t++) {
|
||||
if (!isPresent(s, order[t])) continue;
|
||||
const fresh = s.phase.kind !== 'describe' || s.phase.round !== r;
|
||||
s.phase = { kind: 'describe', startedAt: now, endsAt: now + s.options.describeSeconds * 1000, round: r, turn: t };
|
||||
s.phase = { kind: 'describe', startedAt: now, endsAt: endsIn(now, s.options.describeSeconds), round: r, turn: t };
|
||||
if (fresh) pushEvent(s, now, { t: 'phase', kind: 'describe', round: r });
|
||||
return;
|
||||
}
|
||||
}
|
||||
s.phase = { kind: 'discussion', startedAt: now, endsAt: now + s.options.discussionSeconds * 1000, ready: [] };
|
||||
s.phase = { kind: 'discussion', startedAt: now, endsAt: endsIn(now, s.options.discussionSeconds), ready: [] };
|
||||
pushEvent(s, now, { t: 'phase', kind: 'discussion' });
|
||||
}
|
||||
|
||||
function startVote(s: LiarState, now: number, round: 1 | 2, candidates: PlayerId[]): void {
|
||||
s.phase = { kind: 'vote', startedAt: now, endsAt: now + s.options.voteSeconds * 1000, round, candidates, votes: {} };
|
||||
s.phase = { kind: 'vote', startedAt: now, endsAt: endsIn(now, s.options.voteSeconds), round, candidates, votes: {} };
|
||||
pushEvent(s, now, { t: 'phase', kind: 'vote', round });
|
||||
}
|
||||
|
||||
@@ -128,7 +132,48 @@ function voteTargets(s: LiarState, voter: PlayerId): PlayerId[] {
|
||||
/** Present players who can vote (someone whose only candidate is themselves sits the revote out). */
|
||||
const voters = (s: LiarState) => present(s).filter((p) => voteTargets(s, p.id).length > 0);
|
||||
|
||||
const allVoted = (s: LiarState) => s.phase.kind === 'vote' && voters(s).every((p) => s.phase.kind === 'vote' && s.phase.votes[p.id] !== undefined);
|
||||
/** Has voted (or, 무제한, was passed while away). */
|
||||
const hasVoted = (ph: Extract<Phase, { kind: 'vote' }>, p: PlayerId) => ph.votes[p] !== undefined || (ph.passed ?? []).includes(p);
|
||||
const allVoted = (s: LiarState) => s.phase.kind === 'vote' && voters(s).every((p) => s.phase.kind === 'vote' && hasVoted(s.phase, p.id));
|
||||
|
||||
/** 무제한 phase: who it still waits for (the speaker, 토론 끝내기, votes, the liar's guess). */
|
||||
function awaited(s: LiarState): PlayerId[] {
|
||||
const ph = s.phase;
|
||||
if (ph.kind === 'ended' || ph.endsAt !== null) return [];
|
||||
switch (ph.kind) {
|
||||
case 'describe':
|
||||
return [speakerOf(s)!];
|
||||
case 'discussion':
|
||||
case 'reveal':
|
||||
return present(s)
|
||||
.filter((p) => !ph.ready.includes(p.id))
|
||||
.map((p) => p.id);
|
||||
case 'vote':
|
||||
return voters(s)
|
||||
.filter((p) => !hasVoted(ph, p.id))
|
||||
.map((p) => p.id);
|
||||
case 'guess':
|
||||
return [s.liar];
|
||||
}
|
||||
}
|
||||
|
||||
/** 무제한: the room moved on for `p` (away past the grace period). */
|
||||
function pass(s: LiarState, now: number, p: PlayerId): void {
|
||||
const ph = s.phase;
|
||||
switch (ph.kind) {
|
||||
case 'discussion':
|
||||
ph.ready.push(p);
|
||||
if (present(s).every((x) => ph.ready.includes(x.id))) advance(s, now);
|
||||
return;
|
||||
case 'vote':
|
||||
(ph.passed ??= []).push(p);
|
||||
if (allVoted(s)) resolveVote(s, now);
|
||||
return;
|
||||
default:
|
||||
// describe: the speaker's turn is 넘김; guess: no answer (wrong).
|
||||
advance(s, now);
|
||||
}
|
||||
}
|
||||
|
||||
function finish(s: LiarState, now: number, winner: 'liar' | 'citizens', reason: WinReason): void {
|
||||
const word = s.word;
|
||||
@@ -176,7 +221,7 @@ function resolveVote(s: LiarState, now: number): void {
|
||||
const isLiar = accused === s.liar;
|
||||
pushEvent(s, now, { t: 'accused', p: accused, liar: isLiar });
|
||||
if (!isLiar) return finish(s, now, 'liar', 'escaped');
|
||||
s.phase = { kind: 'guess', startedAt: now, endsAt: now + s.options.guessSeconds * 1000 };
|
||||
s.phase = { kind: 'guess', startedAt: now, endsAt: endsIn(now, s.options.guessSeconds) };
|
||||
pushEvent(s, now, { t: 'phase', kind: 'guess' });
|
||||
}
|
||||
|
||||
@@ -273,6 +318,8 @@ function validate(s: LiarState, actor: PlayerId, a: LiarAction, ctx?: { now: num
|
||||
if (s.final || ph.kind === 'ended') return fail('게임이 이미 끝났어요.');
|
||||
switch (a.type) {
|
||||
case 'phaseTimeout':
|
||||
// 무제한: only for someone the phase waits on (the room passes a player away past the grace period).
|
||||
if (ph.endsAt === null) return awaited(s).includes(actor) ? ok : fail('아직 기다리는 중이에요.');
|
||||
return ctx && ctx.now < ph.endsAt ? fail('아직 시간이 남았어요.') : ok;
|
||||
case 'leave':
|
||||
return p.left ? fail('이미 나갔어요.') : ok;
|
||||
@@ -359,7 +406,7 @@ function view(s: LiarState, viewer: PlayerId | null): LiarView {
|
||||
readyNeeded: readyPhase ? present(s).length : 0,
|
||||
voteRound: ph.kind === 'vote' ? ph.round : null,
|
||||
candidates: ph.kind === 'vote' ? [...ph.candidates] : [],
|
||||
votedCount: ph.kind === 'vote' ? Object.keys(ph.votes).length : 0,
|
||||
votedCount: ph.kind === 'vote' ? voters(s).filter((p) => hasVoted(ph, p.id)).length : 0,
|
||||
liar: ph.kind === 'guess' ? s.liar : null,
|
||||
choices: ph.kind === 'guess' && s.options.guessMode === 'choice' ? topicById(s.topic).words.map((x) => x.word).sort((a, b) => a.localeCompare(b, 'ko')) : [],
|
||||
},
|
||||
@@ -368,7 +415,7 @@ function view(s: LiarState, viewer: PlayerId | null): LiarView {
|
||||
players: s.players.map((p) => ({
|
||||
id: p.id,
|
||||
left: p.left,
|
||||
voted: ph.kind === 'vote' && ph.votes[p.id] !== undefined,
|
||||
voted: ph.kind === 'vote' && hasVoted(ph, p.id),
|
||||
liar: known ? p.id === s.liar : null,
|
||||
})),
|
||||
descriptions: s.descriptions.map((d) => ({ ...d })),
|
||||
@@ -392,7 +439,7 @@ function activePlayers(s: LiarState): PlayerId[] {
|
||||
return [s.liar];
|
||||
case 'vote':
|
||||
return voters(s)
|
||||
.filter((p) => ph.votes[p.id] === undefined)
|
||||
.filter((p) => !hasVoted(ph, p.id))
|
||||
.map((p) => p.id);
|
||||
default:
|
||||
return present(s).map((p) => p.id);
|
||||
@@ -455,7 +502,8 @@ export const liar: Def = {
|
||||
const ph = s.phase;
|
||||
switch (a.type) {
|
||||
case 'phaseTimeout':
|
||||
advance(s, now);
|
||||
if (ph.kind !== 'ended' && ph.endsAt === null) pass(s, now, actor);
|
||||
else advance(s, now);
|
||||
break;
|
||||
case 'leave':
|
||||
leave(s, now, p);
|
||||
@@ -498,9 +546,10 @@ export const liar: Def = {
|
||||
return s.phase.kind === 'ended' ? null : s.phase.endsAt;
|
||||
},
|
||||
|
||||
/** One player drives the phase clock (the deadline is shared by everybody). */
|
||||
/** One player drives the phase clock (the deadline is shared by everybody); 무제한: those still awaited (only the away ones time out). */
|
||||
timeoutPlayers(s) {
|
||||
return s.phase.kind === 'ended' ? [] : [s.players[0]!.id];
|
||||
if (s.phase.kind === 'ended') return [];
|
||||
return s.phase.endsAt === null ? awaited(s) : [s.players[0]!.id];
|
||||
},
|
||||
|
||||
/** An away driver must not end a phase early. */
|
||||
@@ -540,7 +589,7 @@ export const liar: Def = {
|
||||
const p = P(s, player);
|
||||
if (!p || s.final || s.phase.kind === 'ended') return [];
|
||||
const out: LiarAction[] = [{ type: 'phaseTimeout' }];
|
||||
if (p.left) return out;
|
||||
if (p.left) return out.filter((a) => validate(s, player, a).ok);
|
||||
const me = myView(s, p);
|
||||
if (me.canChat) out.push({ type: 'chat', text: `m${s.seq}-${player}` });
|
||||
if (me.canReady) out.push({ type: 'ready' });
|
||||
|
||||
@@ -52,7 +52,7 @@ function reject(s: LiarState, actor: PlayerId, a: LiarAction, now?: number): str
|
||||
}
|
||||
const tick = (s: LiarState) => {
|
||||
if (s.phase.kind === 'ended') throw new Error('tick after the end');
|
||||
return act(s, s.players[0]!.id, { type: 'phaseTimeout' }, s.phase.endsAt);
|
||||
return act(s, s.players[0]!.id, { type: 'phaseTimeout' }, s.phase.endsAt!);
|
||||
};
|
||||
function until(s: LiarState, kind: LiarState['phase']['kind']): LiarState {
|
||||
for (let i = 0; i < 60 && s.phase.kind !== kind && s.phase.kind !== 'ended'; i++) s = tick(s);
|
||||
@@ -231,7 +231,7 @@ describe('차례대로 설명 (§5.2)', () => {
|
||||
|
||||
test('한 바퀴 옵션, 시간 초과는 넘김, 설명은 80자까지', () => {
|
||||
let s = tick(rig(3, { rounds: 1, describeSeconds: 15 }));
|
||||
expect(s.phase.kind === 'describe' && s.phase.endsAt - s.phase.startedAt).toBe(15_000);
|
||||
expect(s.phase.kind === 'describe' && s.phase.endsAt! - s.phase.startedAt).toBe(15_000);
|
||||
expect(reject(s, 'P0', { type: 'chat', text: '가'.repeat(81) })).toContain('80자');
|
||||
s = tick(s);
|
||||
expect(s.descriptions[0]).toMatchObject({ from: 'P0', text: null });
|
||||
@@ -381,6 +381,54 @@ describe('나가기 (§8.5)', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('시간 무제한 (§8.5)', () => {
|
||||
const U = { describeSeconds: null, discussionSeconds: null, voteSeconds: null, guessSeconds: null };
|
||||
|
||||
test('설명·토론·투표·맞히기 모두 무제한: 마감 없이 할 일을 마칠 때까지, 기다리는 사람만 시간 초과 대상', () => {
|
||||
let s = tick(rig(3, { ...U, rounds: 1 }));
|
||||
expect(s.phase.kind === 'describe' && s.phase.endsAt).toBeNull();
|
||||
expect(liar.deadline!(s)).toBeNull();
|
||||
expect(liar.timeoutPlayers!(s)).toEqual(['P0']);
|
||||
expect(reject(s, 'P1', { type: 'phaseTimeout' })).toBe('아직 기다리는 중이에요.');
|
||||
for (const p of ['P0', 'P1', 'P2']) s = act(s, p, { type: 'chat', text: `${p} 설명` }, T0 + 3_600_000);
|
||||
expect(s.phase.kind).toBe('discussion');
|
||||
expect(liar.timeoutPlayers!(s)).toEqual(['P0', 'P1', 'P2']);
|
||||
for (const p of ['P0', 'P1', 'P2']) s = act(s, p, { type: 'ready' });
|
||||
expect(s.phase.kind).toBe('vote');
|
||||
s = votes(s, { P0: 'P2', P1: 'P2' });
|
||||
expect(liar.timeoutPlayers!(s)).toEqual(['P2']);
|
||||
s = act(s, 'P2', { type: 'vote', target: 'P0' });
|
||||
expect(s.phase.kind).toBe('guess');
|
||||
expect(liar.timeoutPlayers!(s)).toEqual(['P2']);
|
||||
s = act(s, 'P2', { type: 'guess', text: '수박' }, T0 + 7_200_000);
|
||||
expect(s.final!.reason).toBe('guessed');
|
||||
});
|
||||
|
||||
test('자리 비운 사람은 방의 유예 시간 뒤 자기 차례만 넘김: 설명 넘김·토론 끝·표 없음·답 없음', () => {
|
||||
let s = tick(rig(4, { ...U, rounds: 1 }));
|
||||
s = act(s, 'P0', liar.onTimeout(s, 'P0'));
|
||||
expect(s.descriptions[0]).toMatchObject({ from: 'P0', text: null });
|
||||
for (const p of ['P1', 'P2', 'P3']) s = act(s, p, { type: 'chat', text: `${p} 설명` });
|
||||
for (const p of ['P1', 'P2', 'P3']) s = act(s, p, { type: 'ready' });
|
||||
s = act(s, 'P0', liar.onTimeout(s, 'P0'));
|
||||
expect(s.phase.kind).toBe('vote');
|
||||
s = votes(s, { P1: 'P3', P2: 'P3', P3: 'P1' });
|
||||
expect(liar.view(s, null).players.find((p) => p.id === 'P0')!.voted).toBe(false);
|
||||
s = act(s, 'P0', liar.onTimeout(s, 'P0'));
|
||||
expect(lastEv(s, 'vote')).toMatchObject({ accused: 'P3', votes: { P1: 'P3', P2: 'P3', P3: 'P1' } });
|
||||
s = act(s, 'P3', liar.onTimeout(s, 'P3'));
|
||||
expect(s.final).toMatchObject({ winner: 'citizens', reason: 'caught', guess: null });
|
||||
});
|
||||
|
||||
test('무작위 대국(모두 무제한)도 끝나요', () => {
|
||||
for (let k = 1; k <= playoutSeeds(40); k++) {
|
||||
const n = 3 + (k % 8);
|
||||
const r = randomPlayout(liar, { players: ids(n), options: opts(U), seed: seedN(5000 + k), maxSteps: 3000 });
|
||||
expect(r.finished).toBe(true);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// ---------------------------------------------------------------- engine checks
|
||||
|
||||
describe('무작위 대국 (엔진 공통 검사)', () => {
|
||||
|
||||
@@ -5,9 +5,11 @@ import { TOPIC_IDS, TOPIC_KO, type TopicId } from './topics';
|
||||
|
||||
export { TOPIC_IDS, TOPIC_KO, type TopicId } from './topics';
|
||||
|
||||
const lit = <T extends number>(...vals: T[]) =>
|
||||
const lit = <T extends number | null>(...vals: T[]) =>
|
||||
z.union(vals.map((v) => z.literal(v)) as unknown as [z.ZodLiteral<T>, z.ZodLiteral<T>, ...z.ZodLiteral<T>[]]);
|
||||
const secLabels = (...vals: number[]) => Object.fromEntries(vals.map((v) => [v, `${v}초`]));
|
||||
/** Labels plus 무제한 (null): that phase has no clock (§8.5). */
|
||||
const secLabelsU = (unl: string, ...vals: number[]) => ({ ...secLabels(...vals), null: unl });
|
||||
|
||||
export const liarOptionsSchema = z.object({
|
||||
topic: z
|
||||
@@ -18,22 +20,23 @@ export const liarOptionsSchema = z.object({
|
||||
rounds: lit(1, 2)
|
||||
.default(2)
|
||||
.meta({ title: '설명 바퀴 수', labels: { 1: '한 바퀴', 2: '두 바퀴(두 번째는 거꾸로)' } }),
|
||||
describeSeconds: lit(15, 20, 30, 45, 60)
|
||||
/** null = 무제한 (each such phase ends when everyone needed is done; away players are passed after the room's grace period). */
|
||||
describeSeconds: lit<15 | 20 | 30 | 45 | 60 | null>(15, 20, 30, 45, 60, null)
|
||||
.default(30)
|
||||
.meta({ title: '한 사람 설명 시간', labels: secLabels(15, 20, 30, 45, 60) }),
|
||||
discussionSeconds: lit(30, 60, 90, 120, 180)
|
||||
.meta({ title: '한 사람 설명 시간', labels: secLabelsU('무제한(설명을 보낼 때까지)', 15, 20, 30, 45, 60) }),
|
||||
discussionSeconds: lit<30 | 60 | 90 | 120 | 180 | null>(30, 60, 90, 120, 180, null)
|
||||
.default(90)
|
||||
.meta({ title: '자유 토론 시간', labels: secLabels(30, 60, 90, 120, 180) }),
|
||||
voteSeconds: lit(15, 20, 30, 45)
|
||||
.meta({ title: '자유 토론 시간', labels: secLabelsU('무제한(모두 토론 끝내기를 누를 때까지)', 30, 60, 90, 120, 180) }),
|
||||
voteSeconds: lit<15 | 20 | 30 | 45 | null>(15, 20, 30, 45, null)
|
||||
.default(30)
|
||||
.meta({ title: '투표 시간', labels: secLabels(15, 20, 30, 45) }),
|
||||
.meta({ title: '투표 시간', labels: secLabelsU('무제한(모두 투표할 때까지)', 15, 20, 30, 45) }),
|
||||
guessMode: z
|
||||
.enum(['text', 'choice'])
|
||||
.default('text')
|
||||
.meta({ title: '라이어의 정답 맞히기', labels: { text: '직접 적기', choice: '주제 단어 목록에서 고르기' } }),
|
||||
guessSeconds: lit(20, 30, 45, 60)
|
||||
guessSeconds: lit<20 | 30 | 45 | 60 | null>(20, 30, 45, 60, null)
|
||||
.default(30)
|
||||
.meta({ title: '정답 맞히기 시간', labels: secLabels(20, 30, 45, 60) }),
|
||||
.meta({ title: '정답 맞히기 시간', labels: secLabelsU('무제한(라이어가 답할 때까지)', 20, 30, 45, 60) }),
|
||||
kidSafeChat: z.boolean().default(true).meta({ title: '고운 말 필터(욕설·링크·전화번호 막기)' }),
|
||||
});
|
||||
export type LiarOptions = z.infer<typeof liarOptionsSchema>;
|
||||
@@ -54,10 +57,12 @@ export type LiarAction = LiarClientAction | { type: 'phaseTimeout' } | { type: '
|
||||
|
||||
export type Phase =
|
||||
| { kind: 'reveal'; startedAt: number; endsAt: number; ready: PlayerId[] }
|
||||
| { kind: 'describe'; startedAt: number; endsAt: number; round: number; turn: number }
|
||||
| { kind: 'discussion'; startedAt: number; endsAt: number; ready: PlayerId[] }
|
||||
| { kind: 'vote'; startedAt: number; endsAt: number; round: 1 | 2; candidates: PlayerId[]; votes: Record<PlayerId, PlayerId> }
|
||||
| { kind: 'guess'; startedAt: number; endsAt: number }
|
||||
// endsAt null = 무제한: describe/guess wait for the speaker/liar, discussion for everyone's 「투표하자」, vote for every vote.
|
||||
| { kind: 'describe'; startedAt: number; endsAt: number | null; round: number; turn: number }
|
||||
| { kind: 'discussion'; startedAt: number; endsAt: number | null; ready: PlayerId[] }
|
||||
/** `passed`: 무제한 only, voters the room moved on while away (no vote). */
|
||||
| { kind: 'vote'; startedAt: number; endsAt: number | null; round: 1 | 2; candidates: PlayerId[]; votes: Record<PlayerId, PlayerId>; passed?: PlayerId[] }
|
||||
| { kind: 'guess'; startedAt: number; endsAt: number | null }
|
||||
| { kind: 'ended' };
|
||||
export type PhaseKind = Phase['kind'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user