Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trivia questions #1467

Merged
merged 6 commits into from
Mar 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add spacing variations for math expression answer
Before, the answer '2^31-2' would have been rejected, even though "2^31
- 2" is a correct answer. This commit makes sure that we accept a decent
  variety of space combinations.
jonathan-d-zhang committed Feb 24, 2024
commit b812a712d3bd51b0062f1f28035496a373f36c43
4 changes: 2 additions & 2 deletions bot/resources/fun/trivia_quiz.json
Original file line number Diff line number Diff line change
@@ -764,7 +764,7 @@
{
"id": 431,
"question": "Which Turing Award winner created a typesetting language based on Tex?",
"answer": ["Lamport" ,"Leslie Lamport"]
"answer": ["Lamport", "Leslie Lamport"]
},
{
"id": 432,
@@ -1061,7 +1061,7 @@
{
"id": 546,
"question": "What is the max value of `hash(x)` if `x` is an `int` on 32-bit machines?",
"answer": ["2^31 - 2", "2**31 - 2"]
"answer": ["2^31 - 2", "2^31-2", "2**31 - 2", "2**31-2"]
}
]
}