Skip to content

Commit

Permalink
create script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed May 8, 2019
1 parent c5c1f9a commit 9471aa7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from nes_py import NESEnv
import tqdm
env = NESEnv('./nes_py/tests/games/super-mario-bros-1.nes')

done = True

try:
for _ in tqdm.tqdm(range(5000)):
if done:
state = env.reset()
done = False
else:
state, reward, done, info = env.step(env.action_space.sample())
except KeyboardInterrupt:
pass

0 comments on commit 9471aa7

Please sign in to comment.