이지선다 모드: 조회수가 더 높은 곡 고르기. 이지선다 퀴즈는 조회수가 든 파일로 만들고(custom_quizzes.kind='duel', custom_quiz_items.views, 013 마이그레이션; 1,234,567·123만·1.2억도 읽음, 조회수 없는 줄은 빠짐) 이지선다에서만, 일반 퀴즈는 듣고맞추기에서만 쓴다. 서버 game/duel.ts: 문제마다 A/B 카드, 카드를 누르면 고른 것(시간 전까지 바꾸기), 시간이 끝나면 조회수 공개·높은 쪽 1점·역배(혼자 맞히고 반대쪽 2명 이상) 2점·같으면 둘 다 정답, 매번 새 두 곡/연속(이긴 곡이 조회수를 보인 채 A로 남음). 화면 DuelScreen: 고른 사람 프로필이 카드 밑에, 카드마다 숨은 플레이어(net/duel-player.ts)로 각자 듣고 다시 누르면 멈춘 곳부터 이어서. 방 설정 이지선다(제한 시간 기본 30초·진행 방식·재생위치·문제 수, 이지선다 퀴즈만 목록에), 결과 화면 역배 성공 수. 관리자 파일로 만들기 종류 선택(조회수 열이 있으면 이지선다), 조회수 편집·내보내기·빈 양식. 폰 점수판 가로 스크롤 키보드 접근(axe). 서버 테스트 146개, e2e duel(실제 유튜브 이어 듣기 포함)·game·quiz·admin·rooms·login·a11y 통과
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,11 @@ export const QUIZ_VISIBILITIES = [
|
||||
] as const;
|
||||
export type QuizVisibility = (typeof QUIZ_VISIBILITIES)[number]['id'];
|
||||
|
||||
/** 일반 퀴즈 (듣고맞추기) or 이지선다 퀴즈 (조회수가 더 높은 곡 고르기): each is played only in its own mode. */
|
||||
export type QuizKind = 'normal' | 'duel';
|
||||
|
||||
/** Room settings a quiz carries as its defaults (the host may still change them in the room). */
|
||||
export const QUIZ_ROOM_KEYS = ['listenSec', 'startAt', 'answer', 'strict', 'hint', 'hintVotes', 'skipVotes', 'replayVotes', 'revealSec', 'nextVotes'] as const;
|
||||
export const QUIZ_ROOM_KEYS = ['listenSec', 'startAt', 'answer', 'strict', 'hint', 'hintVotes', 'skipVotes', 'replayVotes', 'revealSec', 'nextVotes', 'duelSec', 'duelFlow'] as const;
|
||||
export type QuizRoomDefaults = Pick<RoomConfig, (typeof QUIZ_ROOM_KEYS)[number]>;
|
||||
|
||||
export interface QuizSettings extends QuizRoomDefaults {
|
||||
@@ -46,10 +49,13 @@ export interface QuizItem {
|
||||
auto: boolean;
|
||||
startSec: number | null;
|
||||
highlightSec: number | null;
|
||||
/** 이지선다 퀴즈: the video's view count as written in the file (null = not given; such songs are left out of games). */
|
||||
views: number | null;
|
||||
}
|
||||
|
||||
export interface QuizSummary {
|
||||
id: number;
|
||||
kind: QuizKind;
|
||||
name: string;
|
||||
description: string;
|
||||
visibility: QuizVisibility;
|
||||
|
||||
Reference in New Issue
Block a user