StealthOrc / cult-pardy

A (hopfeully) self-hosted and customizable jeopardy web app.
MIT License
2 stars 1 forks source link

Server: Writing a Jeopardy Board to json file #2

Open StealthOrc opened 5 months ago

StealthOrc commented 5 months ago

The Json File should be layed out like this: Short header part: title, author, last edit date. Within the "board" object, there should be Categories listed in order of display (left to right).

Example file:

{ "title": "Board Title", "author": "Author Name (discord name)", "lastEditDate": "2024-04-20T16:27:00Z", "board": [ { "name": "Anime", "Questions": [ { "type": "Question", "question": "Who is the the best anime girl?", "answer": "Zero Two" }, { "type": "Question", "question": "What is the best anime?", "answer": "Darling in the Franxx" } ] }, { "name": "League of Legends", "Questions": [ { "type": "Estimate", "question": "How many active players has league of legends (as of Jan. 2024)?", "answer": "0" }, { "type": "Media", "media": "http://link.to/media or /path/to/local/file/on/server" } ] } ] }

Shiirroo commented 5 months ago

Impl first version of JeopardyBoard. The backend has a JeopardyBoard struct with all data from the game. When a user connects to the game, a DTO is sent from JeopardyBoard to the player with the necessary information for the frontent