Coding & Logic Games for Kids
Coding and logic games teach computational thinking: breaking a problem into steps, spotting the rule in a pattern, deciding what is true, and testing an idea, then fixing it. Here are 14 free browser games for grades 1–8, grouped by the idea each one teaches. No login, no accounts, no ads.
Nothing to install and no code to type, so they work on school Chromebooks and tablets as well as computers.
14 Coding & Logic Games by Idea
Algorithms: step-by-step instructions
Plan a sequence of moves, run it, see what happens, then fix the bug.
- Algorithm ArcadeGrades 3–6Program the delivery bot and hit RUN — the moment of truth! Battery drains while you think, crashes replay so you can fix the route, shortest path earns a ★.
- Tower of HanoiGrades 3–6Move the whole stack of disks to the trophy peg — but a bigger disk can never sit on a smaller one!
Patterns and rules (the root of loops)
Spot the rule that repeats. Younger kids start here; a repeating pattern is a loop in disguise.
- Pattern ParadeGrades 1–3The parade marches in a repeating beat — tap the float that keeps the pattern going.
- Pattern WeaverGrades 1–4Beat the shuttle to the gap! Tap the bead that keeps the pattern going before the shuttle lands — finished strands weave into a growing ribbon.
- Sequence SprintGrades 2–4A robot conveyor belt rolls numbers past — spot the pattern and stamp the missing crate before it rolls off.
- Sequence RacerGrades 3–6The number sequence is your race track: crack the rule (+4, −3, ×2, growing jumps), tap the next number and your car zooms forward — beat the pace car!
Logic: true, false and conditions
Decide whether a statement is true, and sort things by the rules they match, like an if-statement.
- True-False CircuitGrades 2–4Equations stream toward the OUT gate — judge each TRUE or FALSE before it slips through. Fast streaks surge the circuit faster!
- Venn VoyageGrades 3–6Numbers drift toward two rule rings — tap the zone where each belongs (left, right, overlap or neither) and watch the diagram fill up.
Functions: input → rule → output
Feed a number into a machine, predict what comes out, and work the rule out backwards.
- Function FactoryGrades 4–6Number pods ride a neon conveyor through machines like ×2 and +3, morphing as they go. Tune the gates to fill each order, reverse-engineer inputs, and crack mystery rules.
- Input Output TableGrades 4–6Feed numbers through a rule machine and fill the table — find outputs, work out missing inputs, or crack the hidden rule.
- Function FilterGrade 8Cut the rows that give one input two outputs, drag table points onto a grid to route it linear or nonlinear, and dial a line's rate of change straight off the table.
Constraints and strategy
Hold several rules at once and think ahead to find a move that always works.
- Balance Puzzle BayGrades 3–6Set the mystery shape's weight so a hanging mobile hangs level — the beam tilts live until both arms match.
- Magic Square MineGrades 3–6Fill the 3×3 gem grid so every row, column and diagonal adds up to the same magic number.
- Nim NookGrades 3–6Take the winning number of tokens to trap the foe — leave a multiple of four and the game is yours.
Computer Science Education Week: a 45-Minute Class Plan
Computer Science Education Week runs December 7–13, 2026, the week of computing pioneer Grace Hopper's birthday. Many schools hold Hour of Code or Hour of AI activities that week; this plan works alongside them or on its own, and needs no student accounts.
- Warm-up, 10 minutes (projected): play the first level of Algorithm Arcade together. The class calls out each move before you press RUN, then you debug the path as a group.
- Stations, 20 minutes: three groups rotate every 6–7 minutes, one game per idea. For example Tower of Hanoi (algorithms), True-False Circuit (logic) and Function Factory (functions). For grades 1–2, swap in Pattern Parade.
- Class battle, 10 minutes: start a class battle on Algorithm Arcade. Students join with a code and a ready-made nickname, and the room is deleted within 30 minutes.
- Wrap-up, 5 minutes: ask “What was the bug, and how did you fix it?” Then hand out the certificates below.
Every game card above has a 🏫 “Use in class” menu for sharing it to Google Classroom or Teams, or starting a class battle on it.
Printable Certificate
Type a name (or leave it blank and write names by hand), then print. The certificate is made in your browser: the name is never saved or sent anywhere.
Certificate of Achievement
This certifies that
is a Computational Thinker, who planned algorithms, cracked patterns and solved logic puzzles for Computer Science Education Week (December 7–13, 2026).
October 24, 2026 · kidsdomath.com
Common Questions
What is computational thinking for kids?
It is the way of thinking that programmers use, without the computer: breaking a big problem into small steps (algorithms), noticing patterns and rules, deciding what is true or false, and testing an idea, then fixing it when it fails. Kids can practice all of it with puzzles and games long before they write code.
Do kids need to know how to code to play these games?
No. There is nothing to install and no code to type. Each game teaches one idea behind coding, such as planning a sequence of moves or finding the rule inside a machine, through play.
What grades are these coding and logic games for?
Grades 1 to 8. Pattern games suit grades 1 to 3, the algorithm, logic and strategy games fit grades 3 to 6, and the function games run up to grade 8. Each card shows its own grade range.
Are these coding games free? Do students need accounts?
Yes, they are free, with no ads and no in-app purchases. Students do not need accounts, emails or logins: share a link and they play in the browser on a Chromebook, tablet, phone or computer.
Can I use these games for Computer Science Education Week?
Yes. The class plan on this page fits a 45-minute lesson: a projected warm-up, three games in stations and a class battle. The printable certificate is made in your browser, and the name typed on it is never saved or sent.
KidsDoMath is not affiliated with Code.org, which runs Hour of Code and Hour of AI.
Patterns & logic games · Math pattern games · ← All math games by topic · Play now on the games hub