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 c good eval, write a new evaluation function. Using this function,
write code in problem c that will play an alphabeta agent with depth cutoff using
your evaluation function against a random agent. Play once as X and once as O
Note: For this problem and also d and also 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
Describe sentences your evaluation function in your writeup and explain
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 d run games of an alphabetacutoff agent using my eval
uation function versus an alphabetacutoff agent using your evaluation function, with
each agent playing times as X and times as O Run four of games at depth limit
for both agents, then four games at depth limit 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 games, you return
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
