step by json action e.g., 0, [1.0, 2.0, ...], etc
simple integration test
{ auto env = Environment("127.0.0.1:5000", "CartPole-v0"); assert(Discrete.from(env.actionInfo) == 2); auto o = Box.from(env.observationInfo); assert(o.shape == [4]); assert(o.low.length == 4); env.record("/tmp/d-gym"); scope(exit) env.stop(); auto state = env.reset; double reward = 0; while (!state.done) { state = env.step(Discrete(0)); reward += state.reward; } assert(reward > 0); } // { // auto env = Environment("127.0.0.1:5000", "MsPacman-v0"); // assert(Discrete.from(env.actionInfo) == 9); // auto o = Box.from(env.observationInfo); // assert(o.shape == [210, 160, 3]); // assert(o.high.length == 210 * 160 * 3); // auto a = Discrete.from(env.actionInfo); // assert(a == 9); // }