Skip to content

Support superpowers: award 20 pts for buzzing before (+) marker#461

Merged
geoffrey-wu merged 5 commits intomainfrom
copilot/add-superpowers-feature
Mar 15, 2026
Merged

Support superpowers: award 20 pts for buzzing before (+) marker#461
geoffrey-wu merged 5 commits intomainfrom
copilot/add-superpowers-feature

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

Adds support for the superpower mark (+), which precedes the power mark (*) in a tossup and is worth 20 points (vs. 15 for power, 10 for ten).

Scoring logic (quizbowl/TossupRoom.js)

  • Added inSuperpower: false / superpowerValue: 20 to previousTossup initial state
  • scoreTossup() now detects (+) position and applies three-tier scoring:
    • Before (+) → 20 pts (inSuperpower)
    • Between (+) and (*) → 15 pts (inPower)
    • After (*) → 10 pts
const inSuperpower = superpowerIndex !== -1 && superpowerIndex >= this.wordIndex;
const inPower = !inSuperpower && powerIndex !== -1 && powerIndex >= this.wordIndex;
  • readTossup() treats (+) like (*): zero reading delay

Client-side

  • TossupClient.updateQuestion(): (+) is suppressed from the rendered question display
  • SoloTossupRoom.toggleCorrect(): handles inSuperpower when adjusting points on correct/incorrect toggle
  • SoloTossupClient.endCurrentTossup(): uses inSuperpower/superpowerValue in the recorded pointValue
Original prompt

This section details on the original issue you should resolve

<issue_title>Support superpowers</issue_title>
<issue_description>This is signified by a (+) appearing in the tossup text, similar to a (*) appearing for powers, and is worth 20 points</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: geoffrey-wu <42471355+geoffrey-wu@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for superpowers in tossup text Support superpowers: award 20 pts for buzzing before (+) marker Mar 8, 2026
@geoffrey-wu
Copy link
Member

Still need to update stat records in db from 20 -> 15, and correctly display powers/superpowers in stat pages

@geoffrey-wu geoffrey-wu marked this pull request as ready for review March 15, 2026 00:56
@geoffrey-wu geoffrey-wu merged commit 04375e2 into main Mar 15, 2026
2 checks passed
@geoffrey-wu geoffrey-wu deleted the copilot/add-superpowers-feature branch March 15, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support superpowers

2 participants