Skip to content

Web appsMateMAGIJA

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

MateMAGIJA on a computer: the courses down the left, a course's path of lessons in the middle, and its first lesson open on the right at a card that explains a pendulum's swing with a drawing
The same lesson on a phone: the guide's sentence above, the drawing of the pendulum below, and the button to go on
A free lesson of the 8th-grade physics course, on a computer and on a phone: the course’s path of lessons, and its first lesson open at a card.

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.

The site's front page: a guide for every grade, a ladybird, a chick, a bunny, a bee, a fox, a wolf, an owl and a dragon, jumping out of a phone that shows a path of lessons
The front page: 8 guides, one for each grade, each leading its own course.

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

  1. 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.

  2. Stars

    Three stars from 90% right on the first try, two from 60%, one for finishing.

  3. Points

    10 for finishing a lesson, and 1 more for every answer right on the first try.

  4. 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.

Set how many of ten were right first time, then finish the lesson: its field fills with its stars, its points add up, and the next field opens. A made-up path of six lessons, on the engine’s own rules.
Turn the cards: one idea built over three of them, as a lesson explains, here a sum worked a column a card from the ones up, the carry put over the next column. The drawing stays; only what the card adds is new.

On the live site

A course's path on a phone: the 5th-grade maths course, its guide saying hello, and the first lessons of its first chapter as fields
A path, on a phone
A question on a phone: the lesson's first task, with four answers to choose from
A question
The same question on a computer, beside the course's path
The same question on a computer, the path beside it

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.

Type an answer and check it: a wrong one shows its hint and comes back once at the end of the lesson; a task with two numbers, or with several right answers to pick, is worth the part found. Made-up tasks, marked by the engine’s own rules.

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.

Tick the lessons to send to a made-up pupil, then play it: the pupil does two before the class, and the row the teacher sees fills in.
The control centre, drawn with made-up pupils. The real one is behind the teacher’s password and is never shown: every screen of it holds pupils’ answers.

What I built

A web app in React and TypeScript, with a small server and a database, live at matemagija.com. In parts:

  1. 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. 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. 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. 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. 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. 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. 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. 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.