Machines built to win at ‘thinking’ games

Garber to fellow policeman: “You won’t believe this.”

20131215chessPoliceman: “You know me. I believe anything.”

Garber: “They took Pelham 123 today.”

Policeman: “I don’t believe it.” – From the film The Taking of Pelham 123 (1974)

I didn’t believe it either when I learnt that mankind had developed a machine which played chess. The news appeared to be within the realm of science fiction that reminded one of Isaac Asimov’s surreal short story I, Robot. The notion of a chess-playing automation, currently known to the world as a chess computer, was unbelievable because it ominously suggested that a chess machine such as the one devised, possessed the capability to think, much like Asimov’s robot. The concept defied logic as we knew it.

Russia’s world chess champion Garry Kasparov takes on the world’s super-computer Deep Blue in a return six game chess match in New York in 1997. Kasparov had beaten Blue the previous year. Blue won the deciding sixth and final game. Its owners IBM, did not respond positively to Kasparov for a rematch and retired the machine.
Russia’s world chess champion Garry Kasparov takes on the world’s super-computer Deep Blue in a return six game chess match in New York in 1997. Kasparov had beaten Blue the previous year. Blue won the deciding sixth and final game. Its owners IBM, did not respond positively to Kasparov for a rematch and retired the machine.

The idea of a chess machine was divulged in the year 1770. A fake machine named ‘the Turk’ was constructed and unveiled in that year by a German national apparently to impress the Empress Maria Theresa of Austria. The mechanism appeared to be able to play a game of chess with a human opponent. The Turk was in fact a mechanical illusion that allowed a human chess master hiding inside to operate the machine. The Turk won most of its games for its 84 years of operation throughout Europe and America. Statesmen like Napoleon Bonaparte and Benjamin Franklin opposed the Turk, which was destroyed by fire in 1854.

During the second half of the 20th century, computer chess became a startling and serious reality, unlike the delightful days of the Turk. The world was put on notice in 1989 when the IBM chess monster Deep Thought challenged the world champion Garry Kasparov to a two-game, fast-play match. Kasparov dispatched the computer with élan. The IBM team of chess grandmasters and computer scientists however, banded themselves into a unit and challenged Kasparov once again in 1996. He won comfortably, but this time the IBM chess computer now renamed Deep Blue, took a game from the world champ. The victory by Blue was unprecedented. It was the first time ever that a machine had defeated a world champion in a chess game under tournament conditions. The following year, in 1997, Deep Blue stunned the chess world when it toppled Kasparov in a revealing match victory. The inexorable march of artificial intelligence was alive.

In draughts also, the world’s strongest humans are no match for the leading programme. Chinook, for example, defeated Ron King, the Barbadian World Draughts Champion a number of times in a number of games. It owes its strength to a very deep look-ahead and an enormous database of endgame positions.

20150705Chess5Chess and draughts are not games of chance like say, backgammon and to some extent scrabble. In backgammon, the randomness of the dice presents difficulties for the computer; but still programmes like Snowy (Switzerland) and Jellyfish (Finland) have been developed and are playing close to world championship levels. Scrabble is another game with a chance element. Before all of the tiles have been taken from the bag, a programme cannot know what tiles are in its opponent’s rack and therefore it cannot analyze perfect play until the last few moves of the game. So before that stage of the game is reached, most Scrabble players rely on the use of a massive dictionary, allowing them to consider every playable word in every position of the board. A programme, Maven, however, has been able to challenge the world’s finest Scrabble-playing humans. But the Scrabble community does not normally allow computer programmes to compete in their tournaments.

Kasparov did not succeed in obtaining a rematch following his loss at the 1997 competition with Deep Blue. The machine was retired to the Smithsonian Institute in Washington, DC. The initial idea was to overwhelm a human world champion and it did so efficiently. News reports indicated that IBM benefited from approximately US$500 million in free advertisements, and the company’s stocks surged by $10 after the match.

In year 2000, when Kramnik defeated Kasparov for the title, negotiations for a match began between the world’s strongest computer programme and the world champion. A computer chess tournament was held which decided the two finalists, Junior and Fritz for a 24-game match. At the conclusion of game 14, Junior, programmed by two Israeli chess scientists, boasted an almost unassailable lead of 5-0. However, the highly improbable does occur; Fritz snatched the match away from Junior by winning the final game and thereby qualifying to challenge the world champion. That match ended in a 4-4 draw.

The Deep Blue project inspired a similarly grand challenge at IBM: building a computer that could beat the all-time champions at Jeopardy! Over three evenings in February 2011, the machine named ‘Watson’ opposed two of the most successful human players of the game and beat them in front of millions of television viewers. The technology in Watson was able to process and reason about natural language. Perhaps Watson was demonstrating that a new generation of human-machine interaction was indeed possible.

Chess games

Here are the first and final games of IBM’s Deep Blue 1997 match with World Chess Champion Garry Kasparov. Kasparov lost the six-game match by a margin of 3.5 points to 2.5 . The other two games are taken from the 43rd Dortmund Sparkassen Chess Meeting which ends today in Germany.
White: Kasparov
Black: Deep Blue
Game 1
1. Nf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