Gamification Tied to Mastery: Quizzes, Puzzles and Badges
How PDP Shikshya builds gamified learning — quizzes, four puzzle types, badges and a leaderboard — that reinforces mastery instead of farming dopamine.
At pdpspectra we build learning and operations platforms for an international audience, and gamification is where most learning products quietly go wrong. The easy version optimises for time-on-app: endless streaks, confetti for logging in, badges that reward showing up rather than understanding anything. It works as growth-hacking and fails as education, because it teaches a child to protect a streak, not to learn.
The gamified layer inside PDP Shikshya, our EdTech product, is built to the opposite spec — every reward traces back to demonstrated understanding. This post is the engineering walkthrough of how that holds up in code: the quizzes, the four puzzle types, the badges, the leaderboard, and the deliberate way the whole thing is wired to mastery and the Socratic approach rather than to dopamine.
If you want the wider context first, start with the platform overview, the Socratic tutor deep-dive, and the coding academy post.
Quizzes: grade-aware, curriculum-scoped, cached#
The Quiz Challenge is the core practice loop. A student picks a subject — Science, Mathematics, English, Social Studies, Nepali — and the platform generates a short MCQ set tuned to their grade. “Grade-appropriate” is not a label here; it is enforced in the generation prompt, where a grade-9 quiz is deliberately easier than a grade-12 one, both aligned to Nepal’s CDC and NEB curriculum standards. Subject scope is enforced hard, too: a Science quiz contains only physics, chemistry, and biology, never a stray maths question.
Each question is a strict four-option MCQ with a zero-based correct index and a one-sentence explanation, validated against a schema before it ever reaches the student. The student plays through the set with instant feedback — the chosen option turns green or red immediately, the correct answer is highlighted either way, and the explanation appears so a wrong answer becomes a teaching moment instead of a dead end. A running score and streak track through the session, and a results screen closes it out.

The scoring is small and honest#
The point formula is the whole philosophy in five lines of Python. Each correct answer is worth 10 points. A perfect set — every question right — adds a 25-point bonus. The in-session streak adds 2 points per consecutive correct answer. So a student who gets four of five with a three-answer streak earns 40 plus 0 plus 6, for 46 points. There is no participation payout, no points for merely opening the app. The reward is proportional to correct, explained answers, and the perfect-score bonus pulls toward mastery of the whole set rather than a lucky guess or two.
Behind the scenes, generated questions are cached and reused. Each question is stored as its own row keyed by tenant, subject, grade, difficulty, and topic, with a 30-day freshness window, and a per-student “seen” table guarantees the same student never gets the same question twice even though other students may. That keeps AI implementation cost and latency down without making practice repetitive — and the per-school cache toggle lets an admin trade cost for freshness. The whole generator is curriculum-walled the same way the Socratic tutor is, so questions stay inside the syllabus.
Four puzzle types, same mastery loop#
Beyond quizzes, the Brain Puzzles section ships four distinct formats, each AI-generated per subject, grade, and optional topic, and each running through the same points and badge pipeline:
- Word Scramble — unscramble a single vocabulary term (4 to 12 letters) from a hint that deliberately never contains the word itself.
- Match-Up — pair each term with its short definition.
- Odd One Out — spot the one item of four that does not belong to the category, with a one-sentence explanation of why.
- Memory Match — flip cards to find matching pairs of related terms.
What makes these reinforce learning rather than test reflexes is that the content is generated against the curriculum, not from a generic word bank. An Odd One Out in biology might present mitochondria, ribosome, chloroplast, and heart — and the answer rewards knowing that a heart is not a cell organelle. The puzzles are vocabulary and concept recall dressed as games, which is exactly the kind of retrieval practice that consolidates what the tutor and the classroom introduced.
Crucially, both quizzes and puzzles support topic practice scoped to a single chapter. The generation prompt enforces a hard constraint that every item must be strictly about that topic. That is the anti-grinding mechanism: a student cannot farm points by replaying the one easy subject. A teacher can point practice straight at a weak chapter, and the reward follows the work that matters.
Badges that mean something#
Achievements in PDP Shikshya are computed live from real activity rather than tracked as a separate score you can game. The evaluation function reads a student’s existing quiz, puzzle, course, and login data and derives which badges they qualify for, awarding each at most once and recording the timestamp. The set spans genuine accomplishment, not attendance:
- First Steps — finish your first quiz or puzzle.
- Quiz Ace — score 100% on a quiz.
- Sharpshooter — log five perfect quizzes (its progress bar fills toward the target of five).
- Week Warrior and Unstoppable — sustain a 7-day, then a 30-day, learning streak.
- Course Starter and Lesson Hunter — complete your first, then your fifth, coding-academy lesson.
- Centurion — earn 100 bonus points.
- Early Bird and Night Owl — finish a quiz before 7 AM or after 10 PM in Nepal local time (UTC+5:45), a small nod to study rhythm.
- Comeback Kid — recover a streak with a freeze token.
- Polyglot — study in नेपाली.
The weighting is intentional. Most of these gate on doing the learning well — perfect scores, accumulated mastery, real progress through courses. Even the streak badges are guarded against the failure mode that streaks usually create.

The streak, defused#
Daily streaks are the most abused mechanic in EdTech, so this one is built to encourage a habit without punishing a real life. The check-in bonus starts at +5 points on day 1 and climbs +5 each consecutive day, capped at +35 on day 7 and held there — so the incentive to come back is front-loaded and then flat, not an ever-escalating trap. A student can only claim once per calendar day. And critically, each student starts with two streak-freeze tokens: miss a single day, spend a freeze, and the streak survives. That is the difference between a tool that builds a study habit and one that induces anxiety about a number. Recovering a streak with a freeze is itself what unlocks the Comeback Kid badge — the system rewards resilience, not perfection.
The leaderboard, and where the real signal lives#
The leaderboard ranks students by total points — quiz points plus bonus points — within their school, since every school is an isolated tenant. A student can view it across all grades or filtered to their own grade, and their own row is highlighted even when they sit outside the top of the board, so the comparison is motivating rather than demoralising. Results are cached briefly per user to keep it fast.
But the leaderboard is deliberately the student’s view, and it is not where a teacher judges learning. That signal lives somewhere harder to game. Two mechanisms connect the points economy to genuine cognition:
The first is the Analog Handshake. A student photographs their handwritten working; the platform’s vision check verifies it shows real step-by-step reasoning — rejecting blank, printed, or copied work — and awards 15 process points for verified work, with the photo never stored. That ties points directly to thinking shown on paper, the part a leaderboard-grind can never fake.
The second is Proof-of-Thought telemetry, the teacher-facing layer described in our teacher telemetry post. Teachers do not see a leaderboard; they see a per-student “cognitive fingerprint” computed from attempts, hints, struggles, breakthroughs, and escalations — a score that rises with independent breakthroughs and falls with hint-dependence. So while a student chases points and badges, the teacher is reading whether real reasoning is happening underneath. The two views are different on purpose: gamification motivates the learner, telemetry tells the teacher the truth.
Why we built it this way#
Gamification done carelessly optimises the wrong number. We designed this layer so that the number it optimises — points — can only really be moved by answering curriculum-scoped questions correctly, practising the chapters that need it, and showing genuine working. The badges gate on mastery and progress, the streak is capped and forgivable, and the metric a teacher actually trusts is a separate, harder-to-fake reasoning signal.
That is the same discipline we bring to every build at pdpspectra: AI implementation and Data Platforms designed around what the operation actually needs. The games sit inside the same multi-tenant School ERP that runs attendance, homework, routines, analytics, and the Socratic tutor — Operational Automation where even the fun parts are pointed at learning. A student should want to come back because they are getting better, and the platform should be able to prove they are.
Want gamification that reinforces learning instead of farming attention? See the platform at pdpshikshya.com, or talk to us about your build at pdpspectra.com. AI-powered. Data-driven. Built to ship.