Skip to content

Commit

Permalink
11/3/2021/
Browse files Browse the repository at this point in the history
  • Loading branch information
NullDefault committed Nov 3, 2021
1 parent 0c912ef commit 6134895
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
15 changes: 15 additions & 0 deletions gym_stag_hunt.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Metadata-Version: 2.1
Name: gym-stag-hunt
Version: 0.0.1
Summary: Markov stag hunt environment for openai gym
Home-page: https://github.com/NullDefault/gym-stag-hunt
Author: David Nesterov-Rappoport
Author-email: davisha999@gmail.com
License: UNKNOWN
Description: This package is based on openai-gym and created for running experiments on Markov stag hunt games.
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
29 changes: 29 additions & 0 deletions gym_stag_hunt.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
README.md
setup.py
gym_stag_hunt/__init__.py
gym_stag_hunt/demos.py
gym_stag_hunt/env_checker.py
gym_stag_hunt.egg-info/PKG-INFO
gym_stag_hunt.egg-info/SOURCES.txt
gym_stag_hunt.egg-info/dependency_links.txt
gym_stag_hunt.egg-info/requires.txt
gym_stag_hunt.egg-info/top_level.txt
gym_stag_hunt/envs/__init__.py
gym_stag_hunt/envs/abstract_markov_staghunt.py
gym_stag_hunt/envs/escalation.py
gym_stag_hunt/envs/harvest.py
gym_stag_hunt/envs/hunt.py
gym_stag_hunt/envs/simple.py
gym_stag_hunt/src/__init__.py
gym_stag_hunt/src/entities.py
gym_stag_hunt/src/utils.py
gym_stag_hunt/src/games/__init__.py
gym_stag_hunt/src/games/abstract_grid_game.py
gym_stag_hunt/src/games/escalation_game.py
gym_stag_hunt/src/games/harvest_game.py
gym_stag_hunt/src/games/staghunt_game.py
gym_stag_hunt/src/renderers/__init__.py
gym_stag_hunt/src/renderers/abstract_renderer.py
gym_stag_hunt/src/renderers/escalation_renderer.py
gym_stag_hunt/src/renderers/harvest_renderer.py
gym_stag_hunt/src/renderers/hunt_renderer.py
1 change: 1 addition & 0 deletions gym_stag_hunt.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions gym_stag_hunt.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gym
pygame
1 change: 1 addition & 0 deletions gym_stag_hunt.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gym_stag_hunt
7 changes: 3 additions & 4 deletions gym_stag_hunt/demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,17 @@ def manual_input():
return i


ENV = 'HUNT'
ENV = 'ESCALATION'

if __name__ == "__main__":
env = ENVS[ENV](obs_type='coords', enable_multiagent=True)
env = ENVS[ENV](obs_type='image', enable_multiagent=True)
obs = env.reset()
for i in range(10000):
actions = [env.action_space.sample(), env.action_space.sample()]

obs, rewards, done, info = env.step(actions=actions)
print(obs)
# print_ep(obs, rewards, done, info)
sleep(.6)
sleep(.4)
if ENV == 'CLASSIC':
env.render(rewards=rewards)
else:
Expand Down

0 comments on commit 6134895

Please sign in to comment.