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

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

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

“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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

“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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

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

Page 5: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 6: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 7: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 8: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 9: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 10: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

How a computer decidesHow a computer decides

Page 11: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

Uh oh!Uh oh!

Page 12: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

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

Adversarial searchAdversarial search

Page 13: How Computers Play Chess Peter Barnum November 15, 2007 Artificial Intelligence 101.

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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

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 Peter Barnum November 15, 2007 Artificial Intelligence 101.

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

• Stanford Encyclopedia of Philosophy

ReferencesReferences