“找不到ID”的错误

时间:2018-08-04 11:46:02

标签: python-2.7

我不断收到错误消息,说游戏没有ID,这是错误消息: Traceback (most recent call last): File "python", line 4, in <module> Error: Attempted to look up malformed environment ID: flashgames.CoasterRacer-V0. (Currently all IDs must be of the form ^(?:[\w:-]+\/)?([\w:.-]+)-v(\d+)$.)

代码如下:

import gym
import universe

env = gym.make('flashgames.CoasterRacer-V0')
observation_n = env.reset()

while True:
  observation_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]
  observation_n, reward_n, done_n, info = env.step(action_n)
 env.render()

我在repl.it上有代码,这里是链接: https://repl.it/@32_bits_in_a_by/game-emulator

0 个答案:

没有答案