Skip to content

Commit

Permalink
FIX: Bugfix in brd.py (#657)
Browse files Browse the repository at this point in the history
* FIX: Bugfix in brd.py

* RFC: Remove unused variable
  • Loading branch information
oyamad committed Nov 25, 2022
1 parent 57b1d1e commit 6cc1759
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion quantecon/game_theory/brd.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def play(self, action, action_dist, **options):
action_dist[action] -= 1
next_action = self.player.best_response(action_dist,
tol=tol,
tie_breaking=self.tie_breaking,
tie_breaking=tie_breaking,
random_state=random_state)
action_dist[next_action] += 1
return action_dist
Expand Down
1 change: 0 additions & 1 deletion quantecon/game_theory/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def _random_mixed_actions(out, random_state):
out : tuple(ndarray(float, ndim=1))
"""
N = len(out)
for x in out:
n = x.shape[0]
if n == 1:
Expand Down

0 comments on commit 6cc1759

Please sign in to comment.