Intelligence for Games and Puzzles1 The Game of Go Two players, Black and White, take turns placing.

Slides:



Advertisements
Similar presentations
Artificial Intelligence: Knowledge Representation
Advertisements

METAGAMER: An Agent for Learning and Planning in General Games Barney Pell NASA Ames Research Center.
Heuristic Search techniques
Apostles Chess Club Lesson #4. Algebraic Chess Notation System The board is set up from white’s position. Black must look at the board from the white.
Place captured red pieces below Place captured blue pieces below Rules New Game Exit Left mouse click on piece – drag to desired location - left mouse.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2008.
Table of Contents Why Play Chess? Setting Up the Board Get to Know the Pieces Check and Checkmate What the Chess Pieces Are Worth Opening Goals Endgame.
Adversarial Search: Game Playing Reading: Chapter next time.
CHESS FOR KIDS Lesson 1.
Table of Contents The Importance of Chess –Research –Georgia Performance Standard The Players The Battlefield Magical Moves –Castling –Check and Check.
Application of Artificial intelligence to Chess Playing Capstone Design Project 2004 Jason Cook Bitboards  Bitboards are 64 bit unsigned integers, with.
Artificial Intelligence in Game Design Heuristics and Other Ideas in Board Games.
 The amount of time it takes a computer to solve a particular problem depends on:  The hardware capabilities of the computer  The efficiency of the.
Module 3 Chess 101 Strategy Strategy refers to an overall plan to achieve a goal In every game you play your goal should be to checkmate your opponent,
Strategy Games for Older Students YUMI DEADLY CENTRE School of Curriculum Enquiries: YuMi Deadly.
Artificial Intelligence in Game Design Introduction to Learning.
Learning Shape in Computer Go David Silver. A brief introduction to Go Black and white take turns to place down stones Once played, a stone cannot move.
Reinforcement Learning of Local Shape in the Game of Atari-Go David Silver.
Inside HARUKA Written by Ryuichi Kawa Surveyed by Akihiro Kishimto.
ICS-271:Notes 6: 1 Notes 6: Game-Playing ICS 271 Fall 2006.
1 Game Playing Chapter 6 (supplement) Various deterministic board games Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s.
1 Solving Ponnuki-Go on Small Board Paper: Solving Ponnuki-Go on small board Authors: Erik van der Werf, Jos Uiterwijk, Jaap van den Herik Presented by:
A Heuristic Search Algorithm for Capturing Problems in Go Authors: Keh-Hsun Chen and Peigang Zhang Presenter: Ling Zhao August 8, 2006.
Monte Carlo Go Has a Way to Go Haruhiro Yoshimoto (*1) Kazuki Yoshizoe (*1) Tomoyuki Kaneko (*1) Akihiro Kishimoto (*2) Kenjiro Taura (*1) (*1)University.
Reinforcement Learning of Local Shape in the Game of Atari-Go David Silver.
The Game of Go Go is an ancient Chinese board game that is believed to be 2,000 to 4,000 years old. Anton Ninno, OCM-BOCES
Corea Japan China WeiqiGoBaduk. The Go is one of the oldest board game in the world. Its true origins are unknown, though it almost certainly originated.
Wei Qi, Baduk, Go a game of strategy
How to play Chess.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Chess Merit Badge Chess Basics: Set Up the Board & Basic Rules by Joseph L. Bell © 2011.
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.
Artificial Intelligence in Game Design Problems and Goals.
Coaching Pack 5 – 8 Years.
Artificial Intelligence in Game Design Lecture 22: Heuristics and Other Ideas in Board Games.
Introduction Many decision making problems in real life
Computer Go : A Go player Rohit Gurjar CS365 Project Proposal, IIT Kanpur Guided By – Prof. Amitabha Mukerjee.
 Summary  How to Play Go  Project Details  Demo  Results  Conclusions.
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
Starcraft Opponent Modeling CSE 391: Intro to AI Luciano Cheng.
CHAPTER 10: CORE MECHANICS Definitions and Mechanisms.
Tactics. What is a tactic? A tactic is a specific way of carrying out a particular strategy and of applying in action principles of play common in games.
A Classic Game of Strategy for the 21 st Century.
Coaching Pack 12 – 16 Years. What Am I Coaching Today? What Might the Players Learn or Get Better at? TechnicalPsychological example PhysicalSocial example.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
Artificial intelligence IN NPCs. Early Role Playing games Npcs in early role playing games were very limited in terms of being “Intelligent”. For instance,
Summary of the Moves of Chess
UNIT 5.  The related activities of sorting, searching and merging are central to many computer applications.  Sorting and merging provide us with a.
How to play chess? By Mervyn George. The Rules of the Game White always move first White always move first You should always play touch a piece move a.
CHESS 2: Castling and Forking…and a Stalemate A Levoy Power Point.
Every chess master was once a beginner. Irving Chernev
Chess Strategies Component Skills Strategies Prototype Josh Waters, Ty Fenn, Tianyu Chen.
Learning to Play the Game of GO Lei Li Computer Science Department May 3, 2007.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
CHESS Club.  The game of chess is over 1300 years old and is one of the most popular games in the world. It has received more total thought time than.
A Scalable Machine Learning Approach to Go Pierre Baldi and Lin Wu UC Irvine.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
An AI Game Project. Background Fivel is a unique hybrid of a NxM game and a sliding puzzle. The goals in making this project were: Create an original.
1 Evaluation Function for Computer Go. 2 Game Objective Surrounding most area on the boardSurrounding most area on the board.
2013 Section Meeting Coaching Workshop Maximizing Coaching Moments with Young Players.
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.
CHESS “The Ultimate GAME of Challenge and Strategy”
CHESS.
Multiplayer Games By: Miss Dinnella.
C nnect 4 Group 9-18 See Zhuo Rui Jorelle 3S3 (Leader)
Goal-driven Mechanism in Interim.2 Go Program
National Dong Hwa University
The Alpha-Beta Procedure
2019 SAIMC Puzzle Challenge General Regulations
Unit II Game Playing.
Presentation transcript:

Intelligence for Games and Puzzles1 The Game of Go Two players, Black and White, take turns placing a stone on virtually any empty point on a board (usually 19x19) or passing Neighbouring stones of the same colour connected along a line (but not a diagonal) share a common fate: they form a “block”; they live together, or are captured together A capture occurs when no stone in an enemy block is neighbour to an empty point on the board. captured stones are removed it is permitted to play on the empty points left behind after a capture

Intelligence for Games and Puzzles2 Restrictions on moves Two rules prohibit certain moves 1. Suicide is not allowed (ok in Taiwan rules) You cannot play on a point if the block you would make has no liberties (neighbouring empty points) Any capture of enemy stones happens first, a capture will give you liberties, so not suicide 2. Repeating a previous position is not allowed The commonest case is “ko”, where opponent has just captured one stone if you played another stone there now, you would capture back just that opponent stone then he could … you could … for ever    

Intelligence for Games and Puzzles3 Object of the game; Scoring a game The object of the game is to control more of the board than your opponent. There are two major scoring systems, which almost always give the same result (if game is played to the finish): Japanese: each player counts the territory he has surrounded, minus prisoners captured. Players are expected to recognise when certain stones on the board have no hope of survival, and treat them as prisoners. Chinese: each player adds the territory he has surrounded to the stones he has on the board. Doomed stones must actually be captured. Territory means empty points in which the opponent could not profitably play, any stones he did play there would end up being captured.

Intelligence for Games and Puzzles4 Phases of the game The game in practice usually goes through four phases: Opening (“fuseki”) Players lay claim first to corners, then edges of the board, typically playing on the third and fourth lines counting from edges. It is easiest to make territory in corners, hardest in the centre. Skilled players know many standard sequences (“joseki”) for playing in the corners. Middle game (“chusan”) Players attack each other’s groups of stones, threatening captures, sometimes on a large scale. In attacking they also seek to exert control over larger areas of empty points, thus building territory. Endgame (“yose”) Players seek to win themselves a couple of points here, deny the opponent a couple there. There are seldom significant captures in the endgame. Filling in “dame” - points of no value to either side. When both players pass, they then “tidy up” before counting the score.

Intelligence for Games and Puzzles5 Levels of skill Human players, amateur and professional, are ranked on a scale such that a player at one point on the scale expects to win about 2/3 of his games against a player one point lower. “kyu” ranks go from 35k (absolute beginner) to 1k; but you quickly climb to around 16 k with a couple of dozen games “dan” (expert amateur) go from 1d to 6d (or thereabouts); “professional” goes from 1p to 9p; 1p  6d absolute beginners who just know the rules me on a good day the very best player I know the meijinthe best programs

Intelligence for Games and Puzzles6 Handicaps In games between equally-ranked players, chance dictates who takes Black and goes first; White receives an allowance (komi, usu. 6.5 points) to compensate. In friendly games between players one rank apart, the weaker one always gets the advantage of playing Black, komi might be 0.5. When players are two or more ranks apart, the weaker player is given free stones at the beginning, in fixed positions, and White makes the first real move. The number of free stones corresponds to the difference in ranks. Up to nine stones are common. If more than nine stones are needed, usually White has to win by a margin of 10 points per extra rank difference (and usually succeeds) Players of radically different strengths can still enjoy a challenge.

Intelligence for Games and Puzzles7 What makes Go hard for computers and AI? High Branching factor: On a 19x19 board, for much of the game there are moves Game length: Games commonly last for moves; sometimes even 350+ Difficulty of evaluation: easily the most significant: It is hard even to design algorithms for determining the Japanese scoring of a game that players agree is over: one must determine which stones are dead, either by search, by pattern recognition, or a mixture of those two. It is hard to design algorithms for determining that there are no more moves worth making - i.e. that the game is over and counting should begin Crucially, it is hard to evaluate the worth of a position, hence the (minimax) score for a move.  What players want in positions has little to do with either the positions of individual stones, or the number of prisoners captured.

Intelligence for Games and Puzzles8 6d commentator says “the game is over”!

Intelligence for Games and Puzzles9 Tactical possibilities Players must be sensitive to the tactical chances of both sides - particularly sequences of moves that will capture a block of stones sequences of moves that can make a block of stones uncapturable Some of the many tactics for capture are ladders - keeping an enemy block in atari - having just one liberty - until eventually capturing it nets - surrounding a block a little more loosely, so that whichever way an escape is attempted it can be prevented. Tactics for securing a block of stones are forming eyes - empty points wholly surrounded by a block. Such points can be played by the enemy only if capturing. With two eyes, neither can be played by the enemy because of the no-suicide rule making seki - a local stalemate where neither side can safely make the first move to capture the other

Intelligence for Games and Puzzles10 Ladder example

Intelligence for Games and Puzzles11 Ladder example

Intelligence for Games and Puzzles12 Ladder example

Intelligence for Games and Puzzles13 Ladder example

Intelligence for Games and Puzzles14 Ladder example

Intelligence for Games and Puzzles15 Ladder example

Intelligence for Games and Puzzles16 Ladder example

Intelligence for Games and Puzzles17 Ladder example

Intelligence for Games and Puzzles18 Ladder example

Intelligence for Games and Puzzles19 Ladder example

Intelligence for Games and Puzzles20 Ladder example

Intelligence for Games and Puzzles21 Ladder example

Intelligence for Games and Puzzles22 Ladder example

Intelligence for Games and Puzzles23 Ladder example

Intelligence for Games and Puzzles24 Ladder example

Intelligence for Games and Puzzles25 Ladder example

Intelligence for Games and Puzzles26 Ladder example

Intelligence for Games and Puzzles27 Ladder example

Intelligence for Games and Puzzles28 Ladder example

Intelligence for Games and Puzzles29 Ladder example

Intelligence for Games and Puzzles30 Ladder example

Intelligence for Games and Puzzles31 Ladder example

Intelligence for Games and Puzzles32 Ladder example

Intelligence for Games and Puzzles33 Net example

Intelligence for Games and Puzzles34 Net example

Intelligence for Games and Puzzles35 Net example

Intelligence for Games and Puzzles36 Net example

Intelligence for Games and Puzzles37 Net example

Intelligence for Games and Puzzles38 Other standard tactics There are plenty of other tactics sufficiently commonplace to have names: Loose ladder; Broken ladder; Ladder Breaker Nets of several varieties: geta, knight’s-move, … Sacrifices of various kinds: Snapback, Throw-In, … Connections of various kinds: Bamboo joint, One-space jump, … Ko fight: distant threats forcing responses, bypassing the ko rule Blocks that surround one empty area of 1-6 empty points may not be safe, some configurations of empty space can be filled in by the opponent to kill by nakade. Whether a block (or a group of blocks) can be captured or secured may be determined Dynamically, by search of possible moves Statically (sometimes), using patterns and/or algorithmic analysis

Intelligence for Games and Puzzles39 Strategic elements In addition to recognizing the opportunity/threat of tactical combinations, players recognize and reason with various high-level concepts: ko threat - a forcing move, played to permit a subsequent move forbidden by ko moyos - empty areas where one player has staked a rather insecure claim walls - (nearly) straight lines of stones bordering a (significantly) large and (almost) empty area semeai - capturing races where two opposing groups can only survive by killing the other seki - stalemates where two opposing groups can survive only because the other cannot afford the move to make atari shape - good shape is a property of groups of stones that can easily acquire two or more eyes. overconcentration - too many stones of one player in an area sente (initiative) - freedom to initiate activity in another part of the board

Intelligence for Games and Puzzles40 Moyos and Territories Moyo Territory

Intelligence for Games and Puzzles41 Planning, and Multipurpose moves Skilful players are good at finding multipurpose moves - moves that make progress towards fulfilling more than one goal at the same time. Attacking enemy stones or positions Securing own stones or positions Reducing enemy moyo or territory Expanding own moyo or territory Splitting enemy position into weak fragments to be attacked later Connecting own fragments into stronger, more resilient whole A program capable of finding such moves must do planning in the AI sense: formulate goals, formulate plans for achieving them recognise opponent moves as forming part of opponent plan, seek moves to thwart those plans find moves, possibly less than optimal for any one plan, yet multipurpose

Intelligence for Games and Puzzles42 Perception of fuzzily-defined structures & relationships Skilled players describe positions in terms of high-level concepts: some are tactical but most are strategic, like wall, moyo, connection, sente, influence. Recognising these is challenging for an algorithm, since many of the relationships and structures are hard even to define except in a fuzzy way. Recognising them when the stones involved are not yet played is harder still! Experimental psychological studies (using think-aloud protocols; measurement of speed & accuracy of position recall; eye-tracking etc) beginning with the early Reitman paper, have sought to elucidate what expert players perceive, so that algorithms can be developed to perceive the same or similar. (Reitman, 1976: Skilled perception in Go: Deducing Memory Structures from inter-response times. Cognitive Psychology vol 8 pp )

Intelligence for Games and Puzzles43 Revertible data structures? Chess programs need to represent the pieces on the board, and little else. Chess programs with fast search methods work well when combined with static evaluation functions that examine the locations of pieces on the board. Go programs appear to need to represent structures much more complex than the stones on the board. Most of these structures will be unaffected by any particular move. Should a program use revertible data structures, which can be incrementally updated and downdated?  Complex coding but perhaps cheap to use in backtracking search Or should it build structures from scratch for every move?  Simpler coding, less bug-prone, arguably (Wilcox) equally cheap.

Intelligence for Games and Puzzles44 Use of machine learning techniques Computer Go is second only to Computer Chess in terms of the research and programming effort that has been put in - with far less success. There are numerous attempts to use machine learning, with and without neural networks, to extract and refine the implicit knowledge of human experts. Go Servers (IGS, KGS, NNGS, …) allow remote players to play online, they keep records which can be mined. Professional and top-level amateur games are (manually) recorded, and commented, and distributed via internet. If a professional played this move it must be good … learn to predict the move the professional chose, you have learnt something!