Artificial Intelligence in Chess

Total Page:16

File Type:pdf, Size:1020Kb

Artificial Intelligence in Chess Artificial Intelligence in Chess Dan Pomerantz Outline • Brief history of Artificial Intelligence in chess • Why are computers good at chess? • Basic techniques for writing a chess AI AI in Chess 2 The first AI – 1770 ! “The Turk” AI in Chess 3 The first AI – 1770 ! “The Turk” AI in Chess 4 The Turk • Able to play chess “automatically” • Appeared to work like a clock • Turned out to be illusion using magnets and a real human underneath • No one figured out the secret for 50 years! AI in Chess 5 • In the 1940s and 1950s, mathematicians and computer scientists came up with algorithms or descriptions of HOW to program a computer to play chess. • Problem : Computers weren't powerful enough to follow these descriptions! AI in Chess 6 Finally..... • Around the late 1950s, we finally were able to create programs that played FULL games of chess. • Turing test : Can we train a computer to make us think there is a human? AI in Chess 7 Deep Blue (mid 1990s) AI in Chess 8 AI in Chess 9 AI in Chess 10 “It was an impressive achievement, of course, and a human achievement by the members of the IBM team, but Deep Blue was only intelligent the way your programmable alarm clock is intelligent. Not that losing to a $10 million alarm clock made me feel any better.” - Garry Kasparov AI in Chess 11 AI in Chess 12 AI in Chess 13 AI in Chess 14 AI in Chess 15 State of various games • Chess – computers can beat world champions • Checkers – solved by Jonathan Schaeffer • Bridge – computers can compete with top players but don't normally win • Go – computers not even close to top players AI in Chess 16 Why is AI Chess “easier” • Small “branching” factor • Perfect information • Positions can be evaluated with reasonably simple heuristics • “Chess mastery essentially consists of analyzing chess positions accurately.” - Mikhail Botvinnik AI in Chess 17 What makes AI better than human? • Key factor : Emotions lead to inconsistency AI in Chess 18 What makes computers stronger than humans? • Key factor : Emotions lead to inconsistency • Computers don't experience fatigue • “Chess is thirty to forty percent psychology. You don't have this when you play a computer. I can't confuse it.” - Judit Polgar • “Few things are as psychologically brutal as chess.” - Garry Kasparov AI in Chess 19 Emotion and fatigue : Kotov • “I was Black and had a completely won position. I was annoyed that my opponent – a certain Golubev – did not resign although he was a whole rook down. It was my turn to move and I realized that the joy of victory could not be long delayed. My opponent had already folded his score sheet in two, written “Resigns” on it and put it in his pocket. With an air of hopelessness he was looking round and seemed to express with his whole demeanor that as soon as I made my move he would resign.” AI in Chess 20 Emotion and fatigue AI in Chess 21 Emotion and fatigue AI in Chess 22 Emotion and fatigue AI in Chess 23 Emotion and fatigue AI in Chess 24 Emotion and fatigue • So I made my move – the most obvious one there was – taking his bishop with my rook. Immediately the other bishop whizzed through the air and landed with a bang on d8. Again with a bang my opponent started my clock and looked round in triumph at the people who were watching the game. Then he took out his score sheet, wrote down his move and mine and crossed out the word “Resigns”. I was the one who had to resign! AI in Chess 25 How to Create an AI : Search (minimax algorithm) AI in Chess 26 ●Key idea: Choose the move that maximizes your position in the WORST case Qb6 here is a terrible move for white! AI in Chess 27 Chess is way too complex ●Tree is just too large ●Heuristic search ●Choosing the best moves without searching! ●Transpositions AI in Chess 28 Heuristic Search ●Search up until a certain point using this approach ●At some point, stop and evaluate the position. ●How to evaluate a position? AI in Chess 29 Horizon Effect ●5 move combination that wins a piece! ●Unfortunately it's also a 6 move combination to lose a piece! ●Try to determine “interesting” position AI in Chess 30 Trimming Search Tree: “Alpha-beta” pruning ●Idea: ●1)Suppose I am debating between choice a,b,c for move. ●2)Now suppose I searched choice a) and determined it won a pawn. ●3)I am looking at choice b and I notice that ONE of my opponent's moves in response leave the position even. I can now conclude there is no point of looking at all of my opponent's responses AI in Chess 31 Trimming Search Tree: “Alpha-beta” pruning ●Order of searching is now important. ●This matches the way humans try to search. AI in Chess 32 Trimming Search Tree: Transposition tables ●Many positions occur via transpositions. If the computer has an evaluation for: 1.e4 e5 2.f4 it should be able to use that for 1.f4 e5 2.e4 Trade off of search time vsAI instorage Chess time 33 Current State • Computer AIs now teach us! • Big part of challenge is making the AI levels varying so that people can use them to get better • Is chess solvable? Difficult to say if we'll ever have enough power to solve chess? AI in Chess 34 Kramnik “I don’t know whether computers are improving the style of play, I know they are changing it. Chess has become a different game, one could say that computers have changed the world of chess. That is pretty clear.” - Vladimir Kramnik AI in Chess 35 What can we learn from computers? “Let us suppose that at one point in your game you have a choice between two moves, Rd1 or Ng5. Which should you play? You settle down comfortably in your chair and start your analysis by silently saying to yourself the possible moves. 'All right, I could play Rd1 and he would probably play ...Bb7, or he could take my a-pawn, which is now undefended. What then? Do I like the look of the position then?' You go one move further in your analysis and then you pull a long face— the rook move no longer appeals to you. Then you look at the knight move. 'What if I go NG5? AI in Chess 36 What can we learn from computers? “He can drive it away by ...h6, I go Ne4, he captures it with his bishop. I recapture and he attacks my queen with his rook. That doesn't look very nice...so the knight move is no good. Let's look at the rook move again. If he plays ...Bb7 I can reply f3, but what if he captures my a-pawn. What can I play then? No, the rook move is no good. I must check the knight move again. So, Ng5, h6; Ne4, Bxe4; Qxe4, Rd4. No good! So I mustn't move the knight. Try the rook move again. Rd1, Qxa2.' At this point you glance at the clock. 'My goodness! Already 30 minutes gone on thinking whether to move the rook or knight.' AI in Chess 37 What can we learn from computers? “If it goes on like this you'll really be in time trouble. And then suddenly you are struck by the happy idea—why move the rook or knight? 'What about Bb1?' And without any more ado, without any analysis at all you move the bishop, just like that, with hardly any consideration at all” -Think Like a Grandmaster, Alexander Kotov AI in Chess 38 What can computers learn from us? AI in Chess 39 Kickboxing “A computer once beat me at chess, but it was no match for me at kick boxing.” -Emo Phillips AI in Chess 40 Thank you AI in Chess 41.
Recommended publications
  • 3 After the Tournament
    Important Dates for 2018-19 Important Changes early Sept. Chess Manual & Rule Book posted online TERMS & CONDITIONS November 1 Preliminary list of entries posted online V-E-3 Removes all restrictions on pairing teams at the state December 1 Official Entry due tournament. The result will be that teams from the same Official Entry should be submitted online by conference may be paired in any round. your school’s official representative. V- E-6 Provides that sectional tournament will only be paired There is no entry fee, but late entries will incur after registration is complete so that last-minute with- a $100 late fee. drawals can be taken into account. December 1 Updated list of entries posted online IX-G-4 Clarifies that the use of a smartwatch by a player is ille- gal, with penalties similar to the use of a cell phone. December 1 List of Participants form available online Contact your activities director for your login ID and password. VII-C-1,4,5,6 and VIII-D-1,2,4 Failure to fill out this form by the deadline con- Eliminates individual awards at all levels of the stitutes withdrawal from the tournament. tournament. Eliminates the requirement that a player stay on one board for the entire tournament. Allows January 2 Required rules video posted players to shift up and down to a different board, while January 16 Deadline to view online rules presentation remaining in the "Strength Order" declared by the Deadline to submit List of Participants (final coach prior to the start of the tournament.
    [Show full text]
  • Anatoly Karpov INTRODUCTION
    FOREWARD In December of 1998 as I was winning the first ever FIDE World Active Championship in Mazatlan Mexico, I noticed I had the same person working the chess wall board for my very difficult final matches versus Viktor Gavrikov and Roman Dzindzichashvili. Imagine my surprise as I was autographing a book, when he asked if I would consider an American second for the upcoming Candidates Quarter-final match with Hjartarson. The idea seemed interesting as more and more matches were taking place in English speaking countries, so I suggested we meet at the end of the event after the closing ceremonies. In checking with my team, we discovered in his youth, Henley had scored impressive wins versus Timman, Seirawan, Ribli, Miles, Short and others, followed by a very long gap. I also found it a good omen that Ron shared the December 5th birthday of my first trainer/mentor and very good friend Semyon Furman who passed in 1978. Throughout the nineties, Ron joined our team for matches with Anand, Timman (2), Yusupov, Gelfand, Kamsky and Kasparov. In “Win Like Karpov” Henley explains in a basic easy to understand level many of the strategies and tactics that brought me success at key moments in my career. I have contributed notes, commentary and photos to several key moments from my “Second Career” in the 1990’s when I achieved my highest ELO - 2780 and regained the FIDE World Championship. GM Henley has done an excellent job of identifying several key opening positions as well as certain types of recurring themes in my Classical Style of middlegame play.
    [Show full text]
  • Vasily Smyslov
    Vasily Smyslov Volume I The Early Years: 1921-1948 Andrey Terekhov Foreword by Peter Svidler Smyslov’s Endgames by Karsten Müller 2020 Russell Enterprises, Inc. Milford, CT USA 1 1 Vasily Smyslov Volume I The Early Years: 1921-1948 ISBN: 978-1-949859-24-9 (print) ISBN: 949859-25-6 (eBook) © Copyright 2020 Andrey Terekhov All Rights Reserved No part of this book may be used, reproduced, stored in a retrieval system or transmitted in any manner or form whatsoever or by any means, electronic, electrostatic, magnetic tape, photocopying, recording or otherwise, without the express written permission from the publisher except in the case of brief quotations embodied in critical articles or reviews. Published by: Russell Enterprises, Inc. P.O. Box 3131 Milford, CT 06460 USA http://www.russell-enterprises.com [email protected] Cover by Fierce Ponies Printed in the United States of America 2 Table of Contents Introduction 6 Acknowledgments 9 Foreword by Peter Svidler 11 Signs and Symbols 13 Chapter 1. First Steps – 1935-37 14 Parents and Childhood 14 Chess Education at Home 18 The First Tournaments 22 The First Publications 26 The First Victories over Masters 34 Chapter 1: Games 41 Chapter 2. The Breakthrough Year – 1938 49 USSR Junior Championship 49 The First Adult Tournaments 53 The Higher Education Quandary 54 Candidate Master 56 1938 Moscow Championship 62 Chapter 2: Games 67 Chapter 3. The Young Master – 1939-40 80 1939 Leningrad/Moscow Training Tournament 80 The Run-Up to the 1940 USSR championship 87 Chapter 3: Games 91 Chapter 4. Third in the Soviet Union – 1940 118 World Politics and Chess 118 Pre-Tournament Forecasts 121 Round-By-Round Overview 126 After the Tournament 146 Chapter 4: Games 151 3 Chapter 5.
    [Show full text]
  • Reshevsky Wins Playoff, Qualifies for Interzonal Title Match Benko First in Atlantic Open
    RESHEVSKY WINS PLAYOFF, TITLE MATCH As this issue of CHESS LIFE goes to QUALIFIES FOR INTERZONAL press, world champion Mikhail Botvinnik and challenger Tigran Petrosian are pre­ Grandmaster Samuel Reshevsky won the three-way playoff against Larry paring for the start of their match for Evans and William Addison to finish in third place in the United States the chess championship of the world. The contest is scheduled to begin in Moscow Championship and to become the third American to qualify for the next on March 21. Interzonal tournament. Reshevsky beat each of his opponents once, all other Botvinnik, now 51, is seventeen years games in the series being drawn. IIis score was thus 3-1, Evans and Addison older than his latest challenger. He won the title for the first time in 1948 and finishing with 1 %-2lh. has played championship matches against David Bronstein, Vassily Smyslov (three) The games wcre played at the I·lerman Steiner Chess Club in Los Angeles and Mikhail Tal (two). He lost the tiUe to Smyslov and Tal but in each case re­ and prizes were donated by the Piatigorsky Chess Foundation. gained it in a return match. Petrosian became the official chal­ By winning the playoff, Heshevsky joins Bobby Fischer and Arthur Bisguier lenger by winning the Candidates' Tour­ as the third U.S. player to qualify for the next step in the World Championship nament in 1962, ahead of Paul Keres, Ewfim Geller, Bobby Fischer and other cycle ; the InterzonaL The exact date and place for this event havc not yet leading contenders.
    [Show full text]
  • An Arbiter's Notebook
    What is a Valid Claim? Purchases from our shop help keep ChessCafe.com freely accessible: Question Dear, Geurt. I was the Arbiter in Grandmaster Group C during the Corus Chess tournament. I was able to observe the way players handled the new speed of play: 40 moves in 100', followed by 20 in 50', followed by 15', while there was an increment of 30 seconds per move starting from move one. When not in time trouble, thirteen out of fourteen players recorded their move immediately after having made it, or after their opponent's move; one player recorded her opponent's move together with her own move, directly after having made a move herself. An Arbiter’s However, when in time trouble, with a recording requirement till the end, this Notebook changed. Many of the players now recorded their moves the way player fourteen did from the beginning. But four players in different rounds started to Play Chess Like the Pros blitz illegally when their opponent answered a move immediately in a legal by Danny Gormally Geurt Gijssen way. Undoubtedly, this is caused by the fact that in games without increment it is allowed to blitz without recording moves when a player has less than five minutes for that part of the game. Once a player even had to stop the clock and ask for assistance. His opponent had started blitzing, triggered by an immediate answer; actually I am convinced that the player who started the blitzing was not doing this on purpose. Players in time trouble, filled with adrenaline, are eager to make an immediate counter-move.
    [Show full text]
  • Starting Out: the Sicilian JOHN EMMS
    starting out: the sicilian JOHN EMMS EVERYMAN CHESS Everyman Publishers pic www.everymanbooks.com First published 2002 by Everyman Publishers pIc, formerly Cadogan Books pIc, Gloucester Mansions, 140A Shaftesbury Avenue, London WC2H 8HD Copyright © 2002 John Emms Reprinted 2002 The right of John Emms to be identified as the author of this work has been asserted in accordance with the Copyrights, Designs and Patents Act 1988. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, photocopying, recording or otherwise, without prior permission of the publisher. British Library Cataloguing-in-Publication Data A catalogue record for this book is available from the British Library. ISBN 1 857442490 Distributed in North America by The Globe Pequot Press, P.O Box 480, 246 Goose Lane, Guilford, CT 06437·0480. All other sales enquiries should be directed to Everyman Chess, Gloucester Mansions, 140A Shaftesbury Avenue, London WC2H 8HD tel: 020 7539 7600 fax: 020 7379 4060 email: [email protected] website: www.everymanbooks.com EVERYMAN CHESS SERIES (formerly Cadogan Chess) Chief Advisor: Garry Kasparov Commissioning editor: Byron Jacobs Typeset and edited by First Rank Publishing, Brighton Production by Book Production Services Printed and bound in Great Britain by The Cromwell Press Ltd., Trowbridge, Wiltshire Everyman Chess Starting Out Opening Guides: 1857442342 Starting Out: The King's Indian Joe Gallagher 1857442296
    [Show full text]
  • Double Fianchetto – the Modern Chess Lifestyle
    DOUBLE-FIANCHETTO THE MODERN CHESS LIFESTYLE by Daniel Hausrath www.thinkerspublishing.com Managing Editor Romain Edouard Assistant Editor Daniel Vanheirzeele Graphic Artist Philippe Tonnard Cover design Iwan Kerkhof Typesetting i-Press ‹www.i-press.pl› First edition 2020 by Th inkers Publishing Double-Fianchetto — the Modern Chess Lifestyle Copyright © 2020 Daniel Hausrath All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission from the publisher. ISBN 978-94-9251-075-4 D/2020/13730/3 All sales or enquiries should be directed to Th inkers Publishing, 9850 Landegem, Belgium. e-mail: [email protected] website: www.thinkerspublishing.com TABLE OF CONTENTS KEY TO SYMBOLS 5 PREFACE 7 PART 1. DOUBLE FIANCHETTO WITH WHITE 9 Chapter 1. Double fi anchetto against the King’s Indian and Grünfeld 11 Chapter 2. Double fi anchetto structures against the Dutch 59 Chapter 3. Double fi anchetto against the Queen’s Gambit and Tarrasch 77 Chapter 4. Diff erent move orders to reach the Double Fianchetto 97 Chapter 5. Diff erent resulting positions from the Double Fianchetto and theoretically-important nuances 115 PART 2. DOUBLE FIANCHETTO WITH BLACK 143 Chapter 1. Double fi anchetto in the Accelerated Dragon 145 Chapter 2. Double fi anchetto in the Caro Kann 153 Chapter 3. Double fi anchetto in the Modern 163 Chapter 4. Double fi anchetto in the “Hippo” 187 Chapter 5. Double fi anchetto against 1.d4 205 Chapter 6. Double fi anchetto in the Fischer System 231 Chapter 7.
    [Show full text]
  • FIDE Online General Assembly 6 December 2020
    FIDE Online General Assembly 6 December 2020 MINUTES 1. FIDE President’s address FIDE President welcomed all to the first ever meeting of the Online General Assembly and said that we are learning to work under new conditions and it is not an easy exercise. He proposed not to have formal scrutineers since the system does the count automatically and everyone receives the list with all the comprehensive data after the end of General Assembly; the only secret vote is for Olympiad 2024. The General Assembly approved. Dear Delegates of FIDE Online General Assembly, Dear chess friends, It is a privilege to share with you the results of our work, to summarize what has been achieved over the last two years, and to plan together for the future. My manifesto in 2018 included several promises, and I can proudly say that our dedicated team has managed to deliver - even during the difficult time of the pandemic. Our development program provided support to projects in more than 100 countries, and FIDE will keep providing this help since we know how important it is for national federations. Last year we allocated over 2 mln Euro for these purposes, this year we budgeted 1 mln Euro - due to reduced activity caused by the pandemic - but we are ready to get back to a full-scale support once the situation is normalized. Not only we cared to deliver funds to the federations, we ensured constant technical assistance and communication in such a way that many federations could feel that FIDE is always there for them.
    [Show full text]
  • Read Book Garry Kasparov on My Great Predecessors
    GARRY KASPAROV ON MY GREAT PREDECESSORS: PT. 4 PDF, EPUB, EBOOK Garry Kasparov | 496 pages | 01 Jan 2005 | EVERYMAN CHESS | 9781857443950 | English | London, United Kingdom Garry Kasparov on My Great Predecessors: Pt. 4 PDF Book Whether you've loved the book or not, if you give your honest and detailed thoughts then people will find new books that are right for them. Community Reviews. Zlatko Dimitrioski rated it it was amazing Aug 31, As always the analysis is top notch and the anecdotal stories are great! Jovany Agathe rated it liked it Nov 13, Both are great players and I would give Fischer and edge due to his results and his work ethic, whereas Kasparov could also deserve the top billing as the strongest player of his generation, a generation that was weened on the games of Fischer and others and played against players who had a deeper understanding of the game. For these reasons alone, I would call it a significant book, perhaps even one of this year's best. The primary value in Kasparov's series is that he teaches the most important classics volume 1 covers Greko through Alekhine. In that case, we can't The indefatigable Staunton, who had long dreamed of organizing a tournament of the leading players in the world, decided to make use of a convenient occasion - the Great Industrial Exhibition in London right from the moment that Prince Albert proposed it in In this book, a must for all serious chessplayers, Kasparov analyses deeply Fischer's greatest games and assesses the legacy of this great American genius.
    [Show full text]
  • A Higher Creative Species in the Game of Chess
    Articles Deus Ex Machina— A Higher Creative Species in the Game of Chess Shay Bushinsky n Computers and human beings play chess differently. The basic paradigm that computer C programs employ is known as “search and eval- omputers and human beings play chess differently. The uate.” Their static evaluation is arguably more basic paradigm that computer programs employ is known as primitive than the perceptual one of humans. “search and evaluate.” Their static evaluation is arguably more Yet the intelligence emerging from them is phe- primitive than the perceptual one of humans. Yet the intelli- nomenal. A human spectator is not able to tell the difference between a brilliant computer gence emerging from them is phenomenal. A human spectator game and one played by Kasparov. Chess cannot tell the difference between a brilliant computer game played by today’s machines looks extraordinary, and one played by Kasparov. Chess played by today’s machines full of imagination and creativity. Such ele- looks extraordinary, full of imagination and creativity. Such ele- ments may be the reason that computers are ments may be the reason that computers are superior to humans superior to humans in the sport of kings, at in the sport of kings, at least for the moment. least for the moment. This article is about how Not surprisingly, the superiority of computers over humans in roles have changed: humans play chess like chess provokes antagonism. The frustrated critics often revert to machines, and machines play chess the way humans used to play. the analogy of a competition between a racing car and a human being, which by now has become a cliché.
    [Show full text]
  • Mikhail Botvinnik Sixth World Chess Champion
    Mikhail Botvinnik Sixth World Chess Champion Isaak & Vladimir Linder Foreword by Andy Soltis Game Annotations by Karsten Müller World Chess Champions Series 2020 Russell Enterprises, Inc. Milford, CT USA 1 1 Mikhail Botvinnik Sixth World Chess Champion ISBN: 978-1-949859-16-4 (print) ISBN: 949859-17-1 (eBook) © Copyright 2020 Vladimir Linder All Rights Reserved No part of this book may be used, reproduced, stored in a retrieval system or transmitted in any manner or form whatsoever or by any means, electronic, electrostatic, magnetic tape, photocopying, recording or otherwise, without the express written permission from the publisher except in the case of brief quotations embodied in critical articles or reviews. Published by: Russell Enterprises, Inc. P.O. Box 3131 Milford, CT 06460 USA http://www.russell-enterprises.com [email protected] Cover by Janel Lowrance Printed in the United States of America 2 Table of Contents Foreword by Andy Soltis Signs and Symbols Everything about the World Championships Prologue Chapter 1 His Life and Fate His Childhood and Youth His Family His Personality His Student Life The Algorithm of Mastery The School of the Young and Gifted Political Survey Guest Appearances Curiosities The Netherlands Great Britain Chapter 2 Matches, Tournaments, and Opponents AVRO Tournament, 1938 Alekhine-Botvinnik: The Match That Did Not Happen Alekhine Memorial, 1956 Amsterdam, 1963 and 1966 Sergei Belavienets Isaak Boleslavsky Igor Bondarevsky David Bronstein Wageningen, 1958 Wijk aan Zee, 1969 World Olympiads
    [Show full text]
  • Prepare with Chess Strategy
    Prepare With Chess Strategy By Alexey W. Root, Ph.D. and Woman International Master of Chess © 2016 Alexey W. Root All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic or mechan- ical, including photocopying, recording, or by an information storage and retrieval system, without written permission from the Publisher. Publisher: Mongoose Press 1005 Boylston Street, Suite 324 Newton Highlands, MA 12461 [email protected] www.MongoosePress.com ISBN: 9781936277698 Library of Congress Control Number: 2016900609 Distributed to the trade by National Book Network [email protected], 800-462-6420 For all other sales inquiries please contact the Publisher. Editor: Jorge Amador Layout: Andrei Elkov Cover Design: Al Dianov Cover photo: Rade Milovanovic First English edition 0 987654321 Boy Scouts of America®, Be Prepared®, Boy Scout™, Boys’ Life®, BSA®, Chess Merit Badge™ design, Cub Scout™, Cub Scouts®, Merit Badge®, National Scouting Museum®, and Scouting® are either registered trademarks or trademarks of Boy Scouts of America in the United States and/or other countries. Published under license from the Boy Scouts of America. All rights reserved. For James Eade, President of the U.S. Chess Trust, a for- mer Boy Scout, and the author of my favorite chess primer, Chess For Dummies. Contents Chapter 1: Introduction ....................................................9 Resources .................................................................10 Definitions ................................................................13
    [Show full text]