Escolar Documentos
Profissional Documentos
Cultura Documentos
INTRODUCTION TO
ARTIFICIAL INTELLIGENCE
Lecture 4
AI AND GAMES
TWO-PLAYER GAMES
Tic-Tac-Toe
Tic-Tac-Toe
Tic-Tac-Toe
f (n) = win_positions-lose_positions
6
10
12
13
15
16
17
CLASSICAL GAME AI
Checker-Board Representation
Search Algorithm:
Move History:
End-game Database:
Chess
Chess
Chess-Board Representation
The first few moves in a Chess game are important to help establish good
board position. For this reason, many Chess systems employ a database
of opening moves for a given strategy that can be linearly searched.
Chess systems typically use a modified version of game-tree search by
performing only a shallow search of the game tree using minimax with
alpha-beta pruning.
Unless the game is near the end-game, the search of the game tree will
not encounter any leaf nodes. A good utility function that helps decide
which move to make given a nearby horizon is used in chess. The utility
function for Chess defines whether a given board configuration is good
or bad for the player.
Other Games
Othello
Go
Backgammon
Poker
Scrabble
Video games.