Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "*** YOUR CODE HERE ***"
- '''
- numghosts = gameState.getNumAgents()-1
- if terminal state(s): return utility(s)
- if player(s)==0:
- gameState.getLegalActions(s)
- return minimax(Result(s,max action))
- for i in numghosts:
- if player(s)<=1
- gameState.getLegalActions(s)
- return minimax(Result(s,min action))
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement