Question: In the function c 4 good eval, write a new evaluation function. Using this function, write code in problem 1 c that will play an

In the function c4 good eval, write a new evaluation function. Using this function,
write code in problem 1c that will play an alpha-beta agent with depth cutoff 4 using
your evaluation function against a random agent. Play once as X and once as O.
(Note: For this problem and also 1(d) and also 2(b), it may help to write
a version of your eval function to evaluate as X and another version of
your eval function to evaluate as O. This is fine.) Have the function return a
tuple (nx, no), where nx is the number of games that your agent wins as X, and no is
the number of games that your agent wins as O. So if you win both games, you return
(1,1).
Describe (2-3 sentences) your evaluation function in your writeup and explain (2-3
sentences) why you think it should do well. If your agent doesnt usually win against
a random agent, then you probably did something wrong.
d. In the function problem 1d, run 8 games of an alpha-beta-cutoff agent using my eval-
uation function versus an alpha-beta-cutoff agent using your evaluation function, with
each agent playing 4 times as X and 4 times as O. Run four of games at depth limit
2 for both agents, then four games at depth limit 3 for both agents. Return a tuple
(nx, no), where nx is the number of games that your agent wins as X, and no is the
number of games that your agent wins as O. So if you win all 8 games, you return
(4,4).
1\

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!