Algorithm Visualisation Puzzle Game for Learning Data Structures
A browser puzzle game for CS students where players discover sorting, searching, greedy and dynamic programming strategies by solving levels, then see the formal algorithm and its complexity named afterwards. An educational game final year project judged on a real learning study, not just animations.
Intermediate
A small team, or one strong student willing to learn something new.1 semester · 2 students
6 to ship
3 optional extrasSuggested stack
What you should ship
- At least four algorithm families as puzzle mechanics: sorting, searching or pathfinding, greedy choice and dynamic programming
- Five to eight progressive levels per family, from trivial to difficult, with level data stored as JSON
- A reveal screen after each family linking what the player did to the named algorithm, pseudocode and its time complexity
- Move counting and comparison against the optimal solution computed by the game
- Anonymous play logging of attempts, moves and time per level for later analysis
- A learning study with at least 15 participants: concept test before and after, compared with a group that reads a standard explanation
If you have time left
- A level editor so instructors can create and share new puzzles
- Difficulty that adapts to how quickly a player is solving
- An instructor view showing which concepts a class most often fails
The problem: watching an animation teaches very little
Most algorithm visualisations animate a correct solution while the student watches. Watching bubble sort swap bars is pleasant, but the student never has to make the decision the algorithm makes, so the idea rarely sticks. Students in data structures courses then memorise code for exams and forget why it works.
People learn an idea faster when they have to invent part of it. A guessing game with limited attempts teaches halving better than a slide on binary search, because the player discovers that halving is the only way to win.
What already exists and the gap
- VisuAlgo, from the National University of Singapore, animates dozens of data structures and algorithms step by step and includes e-lecture slides and quizzes.
- Human Resource Machine and 7 Billion Humans by Tomorrow Corporation are commercial puzzle games where players write small programs to move data, one for a single worker in assembly-like steps and one for many workers at once.
- CS Unplugged teaches computing concepts through classroom activities without computers.
VisuAlgo explains but does not make you decide. The Tomorrow Corporation games teach programming thinking, but they do not name classic algorithms or their complexity. The gap is a game where the mechanics are the algorithms, the player discovers the strategy, and the reveal names it and connects it to what a course or a coding interview expects.
What you build
- Player (student): plays families of levels, gets a star rating based on moves compared with optimal, unlocks the reveal.
- Instructor: shares a link to a family before a lecture, and later sees anonymous aggregate results.
Example mechanics:
- Searching: find a hidden number on a shelf of sorted boxes with limited peeks.
- Sorting: reorder crates with a limited number of swaps or a single "insert" move.
- Greedy: schedule deliveries or give change with the fewest items, where greed works in some levels and fails in others.
- Dynamic programming: a treasure grid where the player fills a table of best scores and discovers that remembering past answers avoids recomputation.
The technically interesting part
There are two.
Computing the optimal answer for every level. The game must know the best possible move count to rate the player, which means implementing the algorithms themselves, plus search for levels without a known closed form. Test level logic separately from rendering.
Designing dynamic programming as a mechanic. Making overlapping subproblems feel like play rather than a chore is genuinely difficult. A good attempt, even if it only partly works, is the most original part of the project. Report what you tried and what players did.
How to evaluate it
- Learning study: at least 15 participants who have not yet taken the relevant course or topic. A short concept test before and after; ideally compare with a group that reads a textbook section for the same time.
- Level analytics: completion rate, attempts and time per level, to find levels that are too hard or teach nothing.
- Transfer: one question per family asking participants to apply the idea to a new problem.
- Usability: SUS questionnaire and observed sessions.
Suggested plan
- Weeks 1 to 2: paper prototypes of all four mechanics, tested with classmates.
- Weeks 3 to 6: engine, level format, searching and sorting families.
- Weeks 7 to 9: greedy and dynamic programming families, reveal screens.
- Weeks 10 to 11: logging, optimal-move calculation, pilot test.
- Weeks 12 to 15: learning study, analysis and report.
Path to a product
The first users are your own department's first and second year students; a lecturer who assigns it before a lecture is the real test. From there, a free web version with a paid instructor dashboard for schools, bootcamps and universities is a realistic model. An open source release is also reasonable and makes the project easy to show employers.
Scope warning
Four families done well. Do not build accounts, leaderboards, a full curriculum or a mobile app. Avoid animating every algorithm on earth: breadth is what VisuAlgo already does.
Learn what you need on Sefism
- DSA roadmap : the topics your four families should cover, in a sensible order.
- DSA cheat sheet : complexities and patterns to show on each reveal screen.
- Frontend roadmap : React and browser rendering for the game client.
- Game Maker's Toolkit : how good puzzle games teach a mechanic without text.
- How to start DSA when you cannot solve problems : the learner this game is for.
Get help with this idea
The design question is how to make each algorithm feel like a game mechanic, and the evaluation question is how to prove learning. Tauseef can help you choose the families, shape the reveal step, and plan a study your examiners will respect. If you are new here, create a free account first.
Ideas and guidance, not finished projects
These are project ideas and scoping guidance, published free for students to use as a starting point. I do not build, write, or sell final-year projects, and I do not complete coursework for anyone. Take an idea, make it yours, and build it.
Not sure this one fits you?
I help students pick an idea that matches their skills and their deadline, then scope it down until it is finishable. Guidance only, never done for you.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.