Repository navigation
Commit cd77f67
quiz: split bank into two host-selectable 15-question pools
The competition runs as two back-to-back sittings with different
students, so the bank is now two independent pools of matched shape:
5 astronomy (2 image IDs) + 10 Indian space technology = 15 each.
Pools are host-side only. Players register and wait exactly as before;
the reveal payload carries a per-pool index and a total of 15 either
way, so nothing about pool selection reaches the client. Switching is
refused while a question is open, clears every answer, and drops the
room back to lobby. Mongo snapshots are keyed per pool so the first
sitting's leaderboard survives the second.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 8c12d25 commit cd77f67
6 files changed
Lines changed: 364 additions & 123 deletions
File tree
- sast-backend
- models
- quiz
- sast-website/src
- pages
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
50 | 82 | | |
51 | 83 | | |
52 | 84 | | |
| |||
274 | 306 | | |
275 | 307 | | |
276 | 308 | | |
| 309 | + | |
277 | 310 | | |
278 | 311 | | |
279 | 312 | | |
| |||
0 commit comments