クイズ形式
クイズは config/quizz 内の JSON ファイルです。ガイド:クイズを作成する。
太字 のフィールドは必須です。
| フィールド | 型 | 備考 |
|---|---|---|
subject |
string | タイトル。 |
questions |
問題[] | 1 つ以上。 |
gameMode |
quiz | survey |
デフォルトは quiz。アンケートモード を参照。 |
id |
string | Razzia が管理します。編集しないでください。 |
| フィールド | 型 | 備考 |
|---|---|---|
question |
string | |
answers |
string[] | 2 〜 4 個。estimation では空。 |
cooldown |
integer | 回答の受付が始まるまでの秒数。3 〜 15。 |
time |
integer | 回答できる秒数。5 以上。-1 で制限なし。 |
solutions |
number[] | 正解のインデックス(0 から)。estimation では正解値。クイズモードでは必須。 |
type |
single | multi | estimation |
デフォルトは single。問題形式 を参照。 |
maxPoints |
integer | デフォルトは 1000。 |
penalty |
integer | 不正解で失うポイント。デフォルトはなし。 |
category |
string | ラウンド を参照。 |
note |
string | 正解の発表時に表示されます。 |
media |
{ type, url } |
メディア を参照。 |
options |
object | オプション を参照。estimation では必須。 |
| フィールド | 型 | 備考 |
|---|---|---|
type |
image | audio | video |
|
url |
string | https://… の URL、またはアップロードしたファイルの /media/…。 |
| フィールド | 型 | 対象 | 備考 |
|---|---|---|---|
scoringMode |
strict | balanced | lenient |
multi |
デフォルトは balanced。複数回答 を参照。 |
inputMode |
slider | input |
estimation |
|
min, max |
number | estimation |
max > min。正解はその間にある必要があります。 |
step |
number | estimation |
スライダーの精度。> 0。 |
margin |
number | estimation |
正解とみなされる距離。≥ 0。 |
{ "subject": "Example quiz", "questions": [ { "question": "What is the capital of France?", "answers": ["Berlin", "Paris", "Madrid", "Rome"], "solutions": [1], "cooldown": 5, "time": 15 }, { "type": "estimation", "question": "How many days does a fly live?", "answers": [], "solutions": [28], "options": { "inputMode": "slider", "min": 0, "max": 60, "step": 1, "margin": 5 }, "cooldown": 5, "time": 30 } ]}古いクイズファイルも読み込めます。gameMode と type がない場合はデフォルト値になり、1 のような単一の数値の solutions は [1] として読み込まれます。