Added hints to Trivia. Curated Joepardy answers to be more lenient.
This commit is contained in:
@@ -8,9 +8,11 @@ async function init() {
|
||||
const curatedQuestions = questions.map((question) => ({
|
||||
...question,
|
||||
question: question.question.replace(/^'|'$/g, ''),
|
||||
answer: question.answer.replace(/^((the|an|a)\b(?!-)|\(.*\))\s*|\(.*\)$|"/gi, ''),
|
||||
fullAnswer: question.answer,
|
||||
}));
|
||||
|
||||
await fs.writeFile('assets/jeopardy.json', JSON.stringify(curatedQuestions));
|
||||
await fs.writeFile('assets/jeopardy.json', JSON.stringify(curatedQuestions, null, 4));
|
||||
|
||||
console.log(curatedQuestions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user