Skip to content

Commit 61a3612

Browse files
authored
Update best_response_dynamics.py
1 parent d52d9b7 commit 61a3612

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game_theory/best_response_dynamics.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import numpy as np
2+
13
def best_response_dynamics(payoff_matrix_a, payoff_matrix_b, iterations=10):
24
n = payoff_matrix_a.shape[0]
35
m = payoff_matrix_a.shape[1]
@@ -19,7 +21,6 @@ def best_response_dynamics(payoff_matrix_a, payoff_matrix_b, iterations=10):
1921

2022
return strategy_a, strategy_b
2123

22-
2324
# Example usage
2425
payoff_a = np.array([[3, 0], [5, 1]])
2526
payoff_b = np.array([[2, 4], [0, 2]])

0 commit comments

Comments
 (0)