2 December 2026
How Does a Robot Play Chess? How a Computer 'Thinks' Ahead
Put a chessboard in front of a child and ask: "How can a machine play chess better than a person?" The question sounds like a riddle, but the answer is very practical. A computer plays chess well not because it is clever like a person, and not because it has feelings or intuition. It plays well because it does three things extremely well: it remembers the rules, it tries out many moves in advance, and it scores each position patiently. Understanding those three things helps your child see computers more clearly: not magic, but a rule-based way of thinking that children can practise too.
Chess is a game of rules and choices
Chess suits a computer for one reason: everything is clear. Each piece moves by its own rule — pawns go forward, bishops go diagonally, rooks go along ranks and files, knights jump in an L shape. No move is vague, no rule has to be guessed. The goal is clear too: checkmate the opponent's king. When the rules are clear, a machine can work with the game without understanding what chess "means".
Each turn, the player faces a choice: out of all the legal moves, which one should they pick? A game of chess has so many possible games that nobody could play them all in a lifetime. Good players do not try every possibility. They pick out a few moves worth thinking about, and then think further: "if I move here, what can my opponent do?" That is where the computer starts its work.
How a computer "thinks", in four steps
Imagine a chess program taking its turn. It repeats four steps until it has chosen a move.
Step one: list. The program lists every legal move from the current position. It leaves none out, it never forgets a rule, and it never makes an illegal move because it was thinking too hard. That is the machine's first strength: its memory of the rules is perfect.
Step two: imagine ahead. For each move, the program imagines how the opponent might reply, and how it would move next. It goes several moves deep like this, just as a human player thinks: "if I take this pawn, the opponent will take it back with the bishop, then I will give check with the rook." The computer goes deeper than a person in that it can look at many branches at once, and it does not get tired of remembering a long chain of imagined positions.
Step three: score. At the end of each imagined chain, the program scores the position. Capturing a strong piece earns points, leaving its own king exposed loses points, controlling squares in the centre earns points. The score is how the computer compares very different positions on a single scale. The programmers decide what is worth points, and how many — the computer only calculates according to that scale.
Step four: choose the best move. After imagining and scoring, the program chooses the move that leads to the best position, assuming the opponent will also choose the best move for themselves. That assumption matters a great deal: the computer does not pick the move that is best if the opponent plays badly, but the move that is best if the opponent plays well. That is a careful way of thinking children should learn too: do not make a plan that depends on the other person making a mistake.
These four steps repeat on every turn. The computer does not feel nervous, does not lose heart when it loses a piece, and does not rush when it is winning. That patience, together with its speed of calculation, is why chess programs today play at a level beyond even the best human players. But that does not mean the machine "understands" chess the way a person does. It only follows rules and adds up scores, very fast and very carefully.
How is a chess-playing robot different from a chess program?
A chess program lives inside a computer: it "thinks" and gives a move. A chess-playing robot has to do two more jobs. First, it must see: a camera photographs the board, and a program works out which piece is on which square. Then it must act: a robot arm picks up the piece, moves it to the right square, and sets it down gently.
Those three parts — see, think, act — are the three parts of almost every robot: sensors gather information, a program decides, and motors carry out the action. When your child understands a chess-playing robot, they also understand the general shape of a vacuum robot, a delivery robot, or an obstacle-avoiding robot: all of them see, think, and then act. And if one of the three parts goes wrong — the camera misreads a piece, the program scores wrongly, or the arm sets a piece on the wrong square — the whole move fails. Fixing a robot often means finding out which of the three parts is at fault.
Practising "thinking like a computer" at home
You do not need to buy a chess robot for your child to practise this way of thinking. A chessboard, or even a simpler game, is enough.
Game 1: Think out loud. Play noughts and crosses or chess with your child, and both of you say your thinking out loud before each move: "If I go here, what will you do? Then what will I do next?" Saying it out loud helps your child see that an adult's thinking also happens step by step, not as an answer that appears instantly. After a few games, swap roles: let your child speak first while you listen.
Game 2: Two moves ahead. Before touching a piece, each player must be able to say their next two moves: this move, and then, after the opponent's reply, where they will go. If they cannot say it, they must think longer. This game is slow, but that slowness teaches the habit of looking ahead — the habit a computer performs with calculation, and a person performs with imagination.
Game 3: Score the position. After a game, look back at a position from the middle of the game together and ask: "which side is better, and why?" Count the pieces left, check which king is safer, and see which side controls the centre better. Your child is doing exactly the computer's scoring step, only with eyes and thought instead of fast arithmetic. When your child can say, "White is better because White still has the stronger pieces," they have understood that a score in chess is not a secret.
One small warning: do not turn chess into a test. If your child loses many games in a row, play short games, or play as a team — two people on one side, discussing every move together. Chess teaches thinking ahead, but it is enjoyment that keeps a child at the board long enough for that thinking to become a habit.
A computer is strong, but it is not everything
Finally, tell your child something balanced. A computer plays chess well because it follows rules and calculates without getting tired. But chess is not all of life, and the computer's way of thinking is not the only way of thinking. Human players also rely on experience, on patterns they have seen many times before, and on a feel for the opponent — things that are hard to write down as a score. A strong player can look at a position and "feel" that it is good, before they can explain why. A computer does not have that feeling. It has a different strength: it never forgets, never tires, and never rushes.
When your child understands both of those things, they will neither fear computers nor treat them as all-powerful. They will see a computer as a tool that thinks in its own way — and their own way of thinking is just as valuable. That is the healthiest attitude for a child growing into a world where machines are everywhere: curious, clear-eyed, and remembering that the final decisions still belong to people.
Start with ManuStem: Your child aged 8+ can learn robotics right in the browser — no kit to buy, nothing to install. 28 lessons including 8 Component Lab lessons and 20 Competition Robot lessons, 4 free trial lessons, and an AI co-pilot at every step: AI Circuit wires, Gen AI writes code, the Agent coach debugs, plus a 3D robot preview. Learn in Vietnamese and English. Explore now at stem.manusignal.com.