Web appsMateMAGIJA
A maths and physics site for primary-school pupils, where every lesson plays like a game.


What the teacher needed
A teacher who gives maths and physics classes to primary-school pupils wanted them to practise between classes, at home and on a phone, and to see before the next class what each of them had really done. She also needed a site that presents her classes to parents.
I set out to build a site where the school year’s maths and physics, from the 1st grade to the 8th, plays like a game: each lesson explains one idea card by card, asks about it, checks every answer exactly, and tells the teacher who did what.

What is in it
10
courses
76
chapters
696
lessons
2,741
explanation cards
9,475
questions in the lessons
2,889
drawings
- The courses
- 8 of maths, one for each grade from the 1st to the 8th, and 2 of physics, for the 7th and the 8th. Each is a path of short lessons in chapters that follow the school year, led by its own guide.
- The explanations
- Every lesson opens with cards: one sentence each, beside a drawing that changes as the idea builds. Each drawing is an SVG made from numbers, so a figure, a clock or a written sum is drawn, never pasted in.
- The questions
- 5 kinds: tap a choice, type the digits, pick every right one, put in order, build. Every typed answer is put back into its task’s own equation by a check, which must find it true.
Counted from the site’s code. The questions are those of the lessons; the 7 practice games beside the paths have more.
How a lesson works
A course is a path, and every lesson is a field on it. A lesson opens with a few cards that explain one idea, then asks about it; when it is done, the next field opens.
Below is a lesson of my own to play, built with the same engine: three short lessons on reading a phasor, the arrow an electrical engineer draws for a wave.
Play a lesson
Three lessons, about four minutes, no account: press the lesson marked Play next, read its cards, then answer. Get one wrong on purpose to see its hint.
The rules, with their numbers
First tries count
A question missed comes back once, at the end of the lesson. Getting it right then finishes the lesson, but only first tries count toward the stars.
Stars
Three stars from 90% right on the first try, two from 60%, one for finishing.
Points
10 for finishing a lesson, and 1 more for every answer right on the first try.
Part credit
A task with several right answers counts the part found: two of three is worth two thirds, and the task comes back once.
On the live site



How every answer is checked
Every equality written on a card, and every typed answer put back into its task’s own equation, is worked out again by a check of my own: 4,625 of them, exactly, with fractions, roots and π kept as they are and physics in SI units. It finds none wrong.
What a pupil sends is marked again by the server, from what was tapped or typed, and a task with several right answers counts the part found.
What the teacher sees
The teacher has a control centre behind a password. For each pupil she makes a personal link, and sends to it the part of a course to work on before the next class.
Every answer given through the link is kept as it was given, with how long it took and whether it was right the first time. The mistakes are grouped by task, and a task opens as the pupil saw it, so the class starts from what went wrong.
What I built
A web app in React and TypeScript, with a small server and a database, live at matemagija.com. In parts:
1. The lesson engine
The path, the cards and the questions: 5 kinds of question (tap a choice, type the digits, pick every right one, put in order, build), marked with part credit, a miss brought back once, stars and points.
2. Ten courses’ builders
Each grade’s tasks written with a kit of my own that works numbers out exactly: fractions, roots and π as they are, physics in SI units. 696 lessons in 76 chapters, and 7 practice games beside the paths.
3. The drawings
18 kinds of SVG drawing made from numbers (figures on squared paper, number lines, clocks, rulers, fractions, scales, written sums), 2,889 of them in the lessons, sharp on any screen.
4. The control centre
The teacher’s page behind a password: classes, a personal link for each pupil, a part of a course sent to it, every answer kept as it was given, the mistakes grouped.
5. The free trial
152 lessons open to anyone, the first 2 of every chapter with their first 4 questions, with no account and no password.
6. Cyrillic and Latin
Every word of the site written once and shown in either script, with a switch in the header; the choice stays on the device.
7. Privacy
Analytics only after a yes to cookies, and a pupil’s answers seen only by the teacher and the pupil, deleted when asked.
8. Speed
The first download kept small: a course’s lessons and drawings load only when that course is opened.
The result in plain words
10
courses, maths and physics
696
lessons, each a game
152
lessons free to try
4,625
equalities checked, none wrong
A pupil gets the school year’s maths or physics as a path to walk on a phone, a lesson at a time, with a card for every idea and a question for every card. The teacher gets, before each class, what each pupil did and where they went wrong.
A parent or a visitor can open 152 lessons with no account and see how it works before asking for classes.
Questions people ask
Can I try a lesson without an account?
Yes. 152 lessons are free to try: in every chapter of every course the first 2, each with its whole explanation and its first 4 questions. No name, no password.
Does it work on a phone?
Yes: the path, the cards and the questions fit a phone held upright, as in the pictures above, and on a computer the same page opens into three columns.
Is it in Cyrillic or in Latin?
Both. A switch in the header turns the whole site from one script to the other, and the device remembers the choice.
How does the teacher know who did what?
Each pupil plays through a personal link the teacher makes. Every answer given through it is kept, with how long it took and whether it was right the first time, and the teacher sees it in her control centre.
What is kept about a child?
Only what the teacher types to make the link (usually a first name) and the answers given through it, seen by the teacher and the child alone and deleted on request. The free trial asks for no name at all. The site’s privacy policy, linked below, says it in full.
Can you build one for my classes?
Yes: a site like this, with your own courses or a smaller start, is one of my services. See what it costs.
Links
- MateMAGIJA (opens in a new tab) · the live site, in Serbian
- A free lesson (opens in a new tab) · the 8th-grade physics course’s trial, with no account
- Its privacy policy (opens in a new tab) · what is kept about a pupil, and for how long
- My services · a site like this for your own classes