DEV Community

Cover image for Chess Masters Found a Good Move, Then Couldn't See the Better One. Their Eyes Never Left It.
Spartan Rich
Spartan Rich

Posted on

Chess Masters Found a Good Move, Then Couldn't See the Better One. Their Eyes Never Left It.

The first fix that comes to mind can make you blind to a better one. Not figuratively. An eye tracker caught it happening.

You know the moment. A test fails, you recognise the shape of the bug, and your hands are already typing the patch you've written a dozen times. It works. You ship it. Weeks later someone else deletes forty lines and solves the same problem with a one-line config change that was sitting there the whole time.

You didn't miss it because you're careless. You missed it because you knew too much.

The water jug trap

In 1942 an American psychologist named Abraham Luchins gave volunteers a series of arithmetic puzzles about water jugs. You have three jugs that hold 21, 127 and 3 units. Measure out exactly 100.

The answer is a little dance: fill the big jug, pour off 21 into the first one, then pour off 3 twice. B minus A minus 2C. Luchins handed out several more puzzles that all yielded to the same dance, and people got quick at it.

Then he slipped in one with a shortcut. Jugs of 23, 49 and 3, target 20. You can just fill the 23 and pour off 3. Many people kept doing the long dance anyway, 49 minus 23 minus 3 minus 3, as Merim Bilalić and Peter McLeod describe in a 2014 Scientific American piece about the study.

The worse part came next. Luchins gave a problem the old method couldn't solve at all, only the short one. Plenty of people in the practised group declared it impossible. A control group that had never learned the long routine solved it quickly.

Luchins called this Einstellung, German for "setting" or "attitude". Your brain gets set to one method, and the set decides what you can see.

Mid-century textbook illustration of three glass water jugs with water routed through a long looping chain of tubes while a short direct pour between two jugs is drawn only as a faint dotted line

Experts should be immune. They aren't.

The obvious objection is that water jugs are a toy, and real experts know better. Bilalić, McLeod and Fernand Gobet tested exactly that with chess players, in papers published in 2008 in Cognitive Psychology and Cognition.

They showed strong players a position with two ways to win. One was the smothered mate, a famous five-move combination every good player has memorised. The other was a mate in three, shorter but less familiar. The instruction was simple: find the shortest win.

Players spotted the smothered mate almost instantly. Most never found the mate in three.

The numbers in Bilalić's 2010 review are brutal. With the familiar mate on the board, 50% of International Masters, 18% of Masters and 0% of Candidate Masters found the short solution. Give them a nearly identical board where one bishop had moved so the smothered mate no longer worked, and all of them found the mate in three. On that second board, much weaker Class A players managed it 63% of the time.

The authors put it this way: the familiar idea dragged the experts down to the level of players about three standard deviations weaker. In chess terms, that's a gap you almost never lose across.

What the eyes gave away

Here's the part I can't stop thinking about. Players said, out loud, that after finding the smothered mate they were hunting for something shorter. They believed it.

The eye tracker disagreed. In the Cognition study the researchers followed where experts looked, and even while players reported searching for alternatives, their gaze kept returning to the squares that mattered for the smothered mate. The squares that held the faster win got far less attention. On the board where the familiar idea was disabled, the eyes looked at the old squares first, gave up on them, and moved to the right ones.

When the researchers told one player afterwards that the quick mate had been available on the first board too, he refused to believe it. "No, it is impossible," he said, according to Bilalić and McLeod. "It is a different problem; it must be."

Chiaroscuro painting of a chessboard in a dark room with a spotlight on a few squares near the knight and king, golden gaze lines converging on the lit squares while a queen sits in shadow

Heather Sheridan and Eyal Reingold found the same pattern in 2013 in PLOS ONE, with 17 novice and 17 expert players. When the familiar move was decent but second-best, eyes stayed glued to it. When the familiar move was an obvious blunder, players broke free and found the better move. Bad first ideas get rejected. Okay ones are the dangerous ones.

And it isn't only chess. Jessica Ellis and Reingold ran an anagram version in 2014 in Frontiers in Psychology. If the three letters in the middle of the puzzle formed a real word, people did worse overall than when those same letters were scrambled into a non-word. The familiar chunk was easy to hold in mind and hard to break apart.

Why your brain does this

None of this means the brain is broken. Bilalić's group argues the opposite: a first idea that steers attention toward evidence that fits it is fast, and in familiar situations fast is usually right. You don't re-invent how to peel garlic each time.

The cost is that the same mechanism quietly filters out what doesn't fit. In the 2010 review they suggest a lot of cognitive biases, including confirmation bias, may run on this machinery. You think you're being open-minded. Your attention has already picked a side.

For developers this feels uncomfortably familiar. I don't know of a study that put an eye tracker on programmers stuck on their go-to fix, so treat this as my reading, not a finding. But the ingredients match. Years of patterns, a first idea that usually works, and a "search for alternatives" that mostly means re-reading the code you already suspect.

What you can try today

Disable the first idea on purpose. The experts found the short mate the moment the familiar one stopped working. You can fake that. When you have a working fix, ask: if this approach were banned, how would I do it? Give it five honest minutes.

Be most suspicious when the first idea is merely fine. Sheridan and Reingold's players escaped blunders easily. The trap is the solution that's good enough to stop you looking.

Write down what contradicts you, fast. Charles Darwin had a rule for this, quoted by Bilalić and McLeod: whenever he met a fact that went against his general results, he made a note of it "without fail and at once", because those facts were "far more apt to escape from memory than favourable ones."

Darwin's rule is really a memory rule, and it's where I end up applying this. The talk or article that challenges how I usually do things is exactly the one I forget first. So I save it in Recl, which summarises it and brings it back later as a recall question. That way the inconvenient idea gets a second hearing a week later, when I'm not mid-bug and attached to my patch.

Recl app screenshot with the headline Saved it. Forgot it? Not anymore. and the Library screen

The next time you feel sure you've already found the best answer, look at where your attention keeps going back to. That's probably the squares of your smothered mate.


I'm Asutosh. I write about how the brain learns and remembers, and I build Recl, a tool for remembering what you watch and read.

Sources

Top comments (0)