Privacy

Code Legions is a game for learning Python, made for children, so it keeps as little as it can. Here is what it keeps, where, for how long, and how to have it deleted.

Who keeps it

Code Legions is run by Code Legions, who decides what is kept and is responsible for it. Questions, or a request about your data: privacy@codelegions.dev.

Playing without an account

Without an account, nothing about the player leaves the computer: their name, face, progress and code stay in the browser's own storage. We see none of it. The pages, their fonts and Python itself come from this site alone, never from another company's servers.

Accounts

We keep your name, your email address, your password (only as a one-way hash, which can't be turned back into the password), when you agreed to this notice, who plays on your account, and, while you're signed in, your session: when it started, your IP address and your browser's name, to keep the account safe. If you play yourself, your player has a username, a name and a picture from the game. If you sign in with Google, Google tells us your name and email address; we keep nothing else from Google.

Minor accounts

A minor account has only a username, a name or nickname, a picture from the game, and a password (as a hash). No email, age, school or location. Only the account that made it, its parent or guardian, makes and changes it; a username that isn't the child's real name is best. While a minor is signed in, their browser keeps a sign-in cookie. Anyone under 16 plays like this or in a class, never with an account of their own.

Classes

A teacher's class has a name and a code. A student in it has only the ID and the name their teacher typed and a picture from the game: no password, no email. The teacher adds, changes and deletes them, with the school's permission, and switches the class's sign-in on only for lessons. For a class, the school decides what is kept, and we keep it only on the school's behalf.

Schools

A school with a licence has a name, the licence's last day, its number of teacher seats and of students, and the email addresses of its managers and teachers. Its managers see the names and emails of the teachers in it and how many classes and students each has, never the students themselves. Taking someone out of a school, or deleting the school, forgets their email there; their classes stay theirs.

What playing keeps

For a player who's signed in, the game keeps their progress and code, how long they spent on each quest (only while it's open and they're typing or clicking) and how many times they pressed Run, the code each quest was won with, their achievements and the best each game mode came to, with their other things, so they have them on any computer. A student's teacher sees this for the students of their class, to help them learn.

Sharing with everyone

A player can share one of their maps or islands with everyone. A moderator looks at it first; then anyone can see and play it in the gallery, with only the player's first name (or a minor's username). Other players can give it a star (we keep who starred what, so each can only star once). The player can stop sharing it at any time, and it goes when the player is deleted. A player with something in the gallery also has a page there that anyone can see: the same name, their player's face, what of theirs is in the gallery and the achievements they've earned. If a player is deleted (with their account or their class, or on their own), what they shared that's in the gallery stays there under the name it showed, so others can still play it; what was still waiting, or wasn't accepted, is deleted with them. A grown-up or a teacher can ask us to take it out of the gallery too. Before anything is shared, the player says they made it and agrees that Code Legions may use it freely: show it, copy it, change it and share it, for free and anywhere, also after it stops being shared or the player is deleted (we keep when they agreed). For a child, the grown-up or the teacher who looks after their account agrees for them by letting them share.

The class arena and the global arena

A player can send their army's script from their arena page. A student's goes to their class's arena: their classmates' and their teacher's browsers run it in battles, so they can read it, and see the student by their first name; the teacher's tournament table is kept with the class. If their teacher enters the class in the global arena, or a player who isn't a student joins it themselves, everyone signed in sees each army's place there with only its player's first name (a child's account: its username), never a class's name, and the browsers of everyone in the global arena run its script in battles too. Every student of a teacher's classes is on that teacher's school leaderboard too: the teacher and the students of all their classes see each army's place there, with its student's first name and class, and their browsers run its script in battles.

Bug reports

When you send a bug report or an idea from the site, we keep what you wrote, the page it was sent from, the language, your browser's name and your screen's size, and, sent from a game, the code being written there and the game's last messages (the code can be left out). Only the site's maker reads the reports, to mend and improve the game. A report is kept until the maker deletes it, and is deleted with the account or the player who sent it; it's in "Download my data" too.

Codi, the coding helper

Beside the coding exercises, a player signed in can ask Codi, a helper made with an AI model, about their code. Only when they ask, what they see is sent to the model's provider to answer it: the challenge, their files there, the last Output and test results, and their question with the chat so far. Their name, account and the rest of what they keep are not sent. The chat is kept only in their browser's tab and is gone when it closes; the site counts only how many questions they ask each day.

Why

Only to run the game: so your family can sign in on any computer and, soon, keep progress and code safe online. Nothing is sold, shared for advertising, or used to profile anyone. The legal basis is the service you asked for (your account and its players), your consent where we ask for it, and, for a class, the school's task of teaching, for which we work on the school's behalf.

Where it's kept

On Cloudflare's servers, with the database and files in the European Union; the pages, their fonts and Python come from there too. Emails (confirming your address, resetting a password) are sent through Cloudflare, which also checks that a person, not a robot, fills in the sign-up form (Turnstile). Cloudflare handles the data only on our behalf. It is an American company, so it is also bound by the EU-US Data Privacy Framework and the EU's standard contractual clauses. If you sign in with Google, Google knows you did.

Cookies

Only the ones the site needs: your session while you're signed in, a minor's while they're signed in, and the language you picked. No advertising or tracking cookies, and no analytics that follow anyone.

How long

As long as the account exists. Sessions end after 30 days or when you sign out; a minor's or a student's also ends when the browser is closed, and a student's after an hour without playing; links in emails work for an hour. A deleted player or account is deleted at once, and gone from backups within 30 days.

Your rights

At any time, on your account page, you can download everything kept about you and your minor accounts, correct it, and delete a player or your whole account with all its players (which also withdraws your consent). You can also write to privacy@codelegions.dev, or complain to the data protection authority where you live, or to Lithuania's, the State Data Protection Inspectorate (vdai.lrv.lt).

Changes

If this notice changes in a way that matters, account holders get an email before it applies.

Last updated: November 3, 2026