luiscobo

Taller_04_03

Oct 1st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.92 KB | None | 0 0
  1. {
  2.   "robots": [
  3.     {
  4.       "x": 1,
  5.       "y": 1,
  6.       "objects": {
  7.         "carrot": 36
  8.       },
  9.       "_orientation": 0,
  10.       "_is_leaky": true,
  11.       "_prev_x": 1,
  12.       "_prev_y": 1,
  13.       "_prev_orientation": 0,
  14.       "_trace_history": [],
  15.       "_trace_style": "default",
  16.       "_trace_color": "seagreen",
  17.       "__id": 11,
  18.       "model": "classic",
  19.       "possible_initial_positions": [
  20.         [
  21.           1,
  22.           1
  23.         ]
  24.       ]
  25.     }
  26.   ],
  27.   "goal": {
  28.     "objects": {
  29.       "5,3": {
  30.         "carrot": 1
  31.       },
  32.       "5,4": {
  33.         "carrot": 1
  34.       },
  35.       "5,5": {
  36.         "carrot": 1
  37.       },
  38.       "5,6": {
  39.         "carrot": 1
  40.       },
  41.       "5,7": {
  42.         "carrot": 1
  43.       },
  44.       "5,8": {
  45.         "carrot": 1
  46.       },
  47.       "4,8": {
  48.         "carrot": 1
  49.       },
  50.       "4,7": {
  51.         "carrot": 1
  52.       },
  53.       "4,6": {
  54.         "carrot": 1
  55.       },
  56.       "4,5": {
  57.         "carrot": 1
  58.       },
  59.       "4,4": {
  60.         "carrot": 1
  61.       },
  62.       "4,3": {
  63.         "carrot": 1
  64.       },
  65.       "6,8": {
  66.         "carrot": 1
  67.       },
  68.       "6,7": {
  69.         "carrot": 1
  70.       },
  71.       "6,6": {
  72.         "carrot": 1
  73.       },
  74.       "6,5": {
  75.         "carrot": 1
  76.       },
  77.       "6,4": {
  78.         "carrot": 1
  79.       },
  80.       "6,3": {
  81.         "carrot": 1
  82.       },
  83.       "7,8": {
  84.         "carrot": 1
  85.       },
  86.       "7,7": {
  87.         "carrot": 1
  88.       },
  89.       "7,6": {
  90.         "carrot": 1
  91.       },
  92.       "7,5": {
  93.         "carrot": 1
  94.       },
  95.       "7,4": {
  96.         "carrot": 1
  97.       },
  98.       "8,7": {
  99.         "carrot": 1
  100.       },
  101.       "8,6": {
  102.         "carrot": 1
  103.       },
  104.       "8,5": {
  105.         "carrot": 1
  106.       },
  107.       "3,8": {
  108.         "carrot": 1
  109.       },
  110.       "3,7": {
  111.         "carrot": 1
  112.       },
  113.       "3,6": {
  114.         "carrot": 1
  115.       },
  116.       "3,5": {
  117.         "carrot": 1
  118.       },
  119.       "3,4": {
  120.         "carrot": 1
  121.       },
  122.       "8,8": {
  123.         "carrot": 1
  124.       },
  125.       "8,4": {
  126.         "carrot": 1
  127.       },
  128.       "7,3": {
  129.         "carrot": 1
  130.       },
  131.       "3,3": {
  132.         "carrot": 1
  133.       },
  134.       "8,3": {
  135.         "carrot": 1
  136.       }
  137.     }
  138.   },
  139.   "objects": {
  140.     "5,3": {
  141.       "carrot": "0-3"
  142.     },
  143.     "5,4": {
  144.       "carrot": "0-3"
  145.     },
  146.     "5,5": {
  147.       "carrot": "0-3"
  148.     },
  149.     "5,6": {
  150.       "carrot": "0-3"
  151.     },
  152.     "5,7": {
  153.       "carrot": "0-3"
  154.     },
  155.     "5,8": {
  156.       "carrot": "0-3"
  157.     },
  158.     "4,8": {
  159.       "carrot": "0-3"
  160.     },
  161.     "4,7": {
  162.       "carrot": "0-3"
  163.     },
  164.     "4,6": {
  165.       "carrot": "0-3"
  166.     },
  167.     "4,5": {
  168.       "carrot": "0-3"
  169.     },
  170.     "4,4": {
  171.       "carrot": "0-3"
  172.     },
  173.     "4,3": {
  174.       "carrot": "0-3"
  175.     },
  176.     "6,8": {
  177.       "carrot": "0-3"
  178.     },
  179.     "6,7": {
  180.       "carrot": "0-3"
  181.     },
  182.     "6,6": {
  183.       "carrot": "0-3"
  184.     },
  185.     "6,5": {
  186.       "carrot": "0-3"
  187.     },
  188.     "6,4": {
  189.       "carrot": "0-3"
  190.     },
  191.     "6,3": {
  192.       "carrot": "0-3"
  193.     },
  194.     "7,8": {
  195.       "carrot": "0-3"
  196.     },
  197.     "7,7": {
  198.       "carrot": "0-3"
  199.     },
  200.     "7,6": {
  201.       "carrot": "0-3"
  202.     },
  203.     "7,5": {
  204.       "carrot": "0-3"
  205.     },
  206.     "7,4": {
  207.       "carrot": "0-3"
  208.     },
  209.     "8,7": {
  210.       "carrot": "0-3"
  211.     },
  212.     "8,6": {
  213.       "carrot": "0-3"
  214.     },
  215.     "8,5": {
  216.       "carrot": "0-3"
  217.     },
  218.     "3,8": {
  219.       "carrot": "0-3"
  220.     },
  221.     "3,7": {
  222.       "carrot": "0-3"
  223.     },
  224.     "3,6": {
  225.       "carrot": "0-3"
  226.     },
  227.     "3,5": {
  228.       "carrot": "0-3"
  229.     },
  230.     "3,4": {
  231.       "carrot": "0-3"
  232.     },
  233.     "8,8": {
  234.       "carrot": "0-3"
  235.     },
  236.     "8,4": {
  237.       "carrot": "0-3"
  238.     },
  239.     "7,3": {
  240.       "carrot": "0-3"
  241.     },
  242.     "3,3": {
  243.       "carrot": "0-3"
  244.     },
  245.     "8,3": {
  246.       "carrot": "0-3"
  247.     }
  248.   },
  249.   "small_tiles": false,
  250.   "rows": 10,
  251.   "cols": 10,
  252.   "walls": {},
  253.   "tiles": {
  254.     "1,10": [
  255.       "grass"
  256.     ],
  257.     "2,10": [
  258.       "grass"
  259.     ],
  260.     "3,10": [
  261.       "grass"
  262.     ],
  263.     "4,10": [
  264.       "grass"
  265.     ],
  266.     "5,10": [
  267.       "grass"
  268.     ],
  269.     "6,10": [
  270.       "grass"
  271.     ],
  272.     "7,10": [
  273.       "grass"
  274.     ],
  275.     "8,10": [
  276.       "grass"
  277.     ],
  278.     "9,10": [
  279.       "grass"
  280.     ],
  281.     "10,10": [
  282.       "grass"
  283.     ],
  284.     "10,9": [
  285.       "grass"
  286.     ],
  287.     "10,8": [
  288.       "grass"
  289.     ],
  290.     "10,7": [
  291.       "grass"
  292.     ],
  293.     "10,6": [
  294.       "grass"
  295.     ],
  296.     "10,5": [
  297.       "grass"
  298.     ],
  299.     "10,4": [
  300.       "grass"
  301.     ],
  302.     "10,3": [
  303.       "grass"
  304.     ],
  305.     "10,2": [
  306.       "grass"
  307.     ],
  308.     "10,1": [
  309.       "grass"
  310.     ],
  311.     "9,1": [
  312.       "grass"
  313.     ],
  314.     "9,2": [
  315.       "grass"
  316.     ],
  317.     "9,3": [
  318.       "grass"
  319.     ],
  320.     "9,4": [
  321.       "grass"
  322.     ],
  323.     "9,5": [
  324.       "grass"
  325.     ],
  326.     "9,6": [
  327.       "grass"
  328.     ],
  329.     "9,7": [
  330.       "grass"
  331.     ],
  332.     "9,8": [
  333.       "grass"
  334.     ],
  335.     "9,9": [
  336.       "grass"
  337.     ],
  338.     "8,9": [
  339.       "grass"
  340.     ],
  341.     "7,9": [
  342.       "grass"
  343.     ],
  344.     "6,9": [
  345.       "grass"
  346.     ],
  347.     "5,9": [
  348.       "grass"
  349.     ],
  350.     "4,9": [
  351.       "grass"
  352.     ],
  353.     "3,9": [
  354.       "grass"
  355.     ],
  356.     "2,9": [
  357.       "grass"
  358.     ],
  359.     "1,9": [
  360.       "grass"
  361.     ],
  362.     "1,8": [
  363.       "grass"
  364.     ],
  365.     "2,8": [
  366.       "grass"
  367.     ],
  368.     "2,7": [
  369.       "grass"
  370.     ],
  371.     "1,7": [
  372.       "grass"
  373.     ],
  374.     "1,6": [
  375.       "grass"
  376.     ],
  377.     "2,6": [
  378.       "grass"
  379.     ],
  380.     "2,5": [
  381.       "grass"
  382.     ],
  383.     "1,5": [
  384.       "grass"
  385.     ],
  386.     "1,4": [
  387.       "grass"
  388.     ],
  389.     "2,4": [
  390.       "grass"
  391.     ],
  392.     "2,3": [
  393.       "grass"
  394.     ],
  395.     "1,3": [
  396.       "grass"
  397.     ],
  398.     "1,2": [
  399.       "grass"
  400.     ],
  401.     "2,2": [
  402.       "grass"
  403.     ],
  404.     "2,1": [
  405.       "grass"
  406.     ],
  407.     "1,1": [
  408.       "grass"
  409.     ],
  410.     "3,1": [
  411.       "grass"
  412.     ],
  413.     "3,2": [
  414.       "grass"
  415.     ],
  416.     "4,2": [
  417.       "grass"
  418.     ],
  419.     "5,2": [
  420.       "grass"
  421.     ],
  422.     "6,2": [
  423.       "grass"
  424.     ],
  425.     "7,2": [
  426.       "grass"
  427.     ],
  428.     "8,2": [
  429.       "grass"
  430.     ],
  431.     "8,1": [
  432.       "grass"
  433.     ],
  434.     "7,1": [
  435.       "grass"
  436.     ],
  437.     "6,1": [
  438.       "grass"
  439.     ],
  440.     "5,1": [
  441.       "grass"
  442.     ],
  443.     "4,1": [
  444.       "grass"
  445.     ],
  446.     "3,8": [
  447.       "pale_grass"
  448.     ],
  449.     "4,8": [
  450.       "pale_grass"
  451.     ],
  452.     "5,8": [
  453.       "pale_grass"
  454.     ],
  455.     "6,8": [
  456.       "pale_grass"
  457.     ],
  458.     "7,8": [
  459.       "pale_grass"
  460.     ],
  461.     "8,8": [
  462.       "pale_grass"
  463.     ],
  464.     "8,7": [
  465.       "pale_grass"
  466.     ],
  467.     "8,6": [
  468.       "pale_grass"
  469.     ],
  470.     "8,5": [
  471.       "pale_grass"
  472.     ],
  473.     "8,4": [
  474.       "pale_grass"
  475.     ],
  476.     "8,3": [
  477.       "pale_grass"
  478.     ],
  479.     "7,3": [
  480.       "pale_grass"
  481.     ],
  482.     "7,4": [
  483.       "pale_grass"
  484.     ],
  485.     "7,5": [
  486.       "pale_grass"
  487.     ],
  488.     "7,6": [
  489.       "pale_grass"
  490.     ],
  491.     "7,7": [
  492.       "pale_grass"
  493.     ],
  494.     "6,7": [
  495.       "pale_grass"
  496.     ],
  497.     "5,7": [
  498.       "pale_grass"
  499.     ],
  500.     "4,7": [
  501.       "pale_grass"
  502.     ],
  503.     "3,7": [
  504.       "pale_grass"
  505.     ],
  506.     "3,6": [
  507.       "pale_grass"
  508.     ],
  509.     "4,6": [
  510.       "pale_grass"
  511.     ],
  512.     "5,6": [
  513.       "pale_grass"
  514.     ],
  515.     "6,6": [
  516.       "pale_grass"
  517.     ],
  518.     "6,5": [
  519.       "pale_grass"
  520.     ],
  521.     "5,5": [
  522.       "pale_grass"
  523.     ],
  524.     "4,5": [
  525.       "pale_grass"
  526.     ],
  527.     "3,5": [
  528.       "pale_grass"
  529.     ],
  530.     "3,4": [
  531.       "pale_grass"
  532.     ],
  533.     "4,4": [
  534.       "pale_grass"
  535.     ],
  536.     "5,4": [
  537.       "pale_grass"
  538.     ],
  539.     "6,4": [
  540.       "pale_grass"
  541.     ],
  542.     "6,3": [
  543.       "pale_grass"
  544.     ],
  545.     "5,3": [
  546.       "pale_grass"
  547.     ],
  548.     "4,3": [
  549.       "pale_grass"
  550.     ],
  551.     "3,3": [
  552.       "pale_grass"
  553.     ]
  554.   },
  555.   "description": [
  556.     "<h1>Es tiempo de sembrar</h1>",
  557.     "<p> Reeborg ha sembrado algunas semillas de zanahorias. En algunos lugares, sin embargo,",
  558.     "    ninguna zanahoria creció; en otros lugares, nacieron muchas zanahorias (hasta 3)!",
  559.     "    Su misión es escribir un programa que recoja las zanahorias de exceso que hay en cada",
  560.     "    sitio (dejando solamente una zanahoria en el sitio) o plantando una zanahoria en aquellos",
  561.     "    sitios donde no nació ninguna zanahoria. Al final se espera que todo el jardon tenga",
  562.     "    una zanahoria en cada uno de los lugares. Ya Reeborg lleva consigo suficientes zanahorias",
  563.     "    para replantar todo el jardín si es necesario.",
  564.     "<h3>Que necesita saber</h3>",
  565.     "<ul>",
  566.     "    <li>Las funciones <code>move()</code>, <code>turn_left()</code>, <code>put()</code> y ",
  567.     "    <code>take()</code>.</li>",
  568.     "    <li>La pregunta <code>object_here()</code>.</li>",
  569.     "    <li>Como usar una instrucción <code>repeat</code> y la combinación <code>if/elif/else</code>.</li>",
  570.     "</ul>",
  571.     "<p> Igual que en los ejercicios anteriores, sería conveniente definir una función ",
  572.     "    <code>arreglar_una_fila()</code> y usar esta función unas 6 veces.</p>",
  573.     "DIFFICULTY4"
  574.   ]
  575. }
Advertisement
Add Comment
Please, Sign In to add comment