human
What is a the Python program you requested given the following:
I am working on the file "A1/player_notebook.ipynb".
The first task is:
This is the first part of the assignment you are expected to implement. It is the evaluation function we've been using in class. The score of a specified game state is just the number of moves open to the active player.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

class OpenMoveEvalFn():
    
    def score(self, game, maximizing_player):
        if maximizing_player:
            eval_func = len(game.get_legal_moves())
        else:
            eval_func = len(game.get_opponent_moves())
        return eval_func