-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_kaggle.py
20 lines (17 loc) · 838 Bytes
/
run_kaggle.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Set up the Environment.
from kaggle_environments import make
from gfootball.env import create_environment
env_football = create_environment("11_vs_11_kaggle")
env = make("football",
debug=True,
configuration={"save_video": False,
"scenario_name": "academy_counterattack_easy",
"running_in_notebook": False,
'dump_full_episodes': False,
"render": True,
"logdir": "./logs"})
output = env.run(["self_play.py", "do_nothing"])[-1]
print(
'Left player: reward = %s, status = %s, info = %s' % (output[0]['reward'], output[0]['status'], output[0]['info']))
print(
'Right player: reward = %s, status = %s, info = %s' % (output[1]['reward'], output[1]['status'], output[1]['info']))