Skip to content

Commit bd8cd27

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 94b5cea commit bd8cd27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

game_theory/best_response_dynamics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
22

3+
34
def best_response_dynamics(payoff_matrix_a, payoff_matrix_b, iterations=10):
45
n = payoff_matrix_a.shape[0]
56
m = payoff_matrix_a.shape[1]
@@ -21,6 +22,7 @@ def best_response_dynamics(payoff_matrix_a, payoff_matrix_b, iterations=10):
2122

2223
return strategy_a, strategy_b
2324

25+
2426
# Example usage
2527
payoff_a = np.array([[3, 0], [5, 1]])
2628
payoff_b = np.array([[2, 4], [0, 2]])

0 commit comments

Comments
 (0)