Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update argmax function call
  • Loading branch information
AdityaDaflapurkar authored Apr 6, 2018
commit a4cb9433f1fd241ea72b6be88097b0591b4b9838
2 changes: 1 addition & 1 deletion games.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def chance_node(state, action):

# Body of expectiminimax:
return argmax(game.actions(state),
key=lambda a: chance_node(state, a)) if game.actions(state) else None
key=lambda a: chance_node(state, a), default=None)


def alphabeta_search(state, game):
Expand Down