The A=B logo appears on a dark background with code lines and the subtitle A One-Instruction Esolang.10/10

A=B Swap symbols until they fit in fewer lines

Write tiny programs by swapping one symbol for another, then keep tightening them until they use the fewest lines possible.

Is A=B for you?

A=B reduces a programming language to one rule, then asks you to do surprisingly ambitious things with it, from uppercasing text to multiplying binary numbers. Finding the elegant few-line version of a solution is the real pleasure, and the target line counts revealed after clearing a level keep pulling you back to a problem you thought you were done with. The daft, funny story arrives through emails between a student and a professor, on an interface clean enough to keep your attention on the logic. It is a demanding game: some task wording is hard to decipher, later chapters become extremely difficult, and running a test can take minutes even for optimal code. It earns its place for anyone who wants a hard, focused logic puzzle with a sense of humour.

  • Single-player
  • 1 player
  • Windows
  • macOS

What’s good

  • Challenges encourage optimization by aiming for the fewest lines of code, rewarding elegant tricks over brute force
  • The single-instruction language strips coding down to pure logic, making you feel clever when solutions click
  • The story unfolds through funny emails between a student and a professor as you solve puzzles
  • Solving problems feels like an IQ test or a deep dive into computer science theory
  • The minimalist interface keeps the focus entirely on the text and the logic

What’s not

  • Ambiguous or poorly worded instructions can make deciphering task requirements frustrating
  • Later chapters become extremely difficult, with some challenges feeling nearly impossible without hints
  • The game lacks sound effects, music, and visual polish, which can make it feel dry
  • Testing solutions can be slow, taking minutes to run even for optimal code in later levels

A=B is a programming puzzle game that strips coding down to its absolute bones. You get a single instruction: replace A with B. Tasks range from uppercasing every letter to multiplying two binary numbers, and each one has to be solved inside that rule. The pleasure comes from doing it in as few lines as you can.

One rule, many problems

That rule is the whole language. Every task you are given is a transformation, and the only tool you have is writing lines that swap one symbol for another. Start with something plain: take a string of letters and turn it into uppercase, which means pairing each lowercase letter with the one you want in its place.

Then the tasks grow into territory that sounds far outside a single instruction, like multiplying two binary numbers. Because the language cannot do arithmetic directly, you have to break the multiplication down into replacements until the answer is sitting there, produced entirely by swaps. That is the trick of the game: a problem looks like it needs a real programming language, and you get to find out how little you actually need.

A programming puzzle interface showing code lines like ba=ab alongside test case input and expected output boxes.

A student, a professor, and a scheme

How little you need turns out to be the point of the whole assignment. You sit in a programming class, and rather than write the program your professor expects, you decide to bend the rules and hand in work done in a language of your own design, built from that single instruction.

To make the case, you supply pdf course reports describing what your language can do, laid out like the manuals you would find in a Zachtronics game. Alongside the puzzles you carry on a conversation with your professor, and the exchanges are genuinely funny. The plot is daft and stretched thin, which is exactly its charm: it gets by on charm rather than on having much story to tell.

A programming puzzle interface showing problem instructions, a test case for binary addition, and an empty code editor.

Chasing the shortest solution

That is where the story steps back and the puzzles take over. Getting a level to clear is only the first move, because each task comes with a challenge score, and the numbers keep nudging you to squeeze your solution further once you already have one working.

Then you clear a level and the target line count appears, and it can be surprisingly low. That is the moment the game gets its hooks in: you proved the task could be done, and now you have to prove it could be done in fewer lines than your solution took. So you go back over the same problem looking for an elegant trick, because a shorter version exists and finding it is a different kind of puzzle entirely. It can feel like an IQ test or a deep dive into computer science theory, and it rewards cleverness over brute force.

A programming puzzle interface showing a task description, test case, and an empty code editor window.

A card game tucked inside

After squeezing a level down to its target line count, there is somewhere else to put your head. The game ships with a built-in minigame, a card game tucked alongside the puzzles, and it is the kind of extra a Zachtronics-style title is expected to carry.

Its rules are complex enough that you have to study a manual before you play a single hand, which sounds like a chore on the page. Then you sit down with it and find the studying is the hard part: once the rules are in your head, the game itself moves quickly, and a first attempt can be enough to clear it. That makes it a change of pace from the language puzzles while asking for the same thing, working out what the rules actually allow.

A game menu showing a colony map, project cards, blueprints, and dice with values 6, 1, 4, 1 at the bottom.

What you want to know before starting?

What kind of background do you need?

None in particular. The language has one instruction, so the rules themselves are trivial to pick up: replace A with B. What requires thought is the decomposition, breaking a task like multiplying two binary numbers down into replacements. You learn the language by using it, and the pdf course reports describe how its features work.

How does the story unfold?

Through conversations with your professor as you solve puzzles. You play a student who hands in an assignment completed with a language of your own design, and the exchanges are genuinely funny. The plot is daft and stretched thin, which is exactly its charm: it gets by on charm rather than on having much story to tell.

Is there a leaderboard or ranking system?

There is no leaderboard to climb against other people. The ranking that matters is the one you set against the puzzles themselves: each level has a target line count, and clearing a level reveals it, so your own score is how close you get to that number. The challenge scores push you to optimize further after a solution already works.

What is the visual style like?

Minimalist and text-based. The interface is pared back to what the puzzles need, so the focus stays entirely on the text and the logic rather than on decoration. That keeps things clean and calm to sit with, though the trade-off is that the game has no sound effects, music or visual polish, which can make it feel dry.

Does it stay relaxing all the way through?

The pace is your own: there are no timers or punishing failure, and the clean interface makes for a low-pressure way to unwind. The difficulty, though, climbs hard. Later chapters become extremely difficult, with some challenges feeling nearly impossible without hints, and testing solutions can take minutes to run even for optimal code in later levels.

Games like A=B

See all
The Move Code Lines logo appears over blurred programming code bracketed by large white curly braces.

Move Code Lines

Move Code Lines is a game where you fix programs and make them print needed output.

82% of 92 Steam reviews are positive$7.99
Neon sign displays the title You Are The Code in pink, white, and blue against a dark background with faint circuit lines.

You Are The Code

Choose which ready-written lines execute in each order until the output matches the goal, while bugs creep along the program.

100% of 42 Steam reviews are positivePlayers online now: 1$4.39
The Human Resource Machine logo appears on a skyscraper viewed from below, with small office workers peeking around the letters.

Human Resource Machine

Program little office workers to solve puzzles. Be a good employee! The machines are coming... for your job.

94% of 3,299 Steam reviews are positivePlayers online now: 14$14.99
An orange robot shines a blue beam beside the glowing title Robo Instructus and floating code lines.

Robo Instructus

Robo Instructus is a puzzle game in which players manoeuvre a robot by issuing instructions via a simple programming language.

82% of 62 Steam reviews are positive$11.99
The TIS-100 logo in blocky text with Tessellated Intelligence System and A Game by Zachtronians below.

TIS-100

TIS-100 is an open-ended programming game by Zachtronics, the creators of SpaceChem and Infinifactory, in which you rewrite corrupted code segments…

97% of 3,398 Steam reviews are positivePlayers online now: 15$6.99
The game logo appears beside a gear icon and a brass automaton with red wings inside a circular frame.

Alan's Automaton Workshop

Alan's Automaton Workshop is an open-ended programming puzzle game.

82% of 198 Steam reviews are positive$14.99
The game logo shows a Minesweeper grid with yellow flags and the number 14 next to white title text on black.

14 Minesweeper Variants

Minesweeper but the rules are changing.

97% of 1,626 Steam reviews are positivePlayers online now: 76$6.99
The title logo for Minesweeper Variants 2 shows a grid with yellow flags and the number 14 next to white text on black.

14 Minesweeper Variants 2

Minesweeper but the rules are changing, again.

97% of 382 Steam reviews are positivePlayers online now: 37$6.99
Golden alien glyphs and the title Message From Aliens appear on a black background.

Message From Aliens

Explore an alien logographic writing system with over 1,000 glyphs, from their number system to their culture and thought.

94% of 732 Steam reviews are positivePlayers online now: 339$9.99
The pixelated green title UNDERSTAND sits inside a rectangular grid with a circle on the left and square on the right.

Understand

Each level hides a ruleset, and only your guesses and drawn paths will reveal what its dots demand.

90% of 836 Steam reviews are positivePlayers online now: 4$3.99
The Spacecaps logo appears above a grey square block connected to red and blue cross-shaped pieces on a dark background.

Spacecaps

In this puzzling space capsule, you can only move left and right, but any direction could be your left and right!

95% of 20 Steam reviews are positive$4.99