By Joseph Tanti FIDE Instructor. Some completely different ways to play chess.

Slides:



Advertisements
Similar presentations
Chapter 6, Sec Adversarial Search.
Advertisements

Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Computational Intelligence: Some Insights from Board Games Fernand Gobet Brunel University.
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search Chapter 5.
COMP-4640: Intelligent & Interactive Systems Game Playing A game can be formally defined as a search problem with: -An initial state -a set of operators.
"Programming a Computer to Play Chess" A presentation of C. Shannon's 1950 paper by Andrew Oldag April
The Turk First chess playing machine, made in 1770.
Application of Artificial intelligence to Chess Playing Capstone Design Project 2004 Jason Cook Bitboards  Bitboards are 64 bit unsigned integers, with.
Adversarial Search CSE 473 University of Washington.
Hoe schaakt een computer? Arnold Meijster. Why study games? Fun Historically major subject in AI Interesting subject of study because they are hard Games.
Adversarial Search Chapter 6.
Artificial Intelligence for Games Game playing Patrick Olivier
Artificial Intelligence in Game Design Heuristics and Other Ideas in Board Games.
An Introduction to Artificial Intelligence Lecture VI: Adversarial Search (Games) Ramin Halavati In which we examine problems.
1 Adversarial Search Chapter 6 Section 1 – 4 The Master vs Machine: A Video.
Mastering Chess An overview of common chess AI Adam Veres.
 The amount of time it takes a computer to solve a particular problem depends on:  The hardware capabilities of the computer  The efficiency of the.
Game Playing in the Real World Oct 8 th : Uncertainty and Probabilistic reasoning Oct 10th: How should we define artificial intelligence? Reading for Oct.
Artificial Intelligence in Game Design
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
MAE 552 – Heuristic Optimization Lecture 28 April 5, 2002 Topic:Chess Programs Utilizing Tree Searches.
double AlphaBeta(state, depth, alpha, beta) begin if depth
Games & Adversarial Search Chapter 6 Section 1 – 4.
SASE Contextualised group work – teaching a broader mathematics curriculum to first year science students: Case study – Problem solving Jo-ann Larkins.
Game Playing in the Real World Next time: Wrap-up on Game playing and Knowledge Representation Reading: IBM’s Deep Blue Chess Grandmaster Chips, Feng-hsiung.
Computer Chess. Humble beginnings The Turk Ajeeb Mephisto El Ajedrecista.
Group 1 : Ashutosh Pushkar Ameya Sudhir From. Motivation  Game playing was one of the first tasks undertaken in AI  Study of games brings us closer.
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Ch1 AI: History and Applications Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Artificial Intelligence in Game Design Lecture 22: Heuristics and Other Ideas in Board Games.
Artificial Intelligence
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
Games as Game Theory Systems (Ch. 19). Game Theory It is not a theoretical approach to games Game theory is the mathematical study of decision making.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Game Playing. Towards Intelligence? Many researchers attacked “intelligent behavior” by looking to strategy games involving deep thought. Many researchers.
1 Adversarial Search CS 171/271 (Chapter 6) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Games 1 Alpha-Beta Example [-∞, +∞] Range of possible values Do DF-search until first leaf.
CHAPTER 4 PROBABILITY THEORY SEARCH FOR GAMES. Representing Knowledge.
Deep Blue. background chess: “the touchstone of the intellect” machine would model thinking, some say chess problem “sharply defined” First chess-playing.
COMPUTER ORGANIZATION AND ASSEMBLY LANGUAGE Lecture 19 & 20 Instruction Formats PDP-8,PDP-10,PDP-11 & VAX Course Instructor: Engr. Aisha Danish.
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
Solving Kriegspiel endings with brute force: the case of KR vs. K Paolo Ciancarini Gian Piero Favini University of Bologna.
Artificial Intelligence
Chapter VI What should I know about the sizes and speeds of computers?
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Artificial Intelligence in Game Design Board Games and the MinMax Algorithm.
Adversarial Search Chapter 5 Sections 1 – 4. AI & Expert Systems© Dr. Khalid Kaabneh, AAU Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
ADVERSARIAL SEARCH Chapter 6 Section 1 – 4. OUTLINE Optimal decisions α-β pruning Imperfect, real-time decisions.
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
1 Chapter 6 Game Playing. 2 Chapter 6 Contents l Game Trees l Assumptions l Static evaluation functions l Searching game trees l Minimax l Bounded lookahead.
Game Playing Why do AI researchers study game playing?
EA C461 – Artificial Intelligence Adversarial Search
Adversarial Search and Game Playing (Where making good decisions requires respecting your opponent) R&N: Chap. 6.
Adversarial Search Chapter 5.
Dakota Ewigman Jacob Zimmermann
Games & Adversarial Search
Adversarial Search.
Games & Adversarial Search
Adversarial Search CS 171/271 (Chapter 6)
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Presentation transcript:

by Joseph Tanti FIDE Instructor

Some completely different ways to play chess

 How does a chess computer play? In general, computer chess programs consider chess as a “tree of variations”. They examine all moves, then all counter-moves to those moves, then all moves countering them, and so on. Each individual move by one player is called a “ply”. This evaluation continues until a certain maximum search depth is reached, or the program determines that a final “leaf” position (e.g. checkmate) has been reached.

In the first paper on the subject, Claude Shannon (1950) suggested two possible search strategies for computer chess play, which he labelled “Type A” and “Type B”.

Type A programs would use a “brute force” approach, examining every possible position for a fixed number of moves, but Shannon thought this would be impractical for two reasons.

Firstly, with approximately thirty moves possible in a typical position, searching the 10 9 positions involved in looking three moves ahead for both sides (six ply) would take about sixteen minutes in the “very optimistic” (for 1950) case that the computer evaluated a million positions every second. It took about forty years for chess computers to achieve this speed.

Secondly, Type A searches would ignore the problem of “quiescence”, evaluating ALL positions, not just those reached at the end of an exchange of pieces or other important sequence of moves. Exhaustively looking at such a large number of positions would slow the program down enormously.

Instead of wasting processing power examining bad or trivial moves, Shannon suggested that Type B programs would use two improvements:  Employ a quiescence search;  Only look at a few good moves for each position. All modern programs employ a terminal quiescence search before evaluating positions.

Shannon’s second Type B improvement is much harder to implement! How is a decision made, in any given position, as to which moves merit further consideration? This is such a difficult programming task that most advances in computer chess have been gained by accelerating Type A searches with improved software techniques and faster hardware. Focusing on a few good moves for each position is best done by …

 How does a human chessmaster play? Experts in a particular field usually solve problems more quickly, and with a higher success rate than do novices. But what is behind this faster speed and greater success? Are experts smarter than novices? Do they approach problems in a different way?

Human problem solving processes and methods have been studied by psychologists for over 100 years. To solve complex problems in a variety of fields (e.g. mathematics, physics, electronics, one’s personal life, or chess), it is often useful to apply a rule of thumb, make an educated guess, trust one’s intuitive judgement, or just use common sense. These sorts of methods are collectively known as “heuristics”.

Further heuristics that might make a problem more accessible include:  using an analogy,  decomposing the problem, and recombining its elements in some new manner,  working backwards,  using deduction,  looking for a pattern,  solving a slightly different problem, and applying the solution to your own problem (Polya 1945).

Using heuristics, masters look at about forty or fifty positions before deciding what move to play. When IBM’s Deep Blue defeated Gary Kasparov in a six-game match in 1997 it was the first time a reigning world champion lost a match to a computer opponent in tournament play. Deep Blue was a combination of special purpose hardware and software with an IBM RS/6000 SP2 (seen here), capable of examining 200 million moves per second, or 50 billion positions, in the three minutes allocated for a single move in a chess game. Despite this ‘advantage’, the match was remarkably close; a testament to the power of heuristic thinking.

The above heuristics are a selection from George Polya’s ( ) 1945 book, How to Solve It. Though Polya was a mathematician, his general scheme for problem solving was intended to help people in a variety of fields.

According to Polya, the use of heuristics falls within the application of four principles that need to be followed in any serious attempt at problem solving:  understanding the problem,  devising a plan,  carrying out the plan,  looking back (reflecting). These steps, along with the use of heuristics, will be investigated in the remaining lessons.

Searching a “tree of variations”. Applying clever heuristics. Can there be another distinctly different way to play chess?

How might an alien play? Follow books and databases It is possible to duplicate the moves played by previous players. Such copying may be done judiciously, with a complete understanding of the ideas involved, or in complete ignorance. Sites such as provide an opening database that compiles the results of hundreds of thousands of previous master games, and moves can be selected on the basis of either their popularity or success.

Endgame tablebases Working backwards from a checkmate position, endgame tablebases can be generated by retrograde analysis. Tablebases have solved chess for every position with six or fewer pieces. Creating and storing tablebases is very resource- expensive. A seven-man tablebase will require about 600 terrabytes of storage. A complete 6-man endgame tablebase can be accessed at

 References Polya, G. (1945). How to solve it. Princeton, N.J.: Princeton University Press. Shannon, C.E. (1950). Programming a computer for playing chess. Philosophical Magazine, 7th series, 41, no. 314,