CSC 110 – Fluency in Information Technology Chess

Slides:



Advertisements
Similar presentations
Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Advertisements

Game Playing CS 63 Chapter 6
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
AI for Connect-4 (or other 2-player games) Minds and Machines.
Game Playing Perfect decisions Heuristically based decisions Pruning search trees Games involving chance.
Games & Adversarial Search
CS 484 – Artificial Intelligence
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.
Adversarial Search CSE 473 University of Washington.
Adversarial Search Chapter 6.
Artificial Intelligence for Games Game playing Patrick Olivier
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
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.
Games CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
G51IAI Introduction to AI Minmax and Alpha Beta Pruning Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.
Adversarial Search Board games. Games 2 player zero-sum games Utility values at end of game – equal and opposite Games that are easy to represent Chess.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Game Tree Search based on Russ Greiner and Jean-Claude Latombe’s notes.
Adversarial Search: Game Playing Reading: Chess paper.
Games & Adversarial Search Chapter 6 Section 1 – 4.
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.
CSC 412: AI Adversarial Search
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
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.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
Artificial Intelligence
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
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.
Adversarial Search CMPT 463. When: Tuesday, April 5 3:30PM Where: RLC 105 Team based: one, two or three people per team Languages: Python, C++ and Java.
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
4. Games and adversarial search
CS Fall 2016 (Shavlik©), Lecture 11, Week 6
Adversarial Search and Game Playing (Where making good decisions requires respecting your opponent) R&N: Chap. 6.
David Kauchak CS52 – Spring 2016
Adversarial Search Chapter 5.
Dakota Ewigman Jacob Zimmermann
Games & Adversarial Search
Games & Adversarial Search
Adversarial Search.
Artificial Intelligence
Games & Adversarial Search
Games & Adversarial Search
Artificial Intelligence
Pruned Search Strategies
Game Playing Fifth Lecture 2019/4/11.
Games & Adversarial Search
Adversarial Search CMPT 420 / CMPG 720.
Adversarial Search CS 171/271 (Chapter 6)
Ch. 5 – Adversarial Search
CS51A David Kauchak Spring 2019
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning
Presentation transcript:

CSC 110 – Fluency in Information Technology Chess Dr. Curry Guinn

Today’s Class A Look Ahead Computer Chess Lab

What’s Next? November 21 Fri Natural Language Processing November 24 Mon Futuristic Stuff November 26 Wed No Class November 28 Fri No Class December 1 Mon Review December 3 Wed Exam #2 December 10 Wed Final Exam Due

Computer Chess Chess playing machines have been around longer than computers The Turk

The Turk 1769 Complicated gear works Could beat very, very good players It was a hoax. The Turk: The Life and Times of the Famous Eighteenth-Century Chess-Playing Machine

Computer Chess Programs first developed in 1958 In 1997, Gary Kasparov lost a six game match to Deep Blue (3.5-2.5). The primary algorithm used is called MINIMAX. How does it work?

Minimax relies on an Evaluation function The Evaluation function rates how good a particular configuration is In chess, the evaluation of a board position might include: Number and type of pieces remaining on the board How mobile are your pieces? Do you control the center of the board? Is the king in a safe position?

Minimax Algorithm See what moves are possible for you Then for each of those moves, see what your opponent can do Then for each of those moves, see what you can do … Then see what your opponent can do … And so on. When you stop looking at possible moves, evaluate those final board positions. Determine which sequence of moves will guarantee you the highest score. You will always choose the move that results in a higher score; Your opponent will always choose the move that results in a lower score

MAX A B C MIN D E F G MAX 1 1 -3 4 1 2 -3 4 -5 1 -7 2 -3 -8 = terminal position = agent = opponent

Problems with Minimax How far can you search in the tree? In chess, between 25-40 moves possible on average. So at each level of the tree, you could have 25 branches. After 1 move, 25 possible boards. After 2 moves, 252 = 625 After 3 moves, 253 = 15, 625

Depth of Minimax After 4 moves, 254 = 390, 625 … After 10 moves, 2510 = 95, 367, 431, 640, 625 Searching to depth = 40, at one game per microsecond it would take 1090 years to make its first move Age of universe = 1010

Depth of Minimax (Deep Blue) 480 specialty chess chips Parallel computing: 30 workstations Searches 12 plies (turns) 25^12 = 59 quadrillion Extends promising lines as must as 40 plies PLUS opening database PLUS end-game algorithms

So Is It Intelligent?

Games where MiniMax doesn’t work too well Go Branching factor of 200 Games can go on for 250+ moves Very difficult to evaluate board positions This is the HOT game to study in AI Card games Too much variability due to chance

Lab: Part 1 Here’s another art program. It’s pretty good. http://www.kurzweilcyberart.com/

Lab: Play Chinook Chinook is the best checkers player in the world Try it: http://games.cs.ualberta.ca/~chinook/cgi-bin/player.cgi?nodemo

Some great AI demos and movies A page with some of the best computer game players: http://www.cs.ualberta.ca/%7Egames/

Wrap-up Why is Natural Language Processing so hard? Read this paper: http://people.uncw.edu/guinnc/papers/ittsec_nlp.97.pdf