forked from karinemiras/evoman_framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhuman_demo.py
More file actions
executable file
·28 lines (23 loc) · 803 Bytes
/
human_demo.py
File metadata and controls
executable file
·28 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
################################
# EvoMan FrameWork - V1.0 2016 #
# Author: Karine Miras #
# karine.smiras@gmail.com #
################################
# imports framework
import sys, os
sys.path.insert(0, 'evoman')
from environment import Environment
experiment_name = 'test'
if not os.path.exists(experiment_name):
os.makedirs(experiment_name)
# initializes environment with human player and static enemies
for en in range(1, 9):
env = Environment(experiment_name=experiment_name,
enemymode='static',
speed="normal",
sound="on",
fullscreen=True,
use_joystick=True,
playermode='human')
env.update_parameter('enemies', [en])
env.play()