Skip to content

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.

Patterns and rules (the root of loops)

Spot the rule that repeats. Younger kids start here; a repeating pattern is a loop in disguise.

Logic: true, false and conditions

Decide whether a statement is true, and sort things by the rules they match, like an if-statement.

Functions: input → rule → output

Feed a number into a machine, predict what comes out, and work the rule out backwards.

Constraints and strategy

Hold several rules at once and think ahead to find a move that always works.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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