Skip to content

Deck format

m4bwav edited this page Nov 11, 2026 · 1 revision

Deck format

A deck is JSON: id, title, subject, accent (colour), intro, questions.

Multiple choice (choices are shuffled; answer is the index of the right one):

{"topic": "Father Hidalgo", "q": "Hidalgo's 1810 call is called the...", "choices": ["Grito de Dolores", "Treaty of Paris"], "answer": 0, "explain": "On September 16, 1810 he called people to rise up.", "review": "Grito de Dolores, 1810"}

Typed answer:

{"topic": "In America", "type": "type", "q": "Year of the Louisiana Purchase?", "accept": ["1803"], "explain": "The U.S. bought Louisiana from France."}

explain is required: it is shown after every answer. review is the line put on the end-of-game review list when missed. sw.py check validates a deck.

Clone this wiki locally