Judy is working on a new game called Zigglefluff, which is a…
Judy is working on a new game called Zigglefluff, which is always played by two players. She wants the computer to play well against human opponents, so she is working on a strong evaluation function for depth-limited minimax. She has identified the following game elements as indicating that Player 1 is more likely to win (in descending order of importance): Player 1 has an ocelot in their hand for every train tile that Player 2 has played on the board. Player 1 has occupied as many iron mines on the board as possible. Player 2 does not have a space shuttle near any of their own iron mines. Player 1 has more shops deployed on the board than Player 2. Write pseudo code for an evaluation function based on the above conditions. Use appropriate weights.