Question: 4 . Adversial search heuristics ( 2 0 Points ) Connect - 4 is a game that is similar to Tic - Tac - Toe.
Adversial search heuristics Points
Connect is a game that is similar to TicTacToe. The object is to get pieces in
a row and to prevent your opponent from doing the same However, the board
is squares vertically, by square horizontally. Also, because the board is
vertical, when a player drops their piece from the top, gravity makes it go all the
way to the bottom of the board if there are not other pieces in the column or
on top of the topmost piece that is already in the column.
When he was your dear Prof Joe wrote a Connect program. It only did one
ply of search, but it had this heuristic function:
If a move gets you pieces in a row, then take it else
If a move prevents your opponent from putting pieces in a row, then take
it else
If a move gets you pieces in a row but with an empty position on either
side, then take it else
If a move prevents your opponent from putting pieces in a row but with an
empty position on either side, then take it else
If a move gets you pieces in a row, then take it else
If a move prevents your opponent from putting pieces in a row, then take
it else
If a move gets you pieces in a row but with an empty position on either
side, then take it else
If a move prevents your opponent from putting pieces in a row but with an
empty position on either side, then take it else
If a move gets you pieces in a row, then take it else
If a move prevents your opponent from putting pieces in a row, then take
it else
Choose the middle column
Please tell how a program that did more than one ply of search might beat this
program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
