Beispiel #1
0
 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);
     };
 }
Beispiel #2
0
 static void HandleSensorData(RMSensorData sensorData)
 {
     if (pos == 0)
         pos = sensorData.SelfLocation.X > 10 ? 1 : 2;
     // pos 2 -- left. pos 1 -- right.
 }