라이어 게임: 설명·토론·투표·정답 맞히기 시간 무제한(할 일을 마칠 때까지, 연결 끊긴 사람은 유예 뒤 넘김), 설명·투표·지목 소리, 움직임
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -114,4 +114,17 @@ describe('라이어 게임 room flow with computers', () => {
|
||||
expect(state().descriptions.filter((d) => d.from === 'A').every((d) => d.text === null)).toBe(true);
|
||||
expect(logs).toEqual([]);
|
||||
});
|
||||
|
||||
test('모든 시간 무제한: 컴퓨터는 알아서 하고, 연결이 끊긴 사람은 유예 시간 뒤 넘겨져 끝까지 가요', () => {
|
||||
const { room, conn, run, state, logs } = practice();
|
||||
const none = { describeSeconds: null, discussionSeconds: null, voteSeconds: null, guessSeconds: null };
|
||||
expect(room.configure('A', { options: { ...(room.config.options as object), ...none } })).toBeNull();
|
||||
room.start('A');
|
||||
room.disconnect(conn);
|
||||
run();
|
||||
expect(room.game!.finished).toBe(true);
|
||||
expect(state().options.describeSeconds).toBeNull();
|
||||
expect(state().descriptions.filter((d) => d.from === 'A').every((d) => d.text === null)).toBe(true);
|
||||
expect(logs).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user