Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-tutlani committed Jun 19, 2022
1 parent 62d2bde commit 21e9472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game_simulator/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from itertools import permutations
from collections import Counter
import datetime
from functools import reduce



Expand Down Expand Up @@ -432,6 +433,7 @@ def simulation_function_payoff(num_rows,
iterate_all = iterate_all

initial_history = initial_history
dotprod =lambda K, L: reduce(lambda z1, z2: z1+z2, map(lambda x: reduce(lambda x1, x2: x1*x2, x), zip(K, L))) if len(K)==len(L) else 0

timeperiod = timeperiod
iteration_name = iteration_name
Expand Down

0 comments on commit 21e9472

Please sign in to comment.