From cb229164a3cca5c7b3dec84f539cb1e33d52f7fe Mon Sep 17 00:00:00 2001 From: Liyao Zhu <stevens.zhu@gmail.com> Date: Fri, 5 Apr 2019 15:49:47 +1100 Subject: [PATCH] game.py and agent.py structure build1 --- Collective-Risk_Dilemma.py | 1 + agent.py | 16 ++++++++++++++++ game.py | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 agent.py create mode 100644 game.py diff --git a/Collective-Risk_Dilemma.py b/Collective-Risk_Dilemma.py index 4dd97ad..e8bc02c 100755 --- a/Collective-Risk_Dilemma.py +++ b/Collective-Risk_Dilemma.py @@ -8,6 +8,7 @@ import matplotlib.pyplot as plt import numpy as np import math + # Constants ____________________________________________________ N = 100 # Size of the population diff --git a/agent.py b/agent.py new file mode 100644 index 0000000..509b127 --- /dev/null +++ b/agent.py @@ -0,0 +1,16 @@ +import game + + + + +class Agent(): + + def __init__(self): + + self.undefined = None + + + def chooseAction(selfs): + + return 0 + \ No newline at end of file diff --git a/game.py b/game.py new file mode 100644 index 0000000..bd23c0d --- /dev/null +++ b/game.py @@ -0,0 +1,6 @@ +import agent +import matplotlib.pyplot as plt +import numpy as np +import math + + -- GitLab