-
Sufference Menu - Pick a run, duel a friend, join a party game, check the shop, your streak and the leaderboard.
-
Sufference (Quizzes Imported In The Game) - Paste in your own notes or quizzes and turn them into runs, duels and wagers.
-
1. Sufference Action (Over 30 Moves) - Every right answer triggers a different attack, so no two fights look the same.
-
1. Sufference Death (Over 60 Deaths) - Get an answer wrong and you go out in a new way. Over 60 different deaths to find.
-
1. Sufference Puzzles (Over 30 Puzzles) - Mix up the questions with over 30 different puzzle types to keep each run fresh.
-
1. Sufference Weapons (Over 30 Weapons) - Collect swords that add damage in duels. Buy them in the shop or win them from the daily streak.
-
Sufference Armor - Wear armor skins that cut the damage you take. Better armor means you last longer in a fight.
-
Sufference Multiplayer (Duels) - Fight a friend live. Faster answers deal more damage, and each player gets one special move.
-
Sufference (Story Mode) - Play through a story as you answer questions, with different endings depending on how you do.
-
Sufference Romance - Meet characters along the way and build a relationship through your choices in the story.
Inspiration
Memorizing quizzes and flashcards gets boring fast. You read the same questions again and again, and after a while you just click through without thinking. We wanted a more fun way to learn, where studying feels like playing a game.
But making the questions is boring too. So we asked: what if you could paste in your notes, let AI turn them into a quiz, and then play it against your friends?
What it does
Sufference turns studying into a game that runs in your browser. Paste in your notes or a script of questions, and the AI builds the quiz. Then play it in different ways:
- Runs: answer question after question and try to survive, using one-time items like shields.
- Live duels: fight a friend in real time. Right answers deal damage, faster answers deal more, and each player gets one special move.
- Wager quizzes: send a friend a quiz with gold on the line. If they pass, they win. If they fail, they lose their bet.
- Party games: 2 to 10 players play together and share a prize pot. You can make a private room and share a code.
- Rewards: collect pets, swords and skins, keep a 30-day daily streak, and climb the weekly and all-time leaderboards.
- Admin panel: the owner can change streak rewards and shop prices from inside the game, with no code.
Who it's for: students who find flashcards boring and want to study with friends.
The AI: what it does and why
We use Google Gemini 3 Flash (with Gemini 2.5 Flash as a backup). It does three jobs:
- Notes to questions: you paste plain study notes, or upload a script of questions. Gemini writes the questions and answers, then a second pass checks them.
- A short "Why" after each wrong answer: Gemini writes one line explaining the right answer, so you learn from your mistakes instead of just losing health.
- Deck editing: you can ask the AI to change a deck, such as fixing a question.
Example (an illustrative example of what the AI does):
Input pasted into the game:
The mitochondria is the part of the cell that makes energy. It turns glucose and oxygen into ATP. Plant cells also have chloroplasts, which do photosynthesis.
Questions the AI writes:
- What does the mitochondria do? → It makes energy for the cell
- What molecule does the mitochondria make from glucose and oxygen? → ATP
- Which part of a plant cell does photosynthesis? → Chloroplasts
"Why" line after a wrong answer: "Mitochondria turn glucose and oxygen into ATP, which is the energy the cell uses."
If a script already has questions and answers in it, the game uses those. Gemini is only used for questions that have no answer written yet.
The AI is the reason the game is useful. Without it, you'd have to write every question by hand.
How we built it
The game is a web page made with HTML and JavaScript. We used Supabase for accounts and the database. Gemini is called through a Supabase Edge Function, so the API key is never in the browser.
Most of the multiplayer rules run in the database, not in the browser, so the server checks every answer and no one can cheat by changing the page.
When players bet gold, the database holds it safely until the game ends. In a party game the pot is split between the top three players: 50% to first place, 30% to second and 20% to third. With only 2 players, the winner takes the whole pot.
In a duel, a right answer deals damage based on the move, plus a speed bonus (+5 for the faster correct answer), plus any sword bonus, plus the special move (+15, once per duel). Armor then reduces the damage that comes in.
The admin panel reads its lists straight from the game, so new items and skins show up in it on their own. Rewards and prices the owner changes are saved in the database.
Testing and limitations
How we tested the AI:
- Real notes in, quiz out: we pasted study notes into the game and played the quizzes the AI made, to check the questions made sense and had the right answer.
- Two checks on every answer: Gemini writes each answer as text, then the game asks it again as a second pass. If the two answers don't match, the question is flagged instead of used.
- Fallback model: if the main model isn't found, the game switches to Gemini 2.5 Flash. We tested that path too.
- Failure handling: we turned off the connection and checked the game shows a clear message and doesn't save a broken quiz.
Failure case: AI-written questions can be wrong, too easy, or have more than one possible right answer. The second pass catches many of these, but not all, so we recommend a quick look at a deck before wagering gold on it.
Other limits:
- The AI needs an internet connection and a signed-in player. If Gemini is down or the free limit runs out, the game says so.
- The server checks every answer, so editing the page won't give free wins.
Challenges we ran into
- Trusting the AI: a wrong answer key ruins a quiz. We made the AI write answers as text and checked them a second time.
- Stopping cheating: players control their own browser, so the server had to check answers and handle gold.
- Fair timing: duels and party games needed the same rules for everyone, including what happens when someone leaves or runs out of time.
- Weekly leaderboard: it needed its own counters so a weekly reset never touched anyone's gear, gold or badges.
- Editing without code: we wanted the owner to change rewards and prices from the game, so we added settings stored in the database.
Accomplishments that we're proud of
- AI that turns plain notes into a playable quiz.
- A full multiplayer game with duels, bets and party rooms, where the database enforces the rules.
- A gold system that stays safe even when a game is quit or times out.
- An admin panel that manages rewards, prices and the shop without writing code.
What we learned
- AI is most useful when something checks its work.
- Putting the rules on the server makes cheating much harder.
- Playing against friends makes repeating the same material far more fun. People will go over a topic many times if a duel or a streak is on the line.
What's next for Sufference
- A mistake book that brings back the questions you miss until you get them right.
- Deck import and export (CSV, Quizlet and Anki) and image questions.
- Exclusive swords and cosmetics from the daily streak.
- More question sets, seasonal events and tournaments.
Built with
HTML, JavaScript, Supabase (database, accounts, Edge Functions), Google Gemini 3 Flash.
Credits
- Muntakim Snigdho: built the game, database and AI features.
- Jacob Schmidt: helped with ideas and testing across the project.
- Liam Orr: helped with ideas and testing across the project.
- AI assistance: Claude helped write code and text.