Dietrich Prinz's Chess Program

{{Short description|Early, limited omputer chess program}}

{{Infobox video game

| title = Dietrich Prinz's Chess Program

| developer = Dietrich Prinz

| director = Dietrich Prinz

| released = November 1951

| genre = Computer chess

| platforms = Ferranti Mark 1

}}

Dietrich Prinz's chess program, also known as Robot Chess and Mate-in-Two, first ran in November 1951 on the Ferranti Mark I at the University of Manchester, the first commercially available computer. It is regarded as one of the earliest efforts toward developing computer-based chess program, following Alan Turing’s theoretical chess program, Turochamp, which was never implemented on a computer.

As part of a collaboration between Ferranti and the University of Manchester, British computing pioneer Dietrich Prinz contributed to the development of the Ferranti Mark I and its prototypes, the SSEM and the Manchester Mark I. Prinz began developing his chess program on the Ferranti Mark I in 1949, and it became operational in November 1951. Due to the machine's limited capabilities, playing a chess game against the computer was impossible, forcing Prinz to focus solely on endgame studies, specifically {{Interlanguage link|Orthodox chess problem in two moves|lt=mate-in-two problems|fr|Problème d'échecs orthodoxe en deux coups}}. Additionally, the rules were significantly simplified, omitting castling, two-square pawn moves, en passant captures, and pawn promotion. The program also did not differentiate between checkmate and stalemate. Prinz opted for an exhaustive search method, which required evaluating thousands of possible moves in every game. The program was significantly slower than a human player, taking nearly fifteen minutes per move. The primary causes of this slowness were the data transfers between magnetic memory, electronic memory, and the program's testing procedures.

Despite its simplicity, the program holds historical significance as the first computer chess program to run on a fully operational computer. Prinz did not develop another chess program, possibly due to the increasing demands of his work at Ferranti.

Origins

File:SSEM Manchester museum.jpg's first prototype of the Ferranti Mark I on which the program runs.]]

Dietrich Prinz was a German-born computing pioneer who studied at Humboldt University in Berlin, where he attended lectures by Max Planck and Albert Einstein. As a Jew, he fled the Third Reich in 1938 and settled in England.{{Cite web |last=Borchers |first=Detlef |date=October 6, 2001 |title=Vor 50 Jahren fing alles an: das erste "Elektronenhirn" in Deutschland |trans-title=It all began 50 years ago: the first “electronic brain” in Germany |url=https://www.heise.de/meinung/Was-wirklich-wahr-war-Ein-entschluesselter-Sommernachtsraetseltraum-144631.html |archive-url=https://web.archive.org/web/20241212152926/https://www.heise.de/meinung/Was-wirklich-wahr-war-Ein-entschluesselter-Sommernachtsraetseltraum-144631.html |archive-date=December 12, 2024 |website=Heise Online |language=de}} He became a British citizen in 1947.{{Harvsp|Copeland|Bowen|Sprevak|Wilson|2017|pp=339-342}} Commonly referred to by his initials, DP, at the University of Manchester,{{Harvsp|Barry Cooper|van Leeuwen|2013|pp=|p=875}} Prinz was something of a geek before the term even existed and was considered a "disciple" of Turing.

Advances in radar research and the equipment used for cryptography during World War II opened a gap in the field of computing and facilitated the development of computers by the late 1940s. After the war, Ferranti's business began to decline due to a lack of orders from the UK Ministry of Defence. Eric Grundy, a manager, then set up a team to study the potential uses of computers. In 1947, he appointed Dietrich Prinz as head of the computer development team. Prinz collaborated with the University of Manchester in the development of computers. Ferranti had already worked with the university in the 1930s on the manufacturing of electronic tubes. After two months of testing, the Small-Scale Experimental Machine (SSEM, nicknamed baby) finally worked.{{Cite web |title=Ferranti Mark 1 Computer |url=http://msimanchester.org.uk/en/collection/stories/ferranti-mark-1-computer |archive-url=https://web.archive.org/web/20160422071845/http://msimanchester.org.uk/en/collection/stories/ferranti-mark-1-computer |archive-date=April 22, 2016 |website=Museum of Science and Industry}} Once the feasibility of his design was demonstrated, a project was launched to make it a more user-friendly computer: the Manchester Mark I, which quickly became the prototype for the Ferranti Mark I, the first commercially available general-purpose computer.{{Cite web |last=Napper |first=R.B.E |title=Introduction to the Mark 1 |url=https://www.computer50.org/mark1/mark1intro.html |archive-url=https://web.archive.org/web/20120113023039/https://www.computer50.org/mark1/mark1intro.html |archive-date=January 13, 2012 |website=The University of Manchester}} It was delivered to the university in August 1950. Alan Turing and his colleague Cicely Popplewell worked for about six months, particularly on the user interface, and then the computer was officially completed in February 1951.

Prinz learns programming on the Mark I through seminars led by Turing and Popplewell.{{Harvsp|Copeland|Turing|2004|pp=564-565|loc=Chapter 16: The First Working Chess Programme}} He sees chess programming as "a clue to methods that could be used to handle structural or logistical problems occurring in other fields, through electronic computers." His interest in computer chess programs is probably influenced by Alan Turing.{{Cite web |title=Computer History Museum - Opening Moves: Origins of Computer Chess - First Tests |url=https://www.computerhistory.org/chess/thm-42b86c4252f72/ |archive-url=https://web.archive.org/web/20190216133308/https://www.computerhistory.org/chess/thm-42b86c4252f72/ |archive-date=February 16, 2019 |website=Computer History Museum}} Prinz then runs his chess program, which he has been developing since 1949, on the Mark I.{{Cite web |last=Dreher |first=Thomas |title=IASLonline NetArt: Theory |url=http://iasl.uni-muenchen.de/links/GCA-VII.1e.html#Computerspiele |archive-url=https://web.archive.org/web/20190222142718/http://iasl.uni-muenchen.de/links/GCA-VII.1e.html#Computerspiele |archive-date=February 22, 2019 |website=IASLonline}} Quickly, Turing and Prinz conclude that no program on the Mark I can play a full chess game. Then, they decided to focus their efforts on the endgame, particularly checkmates in two moves. Prinz is probably inspired, like Christopher Strachey and Donald Michie, by an article titled A Theory of Chess and Noughts and Crosses published in 1950 in the periodical Penguin Science News written by National Physical Laboratory (NPL) scientist Donald Davies.{{Cite web |title=Computer Pioneers - Christopher Strachey |url=https://history.computer.org/pioneers/strachey.html |archive-url=https://web.archive.org/web/20250122025543/https://history.computer.org/pioneers/strachey.html |archive-date=January 22, 2025 |website=IEEE Computer History}} He may also have known about the existence of El Ajedrecista, which allows playing the endgame of king and rook against a lone king, and could have been inspired by it to create his program.{{Cite journal |last1=Alvarez |first1=Julian |last2=Djaouti |first2=Damien |date=2010 |title=Arcade : Les Pionniers du jeu vidéo |trans-title=Arcade: The pioneers of video games |journal=Pix'n Love |language=fr |publisher=Éditions Pix'n Love |issue=11 |pages=32–43 |isbn=9782918272106}}

In November 1951, his program successfully solved {{Interlanguage link|Orthodox chess problem in two moves|lt=mate-in-two problems|fr|Problème d'échecs orthodoxe en deux coups}} on the Mark I.{{Harvsp|Bowden|1953|pp=286-287}}

Functioning

The limited technical capabilities of the Ferranti Mark I not only forced Prinz to reduce the game to checkmates in two moves. To allow the tasks to be executed in the shortest time possible, some restrictions were imposed on how the rules were explained to the machine. No distinction is made between checkmate and stalemate, castling is not allowed, nor are the two-step pawn moves, en passant, or promotion.{{Harvsp|Bell|1972|pp=|loc=Chapter 5: Some Chess Programs}}

Each game played by the program requires the evaluation of several thousand moves, using brute force search, unlike Turochamp, which performs fewer searches because it is based on a heuristic search. Prinz chose this option because a game as simplified as this does not require a heuristic search.

The program and the initial position of the pieces are provided to the machine via a punched tape and transferred into its magnetic memory. An initial routine transfers the data into electronic memory, after which the computer begins its calculations. The program first examines all squares connected to the king’s position by a knight’s move to determine whether the king is on the board, which squares are occupied, what piece is adjacent, and finally, whether it is indeed a knight. This series of checks is repeated for each piece. The program includes a routine for calculating the next possible move, a routine for verifying the legality of the move, and several sequences responsible for recording the move and the resulting position. All these routines are overseen by a master routine, which synthesizes the overall structure of the problem and ensures that the subroutines are executed in the correct sequence. The programming techniques are rudimentary, and the program's execution speed requires refinements and improvements. The program takes longer to select a move than a human player. For instance, a single move takes the computer fifteen minutes to compute and print the solution.

A large part of the time used by the program is allocated to self-checking tests. Another time-consuming task is the magnetic transfer of data between the magnetic and electronic storage, such as subprograms and data concerning positions and movements. Nine of these data transfers are made with each move. In comparison, the time required to perform the movement calculations is of minor importance, even though all possible moves, including impossible ones, are evaluated. Incorrect positions or prohibited moves are quickly discarded by the program and account for only a small portion of the calculation time. When the first chess problem in history was presented to the program, a single move forced the program to check 450 possible moves, 100 of which were illegal. The program takes about two seconds to decide each of its moves.

The program continues its analysis until a solution is found.{{Cite web |last=Copeland |first=Jack |date=May 2000 |title=What is Artificial Intelligence? |url=https://www.alanturing.net/turing_archive/pages/Reference%20Articles/what_is_AI/What%20is%20AI04.html |archive-url=https://web.archive.org/web/20250109121155/https://www.alanturing.net/turing_archive/pages/Reference%20Articles/what_is_AI/What%20is%20AI04.html |archive-date=January 9, 2025 |website=Alanturing.net}} It prints each white move tested and announces mate once a winning move is identified. It does not include any graphical interface,{{Cite book |last1=Kowert |first1=Rachel |url=https://books.google.com/books?id=Y-JzCgAAQBAJ |title=The Video Game Debate : Unravelling the Physical, Social, and Psychological Effects of Video Games |last2=Quandt |first2=Thorsten |date=2015 |publisher=Routledge |isbn=978-1-317-56717-2 |pages=3}} as the results are printed on paper.

First chess problem in history solved by the program

The program must find a move for White that ensures checkmate on the following move, regardless of Black's choice. The squares are numbered unusually, from left to right, starting from 11 to 18 on the bottom row, then 21 to 28 for the second row, and so on, up to the top row (from 81 to 88). Thus, square 68 is on the sixth rank and the eighth file (h6). The program prints all tested positions and announces mate when it finds the solution. In the diagram on the right,{{what|date=May 2025}} the correct move is Rook to 68 ("Tour en 68"), meaning Rh6. Before finding the solution, the program previously attempted the following moves in order: P78 (gxh7), R17 (Rg1), R16 (Rf1), R15 (Re1), R14 (Rd1), R13 (Rc1), R12 (Rb1), R11 (Ra1), R28 (Rh2), R38 (Rh3), R48 (Rh4), R58 (Rh5). This problem is commonly attributed, without any supporting evidence, to the American chess prodigy Paul Morphy (1837–1884), meaning it predates the program creation.

Legacy

Dietrich Prinz’s chess program is unanimously recognized as the first game program to run on a multi-purpose computer, specifically on the first commercial computer, the Ferranti Mark I, and it holds a significant place in the history of computer chess. As such, it is also part of the origins of video games, frequently mentioned in works covering the history of this medium as the first functional game on a computer. Additionally, it ranks among the pioneering developments in artificial intelligence. Jack Copeland, who has written extensively about the life and work of Alan Turing, describes the program as "an important moment, the Big Bang of computer chess." While Prinz's program successfully solved mate-in-two problems starting in November 1951, it wasn't until 1958, with the program developed by American Alex Bernstein on the IBM 704, that a full chess game could be played against a computer.

Despite the program’s reliance on brute-force search and its limitations in speed, its historical significance is often compared to groundbreaking achievements in other fields. For instance, Copeland draws a comparison to the Wright brothers’ first flight, recognizing the achievement’s importance, even if it was only an early step toward more sophisticated developments.

Prinz published all the details of his program in 1952 in the article Robot Chess in the journal Research (no. 5, pp. 261-266). The article was reissued in 1988 in the book Computer Chess Compendium (pp. 213-219).{{Cite book |last=Levy |first=David |url=https://books.google.com/books?id=vwbkBwAAQBAJ |title=Computer chess compendium |date=1988 |publisher=Springer New York |isbn=978-1-4757-1968-0 |location=New York |pages=213–219}}

B. V. Bowden describes the program in his 1953 work titled Faster Than Thought: Symposium on Digital Computing Machines. In his view, it can only serve as a crude example of the speed a program can reach and demonstrates the need for improvements in both hardware and programming to create a machine capable of playing chess against a human. He believes that the program can be improved in several areas, particularly in terms of electronic memory usage. Better programming techniques could reduce calculation time by minimizing data exchanges between storage spaces. He harshly criticizes the program, adding that if this rudimentary method of programming is the only option available, competition under reasonable conditions between the machine and a human is unrealistic. However, he softens his position by pointing out that the program solved a problem in just a few weeks of learning, which is a reasonable advance for a beginner player. In 1972, Alex Bell also mentioned the program in his work on the history of computer chess programs, titled Games Playing with Computers. Like Bowden, he considers the program too rudimentary to compete with humans under reasonable conditions. According to Copeland, Turing could likely have improved the program's source code, but he did not. Turing knew that brute-force search, when used alone, had no future, and he paid little attention to it.

Prinz reports that once the program became functional, it was never used again. He adds that due to an increase in workload caused by the growing number of computers, he could no longer focus on minor tasks like programming chess games. Furthermore, a slightly more complex chess problem would, according to him, probably have required hours of calculations from a computer. Later, Prinz wrote a manual for the Ferranti Mark I, which was a model of clarity, in contrast to those written by Turing, while continuing to work on computer music.

References

Bibliography

  • {{Cite book |last=Bell |first=Alex G |title=Games Playing with Computers |date=1972 |publisher=Allen & Unwin}}
  • {{Cite book |last=Bowden |first=B. V |title=Faster Than Thought : Symposium on Digital Computing Machines |date=1953 |publisher=Sir Isaac Pitman and Sons, Ltd}}
  • {{Cite book |last1=Copeland |first1=B. Jack |url=https://books.google.com/books?id=dSUTDAAAQBAJ |title=The Essential Turing : Seminal Writings in Computing, Logic, Philosophy, Artificial Intelligence, and Artificial Life plus The Secrets of Enigma |last2=Turing |first2=Alan Mathison |date=2004 |publisher=Oxford University Press |isbn=978-0-19-825079-1}}
  • {{Cite book |last1=Copeland |first1=B. Jack |url=https://books.google.com/books?id=y1MjDgAAQBAJ |title=The Turing Guide |last2=Bowen |first2=Jonathan |last3=Sprevak |first3=Mark |last4=Wilson |first4=Robin |date=2017 |publisher=Oxford University Press |isbn=978-0-19-106500-2}}
  • {{Cite book |last1=Barry Cooper |first1=S |url=https://books.google.com/books?id=C9WQbm4ovFoC |title=Alan Turing : His Work and Impact |last2=van Leeuwen |first2=J |date=2013 |publisher=Elsevier |isbn=978-0-12-387012-4}}

{{Chess}}{{Early history of video games}}{{Portal|Chess|Video games|1950s

}}

Category:Chess software

Category:Early history of video games

Category:1951 software