RMTestEntry TestTemplate(Action<RMSensorData, IAsserter> assert, params RMCommand[] commands) { return (client, world, asserter) => { var data = new RMSensorData(); foreach (var c in commands) data = client.Act(c); assert(data, asserter); }; }
static void HandleSensorData(RMSensorData sensorData) { if (pos == 0) pos = sensorData.SelfLocation.X > 10 ? 1 : 2; // pos 2 -- left. pos 1 -- right. }