[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted

Open
#817 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 20 days

@Furqan-7 is already working on this.

Since Nov 27, 2026.

  • #818 by @Furqan-7 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
go, typescript

Research direction

The score is calculated in backend/services/pros_cons.go and displayed in frontend/src/Pages/ProsConsChallenge.tsx. Read how the submit response represents the arguments and their scores, then check how the page renders the final score. Done when the displayed maximum reflects the number of submitted arguments; an open linked pull request (#818) indicates work is already underway.

Written by the indexing model from the issue text.

Description

bug
Bug Description

On the Pros & Cons Challenge page (/coach/pros-cons), the final score is always shown "out of 100", for example "Final Score: 19/100". That number is misleading

How the score is really calculated:

  • Each argument you write gets its own score out of 10.
  • The final score is just these scores added together.

So the highest possible score depends on how many arguments you write:

  • 1 pro + 1 con = 2 arguments, so the maximum is 20
  • 5 pros + 5 cons = 10 arguments, so the maximum is 100

The page lets you submit as few as 1 pro and 1 con. If you do that and both are excellent (10/10 and 9/10), you get 19 out of a possible 20. But the page shows "19/100", which looks like you failed.

Where it happens:

  • The adding up is done in backend/services/pros_cons.go (function EvaluateProsCons).
  • The "/100" text is hard-coded in frontend/src/Pages/ProsConsChallenge.tsx:

tsx
Final Score: {evaluation.score}/100

Suggested fix: show the score out of the real maximum, which is 10 × the number of arguments submitted (so "19/20" in the example above). Only the label changes; the points users earn stay exactly the same. I'd like to work on this.

Steps to Reproduce
  1. Log in and open Coach, then Pros and Cons Challenge (/coach/pros-cons).
  2. Click "Get Topic".
  3. Fill in only Pro 1 and Con 1 with good arguments and click "Submit Arguments".
  4. Both arguments get high scores (for example 10/10 and 9/10), but the page shows "Final Score: 19/100"
Logs and Screenshots

Screenshot taken on the current main branch. The evaluation response was mocked using the same format the /coach/pros-cons/submit endpoint returns

preview
Environment Details
  • OS: Windows 11
  • Browser: Brave (Chromium-based)
  • Frontend: current main (95b24b5)
  • Not specific to any browser or OS, because the "/100" text is hard-coded in the page.
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
TypeScript
Stars
108
Forks
266
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/DebateAI

All issues in AOSSIE-Org/DebateAI

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.