Mastering Chess An overview of common chess AI Adam Veres.

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
Announcements 1.Reading and Homework for this week 2.Late policy on homework: 10% per day, unless you ask for extension beforehand 3.Presentation schedule.
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
AI for Connect-4 (or other 2-player games) Minds and Machines.
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search Chapter 5.
Adversarial Search: Game Playing Reading: Chapter next time.
"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.
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.
Artificial Intelligence for Games Game playing Patrick Olivier
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.
Game Playing 최호연 이춘우. Overview Intro: Games as search problems Perfect decisions in 2-person games Imperfect decisions Alpha-beta pruning.
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.
By Joseph Tanti FIDE Instructor. Some completely different ways to play chess.
Chess AI’s, How do they work? Math Club 10/03/2011.
Game Playing in the Real World Oct 8 th : Uncertainty and Probabilistic reasoning Oct 10th: How should we define artificial intelligence? Reading for Oct.
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.
MAE 552 – Heuristic Optimization Lecture 28 April 5, 2002 Topic:Chess Programs Utilizing Tree Searches.
Adversarial Search: Game Playing Reading: Chess paper.
double AlphaBeta(state, depth, alpha, beta) begin if depth
Optimizing a Chess Heuristic Using Evolutionary Algorithms Benjamin Rhew
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.
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
Chess Applications:Alpha- Beta Search Greg Parker ‘03 Senior Thesis Advisor: Andrew Appel.
Go An ancient Oriental board game Andrew Simons. Introduction 2 player game of skill. Popular in the Far East, growing in the West. Simple rules, extremely.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
History  1475: modern game evolved  : supposed automatons  : rise of chess computers  : on par with humans  2000-current.
Game Playing ECE457 Applied Artificial Intelligence Spring 2007 Lecture #5.
Development of a Machine-Learning-Based AI For Go By Justin Park.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
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.
Deep Blue. background chess: “the touchstone of the intellect” machine would model thinking, some say chess problem “sharply defined” First chess-playing.
Chess and AI Group Members Abhishek Sugandhi Sanjeet Khaitan Gautam Solanki
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.
Game tree search Chapter 6 (6.1 to 6.3 and 6.6) cover games. 6.6 covers state of the art game players in particular. 6.5 covers games that involve uncertainty.
Artificial Intelligence
Parallel Programming in Chess Simulations Tyler Patton.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Luca Weibel Honors Track: Competitive Programming & Problem Solving Partisan game theory.
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
CS Fall 2016 (Shavlik©), Lecture 11, Week 6
CSC 110 – Fluency in Information Technology Chess
Adversarial Search Chapter 5.
Dakota Ewigman Jacob Zimmermann
Adversarial Search.
Pruned Search Strategies
Adversarial Search CS 171/271 (Chapter 6)
CS51A David Kauchak Spring 2019
Adversarial Search Chapter 6 Section 1 – 4.
Presentation transcript:

Mastering Chess An overview of common chess AI Adam Veres

Everybody knows chess, right?

ELO Rating System

ELO Rating System, cont.

Senior Master Master (This encompasses the 93-98th percentile of all rated players in America) Expert ‘A’ Player ‘B’ Player ‘C’ Player ‘D’ Player ‘E’ Player ‘F’ Player 800+ ‘G’ Player 600+ ‘H’ Player 400+ ‘I’ Player -400 USCF Rating Tiers

Some history on computers playing chess ~1770 The Turk Fake automaton Wolfgang von Kempelen  Hungarian inventor Computer chess!

1951 developed, on paper, a program capable of playing a full game of chess Work backwards from ‘win’ conditions and accept moves that work towards that goal Turing assumed infinite processing power and storage space Ratio W/B Alan Turing

The Chessmaster 2000 The manufacturer rated the game at 2000 Elo USCF, in reality it plays at approximately USCF. This is “B” rated in 1986! Best selling Chess series of all time. Chessmaster

1997 IBM’s Deep Blue defeats Gary Kasparov after a six game match. Deep Blue relied on hardware for to evaluate over 200 million moves per second Deep Blue

Deep Fritz version 10 ran on a machine running two Intel Core 2 Duo processors. 8 million moves per second Average depth search of using heuristics to evaluate choices About 6 billion possible positions observed before actually making a move Vladimir Krammik loses 2-4 to Deep Fritz 5 piece tablebase allowed for end-game, 6 piece widely available Beyond Deep Blue

SSDF – Swedish Chess Computer Association Tests computer chess programs and produces a rating 2012 “Deep Rybka 4 x64” 3221 rating Tested on x64 2GB Q6600 2,4 GHz Computer chess ratings

Board Representation List of all pieces 8x8 2D array 0x88  2 boards next to each other. Makes move-legality checks a simple AND with the hex number 0x88 Bitboard  64 bit sequence of bits. Series of bitboards. Stream based Huffman Encoding  More common chess positions (pawns/empties) stored with less bits Algorithmic Considerations

Type A  Brute Force. Checks bad and trivial moves unnecessarily. Type B  Quiescent Search – evaluate minimax game trees  Only a few moves are evaluated Main Search Types

Alpha-beta pruning widely used to reduce search space Negascout – directional search algorithm to find minimax value of a node in a tree Type B

Nalimov endgame tablebase. 5 or fewer pieces is solved.  USSR born programmer 6 pieces is solved except some trivial cases such as 5 pieces versus 1 king 7 pieces have been somewhat analyzed All of these make certain assumptions to prune the branching possibilities.  Eg: Castling is no longer possible “Tablebases”

One last interesting note: It is estimated that doubling the computer’s speed adds only ELO to a given chess algorithm Heuristics are much better than brute force! Last Thoughts

Digital computers applied to games'. n.d. AMT's contribution to 'Faster than thought', ed. B.V. Bowden, London Published by Pitman Publishing. TS with MS corrections. R.S. 1953b “Deep Blue”. IBM. “The Last Man vs Machine?”. Chess News. “Important Official Rules of the Kramnik versus Fritz match”. Chess Daily News and Information. kramnik.html Levy, David; Newborn, Monty (1991), How Computers Play Chess, Computer Science Press, ISBN References

Searching for Solutions in Games and Artificial Intelligence (1994) by Victor L. Allis SSDF. Swedish Chess Computer Association. Some images from Wikimedia Foundation “Did a Computer Bug Help Deep Blue beat Kasparov”. Wired.com. References