Samuel’s checkers program

Also known as: Samuel Checkers-playing Program

On this page 7

Samuel’s checkers program was a checkers-playing system developed by Arthur Samuel at IBM from the early 1950s that improved its own play through experience rather than relying only on hand-coded rules. In AI history, it is regarded as one of the first self-learning programs and the work that popularized the term machine learning.

The program combined game-tree search with a learned evaluation function and a memory of previously analyzed positions. Its results, published in 1959 in the IBM Journal of Research and Development, showed that a computer could come to play better than the person who programmed it, an idea that shaped later research on reinforcement learning and game-playing systems.

Origins and development at IBM

Samuel began the project around 1952 on the IBM 701, one of the first commercial scientific computers, and continued it on later IBM machines. Checkers was chosen deliberately: its rules are simple, yet the game is complex enough that exhaustive search is impossible, which made it a clean test bed for learning.

A public demonstration on national television in February 1956 attracted wide attention and is often credited with lifting interest in IBM stock. The program remained under development for well over a decade, and Samuel published a second major paper in 1967 describing refined learning methods.

The table below lists the main milestones in the program’s history.

YearMilestoneSignificance
1952First version on the IBM 701Early game-playing code on commercial hardware
1956Televised demonstrationPublic awareness of learning machines
1959Paper on machine learning with checkersPopularized the term machine learning
1962Win against a strong human playerWidely reported as a landmark result
1967Second paper with signature tablesMore expressive evaluation of positions
Key milestones of the program

How the program searched and evaluated positions

The program chose moves with minimax search over a tree of possible continuations, looking several moves ahead and assuming that each side plays its best reply. Because memory and speed were severely limited, Samuel added techniques that reduced the number of positions examined, an early form of what later became known as alpha-beta pruning.

At the leaves of the tree, the program applied a scoring polynomial, a weighted sum of board features such as piece advantage, king count, mobility, center control and threats. Samuel defined a pool of roughly 38 candidate features, of which about 16 were active at any time. Search depth was not fixed: the program continued along lines with pending captures, a precursor of quiescence search.

The two learning methods

Samuel studied two complementary approaches: rote learning, which memorized positions, and learning by generalization, which adjusted the evaluation function. Their contrasting strengths are summarized below.

AspectRote learningLearning by generalization
What is storedBoard positions with backed-up scoresWeights of the scoring polynomial
How it improvesReuses earlier deep analysisAdjusts weights after each move
Main strengthStrong openings and endgamesTransfers to unseen positions
Main limitationLarge memory, slow progress in middlegameUnstable without careful control
Modern counterpartTransposition tables, opening booksValue function approximation
Rote learning compared with learning by generalization

In rote learning, a stored position carried the score obtained from a previous search, so reaching it again effectively extended search depth at no extra cost. The program also favored shorter winning paths so that it pressed toward a win instead of drifting.

Learning by generalization used self-play between two versions of the program, often called Alpha and Beta. Alpha updated its weights by comparing the static score of a position with the score backed up from a deeper search, nudging the evaluation toward the deeper estimate. This mechanism anticipates temporal-difference learning, formalized decades later. When Alpha beat Beta consistently, Beta adopted its weights, and features with persistently low weights were swapped for new candidates.

Results and their limits

The program reached a level that made it a respectable amateur, and its 1962 win against Robert Nealey, a strong Connecticut player, became a famous headline. Historians generally note that the achievement was overstated in popular accounts: Nealey was not a national champion, and the program lost later matches against top players.

Even so, the program demonstrated three lasting ideas: a machine can learn from its own games, an evaluation function can be tuned automatically, and search and learning reinforce each other. The comparison below places it alongside later systems in the same lineage.

SystemGameLearning approachStrength reached
Samuel’s programCheckersSelf-play tuning of a linear evaluationStrong amateur
TD-GammonBackgammonTemporal-difference learning with a neural networkNear world-class
ChinookCheckersHand-tuned evaluation with endgame databasesWorld champion level
Deep BlueChessMassive search with expert-tuned evaluationDefeated world champion
Samuel’s program and later game-playing systems

Influence on machine learning and AI research

The program’s lasting importance lies less in its playing strength than in the concepts it made concrete. Samuel framed learning as improvement of performance with experience, a definition that remains standard in textbooks, and he showed it working on real hardware rather than in theory.

  • Self-play as a source of training data, later central to TD-Gammon and AlphaZero.
  • Bootstrapping a value estimate from deeper search, the core of temporal-difference methods.
  • Feature selection inside a learning loop, an early form of automated model refinement.
  • Search plus learned evaluation, the architecture of most strong game engines since.

Checkers itself was weakly solved in 2007 by the Chinook team, who proved that perfect play by both sides leads to a draw. That result closed a line of research Samuel had opened more than half a century earlier.

Explained without jargon

In the 1950s, most people thought a computer could only do exactly what it was told. Arthur Samuel wanted to test that belief. He wrote a program that played checkers and got better by playing.

The program looked a few moves ahead and scored each board with a simple formula. After each game, it adjusted that formula. It also played against a copy of itself and kept whichever version won more often. This is similar to a student who reviews past games and slowly learns which positions are good. The result was a program that played better than its own creator.

A typical use case

A university course on reinforcement learning often begins its unit on value functions with Samuel’s checkers program. The instructor asks students to rebuild a simplified version: a minimax search of four plies and a linear evaluation with six features, such as piece difference, king difference, mobility and back-row control.

Students start with all weights set to zero and let two copies of the program play 2,000 games against each other. After each move, the active copy shifts its weights a small step toward the score returned by the deeper search. Within a few hundred games, the learned weights typically value kings above ordinary pieces and reward mobility, without anyone entering those rules.

The exercise shows students how bootstrapping from search works in practice and why it can be unstable when learning rates are too high. It also helps them see that modern self-play systems rest on an idea first demonstrated on a 1950s mainframe.