Skip to content

Commit

Permalink
file for speed testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed Jan 21, 2019
1 parent d0d648c commit 35b7dbb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions speedtest.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 35b7dbb

Please sign in to comment.