Exemple #1
0
 private void Move(int player, GameField field, ICommander commander)
 {
     foreach (Point point in field.Iterator())
     {
         Direction dir = (Direction)random.Next(1, 7);
         int robot = random.Next(field[point].ActiveRobot) + 1;
         if (field.IsMove(point, dir, robot))
         {
             commander.Move(point.X, point.Y, dir, robot);
         }
     }
 }