Skip to content

Commit

Permalink
0.0.6 - Max_episode_steps instead of timestep_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaquette committed Mar 11, 2017
1 parent cea3bb5 commit 4ad151f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Virtualenv
/env
.env*

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
Expand Down
4 changes: 2 additions & 2 deletions ppaquette_gym_super_mario/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
register(
id='{}/meta-SuperMarioBros{}-v0'.format(USERNAME, tile_suffix),
entry_point='{}_gym_super_mario:MetaSuperMarioBrosEnv'.format(USERNAME),
timestep_limit=9999999,
max_episode_steps=9999999,
reward_threshold=32000,
kwargs={ 'draw_tiles': draw_tiles, 'average_over': 3, 'passing_grade': 600, 'min_tries_for_avg': 3 },
nondeterministic=True,
Expand All @@ -34,7 +34,7 @@
register(
id='{}/SuperMarioBros-{}-{}{}-v0'.format(USERNAME, world_number, level_number, tile_suffix),
entry_point='{}_gym_super_mario:SuperMarioBrosEnv'.format(USERNAME),
timestep_limit=10000,
max_episode_steps=10000,
reward_threshold=(max_distance - 40),
kwargs={ 'draw_tiles': draw_tiles, 'level': level },
# Seems to be non-deterministic about 5% of the time
Expand Down
2 changes: 1 addition & 1 deletion ppaquette_gym_super_mario/package_info.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION='0.0.5'
VERSION='0.0.6'
USERNAME='ppaquette'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gym>=0.2.3
gym>=0.8.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
packages=[package for package in find_packages() if package.startswith(USERNAME)],
package_data={ '{}_{}'.format(USERNAME, 'gym_super_mario'): ['lua/*.lua', 'roms/*.nes' ] },
zip_safe=False,
install_requires=[ 'gym>=0.2.3' ],
install_requires=[ 'gym>=0.8.0' ],
)

0 comments on commit 4ad151f

Please sign in to comment.