Soundtracks - #568
Draft
dn285 wants to merge 8 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Geoword already plays a single audio file per tossup and pauses on buzz, so this PR adds only what's new for Soundtracks: teams and merging teammates' buzzes. Everything else reuses the existing Geoword engine.
Also, five Geoword client files imported
scripts/utilities/strings.js, which was moved toshared/string-utils.jsin 4d382c4. The unresolved import meant those modules never executed, leaving the game page's buttons completely inert. Fixed here because it blocked testing.Testing
Download some MP3s and put them under path
audio/soundtracks/with ananswers.json:[ { "questionNumber": 1, "answer": "<b><u>Answer one</u></b>" }, { "questionNumber": 2, "answer": "<b><u>Answer two</u></b>" } ]Filenames just need to end in the question number for now. Answers use standard quizbowl answerline syntax and go straight to
qb-answer-checker.Then run:
npm install npm run build node tools/seed-soundtracks.js # idempotent; re-run freely npm startwhich seeds a free (
costInCents: 0) packet, three non-admin players on two teams, andsoundtracks-adminfor viewing results early. Password ispasswordfor all.Can log in as a user (e.g.
soundtracks-alice) and play and check the rankings. To clear buzzes and replays: