0.14.0
PettingZoo Support!
AEC ENVIRONMENTS HAVE BEEN DEPRECATED
from PyFlyt.pz_envs import MAQuadXHoverEnv
env = MAQuadXHoverEnv(render_mode="human")
env = wrappers.OrderEnforcingWrapper(env)
env.reset(seed=42)
for agent in env.agent_iter():
observation, reward, termination, truncation, info = env.last()
if termination or truncation:
action = None
else:
action = env.action_space(agent).sample()
env.step(action)