Extract from the chess engine Stockfish’s source code, file position.cpp.
Available at https://github.com/official-stockfish/Stockfish [GNU General Public License].
ABOUT CODE
Computer programs are living, evolving objects; new features are added, algorithms are refined, parameters are tuned. Yet one constant, 1070372, has remained unchanged since 2014 inside the source code of Stockfish, one of the strongest open-source chess engines ever made.
1070372 has been used as a “seed” – a starting number that helps generate the “fingerprints” of chess positions. These fingerprints let the program recognize positions it has already analyzed, saving time and avoiding repeated calculations. Across Stockfish’s history, 1070372 is the oldest integer value that has remained unchanged. Contributors have experimented with different values, eventually always going back to the original constant.
In a constantly evolving system, a stable reference point makes progress measurable. If everything changes at once, it’s impossible to know what helped or hurt. Keeping one value fixed lets developers experiment safely with the rest and reproduce results across different computers and versions, proving that improvements come from real innovations, not random noise. The choice of 1070372 wasn’t random or mystical – it came from careful reasoning, statistical testing, and open discussion among contributors. In a community- driven project like Stockfish, decisions are made transparently and collaboratively, and this constant is a product of that process.
Paraphrasing Donald Knuth, the story of chess engines is a tale of the triumph of software engineering blended with rich doses of beautiful mathematics. The constant 1070372 is a symbol of that blend: a small number anchoring a vast and evolving codebase, helping transform chaos into understanding – and understanding into superhuman chess intelligence.
BIOGRAPHY
Dr. Mathieu Acher is a Professor of Computer Science at INSA Rennes whose research explores how software systems evolve and vary, at the intersection of software engineering and AI. He is also a FIDE Master – an official chess title awarded by the International Chess Federation. A lifelong chess player, he feels a strong connection to Stockfish, one of the world’s most powerful open-source chess engines.
#Chess
#Open-Source
#Software Engineering