Advertisement
zeuskim

Untitled

Oct 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. "*** YOUR CODE HERE ***"
  2. '''
  3. numghosts = gameState.getNumAgents()-1
  4. if terminal state(s): return utility(s)
  5. if player(s)==0:
  6. gameState.getLegalActions(s)
  7. return minimax(Result(s,max action))
  8. for i in numghosts:
  9. if player(s)<=1
  10. gameState.getLegalActions(s)
  11. return minimax(Result(s,min action))
  12. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement