How Computers Play Chess

16
How Computers Play Chess How Computers Play Chess Peter Barnum Peter Barnum November 15, 2007 November 15, 2007 Artificial Intelligence 101 Artificial Intelligence 101

description

Artificial Intelligence 101. How Computers Play Chess. Peter Barnum November 15, 2007. “This … raises the question ‘Can a machine play chess?’ It could fairly easily be made to play a rather bad game. It would be bad because chess requires intelligence.” –Alan Turing 1946. - PowerPoint PPT Presentation

Transcript of How Computers Play Chess

Page 1: How Computers Play Chess

How Computers Play ChessHow Computers Play Chess

Peter BarnumPeter BarnumNovember 15, 2007November 15, 2007

Artificial Intelligence 101Artificial Intelligence 101

Page 2: How Computers Play Chess

“This … raises the question ‘Can a machine play chess?’ It could fairly easily be made to play a rather bad game. It would be bad because chess requires intelligence.”

–Alan Turing 1946

Page 3: How Computers Play Chess

“The decisive game of the match was Game 2…we saw something that went beyond out wildest expectations…The machine refused to move to a position that had a decisive short-term advantage - showing a very human sense of danger.”

– Garry Kasparov 1997

Page 4: How Computers Play Chess

What move should we make?What move should we make?

Page 5: How Computers Play Chess

How a computer decidesHow a computer decides

Page 6: How Computers Play Chess

How a computer decidesHow a computer decides

Page 7: How Computers Play Chess

How a computer decidesHow a computer decides

Page 8: How Computers Play Chess

How a computer decidesHow a computer decides

Page 9: How Computers Play Chess

How a computer decidesHow a computer decides

Page 10: How Computers Play Chess

How a computer decidesHow a computer decides

Page 11: How Computers Play Chess

Uh oh!Uh oh!

Page 12: How Computers Play Chess

“If I make this move, what’s the worst thing my opponent could do?”

Adversarial searchAdversarial search

Page 13: How Computers Play Chess

Examining all possible movesExamining all possible moves

Can I make a move that will allow me to win and prevent my opponent from winning?

Page 14: How Computers Play Chess

Wait, that’s easy!Wait, that’s easy!

35x35x35…=35N

For a game with 6 moves per player: 3512=3,379,200,000,000,000,000 possibilities

If a computer can check one billion moves per second, it would take over 100 years

Page 15: How Computers Play Chess

What to do?What to do?

•Can we avoid searching all possibilities?•Can we pre-compute anything?

•Can we approximate the search?

Page 16: How Computers Play Chess

• Stuart Russell and Peter Norvig Artificial Intelligence: A Modern Approach

• Stanford Encyclopedia of Philosophy

ReferencesReferences