Spaces:
Runtime error
Runtime error
Commit
·
796b917
1
Parent(s):
3fe9033
Update app.py
Browse files
app.py
CHANGED
@@ -80,15 +80,13 @@ def run_code():
|
|
80 |
#code2="subway=MyEnv()"
|
81 |
#code3="subway.agent=tim"
|
82 |
#code4="log_everything(subway)"]
|
83 |
-
from dcogsphere import
|
84 |
-
from dcogsphere import
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
exec(code5)
|
91 |
-
response = requests.get("http:///logs")
|
92 |
print(response)
|
93 |
|
94 |
css="footer {visibility: hidden}"
|
|
|
80 |
#code2="subway=MyEnv()"
|
81 |
#code3="subway.agent=tim"
|
82 |
#code4="log_everything(subway)"]
|
83 |
+
from dcogsphere import RockPaperScissors
|
84 |
+
from dcogsphere import ProceduralPlayer
|
85 |
+
env=RockPaperScissors()
|
86 |
+
env.model1=ProceduralPlayer()
|
87 |
+
env.model1.choice=env.choice1
|
88 |
+
env.model2=ProceduralPlayer()
|
89 |
+
env.model2.choice=env.choice2
|
|
|
|
|
90 |
print(response)
|
91 |
|
92 |
css="footer {visibility: hidden}"
|