{
  "name": "incendio_forestal",
  "savedAt": "2026-07-23T21:07:50.484742",
  "blocks": [
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "n",
        "11"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "probabilidadContagio",
        "0.65"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "centro",
        "int(n / 2)"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "vivo",
        "(34, 139, 34)"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "quemando1",
        "(255, 140, 0)"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "quemando2",
        "(139, 0, 0)"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = {1}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "quemado",
        "(120, 120, 120)"
      ],
      "children": []
    },
    {
      "def": {
        "template": "{0} = Patches({1}, {2})",
        "category": "tortuga",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "mundo",
        "n",
        "n"
      ],
      "children": []
    },
    {
      "def": {
        "template": "for {0} in range({1}):",
        "category": "control",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": true,
        "isReporter": false
      },
      "values": [
        "i",
        "n"
      ],
      "children": [
        {
          "def": {
            "template": "for {0} in range({1}):",
            "category": "control",
            "slots": [
              {
                "options": []
              },
              {
                "options": []
              }
            ],
            "isContainer": true,
            "isReporter": false
          },
          "values": [
            "j",
            "n"
          ],
          "children": [
            {
              "def": {
                "template": "{0}[{1}][{2}] = {3}",
                "category": "variables",
                "slots": [
                  {
                    "options": []
                  },
                  {
                    "options": []
                  },
                  {
                    "options": []
                  },
                  {
                    "options": []
                  }
                ],
                "isContainer": false,
                "isReporter": false
              },
              "values": [
                "mundo",
                "i",
                "j",
                "vivo"
              ],
              "children": []
            }
          ]
        }
      ]
    },
    {
      "def": {
        "template": "{0}[{1}][{2}] = {3}",
        "category": "variables",
        "slots": [
          {
            "options": []
          },
          {
            "options": []
          },
          {
            "options": []
          },
          {
            "options": []
          }
        ],
        "isContainer": false,
        "isReporter": false
      },
      "values": [
        "mundo",
        "centro",
        "centro",
        "quemando1"
      ],
      "children": []
    },
    {
      "def": {
        "template": "while {0}:",
        "category": "control",
        "slots": [
          {
            "options": []
          }
        ],
        "isContainer": true,
        "isReporter": false
      },
      "values": [
        "True"
      ],
      "children": [
        {
          "def": {
            "template": "for {0} in range({1}):",
            "category": "control",
            "slots": [
              {
                "options": []
              },
              {
                "options": []
              }
            ],
            "isContainer": true,
            "isReporter": false
          },
          "values": [
            "i",
            "n"
          ],
          "children": [
            {
              "def": {
                "template": "for {0} in range({1}):",
                "category": "control",
                "slots": [
                  {
                    "options": []
                  },
                  {
                    "options": []
                  }
                ],
                "isContainer": true,
                "isReporter": false
              },
              "values": [
                "j",
                "n"
              ],
              "children": [
                {
                  "def": {
                    "template": "{0} = {1}",
                    "category": "variables",
                    "slots": [
                      {
                        "options": []
                      },
                      {
                        "options": []
                      }
                    ],
                    "isContainer": false,
                    "isReporter": false
                  },
                  "values": [
                    "actual",
                    "mundo[i][j]"
                  ],
                  "children": []
                },
                {
                  "def": {
                    "template": "{0} = {1}",
                    "category": "variables",
                    "slots": [
                      {
                        "options": []
                      },
                      {
                        "options": []
                      }
                    ],
                    "isContainer": false,
                    "isReporter": false
                  },
                  "values": [
                    "siguiente",
                    "0"
                  ],
                  "children": []
                },
                {
                  "def": {
                    "template": "if {0}:",
                    "category": "control",
                    "slots": [
                      {
                        "options": []
                      }
                    ],
                    "isContainer": true,
                    "isReporter": false
                  },
                  "values": [
                    "actual == quemando1"
                  ],
                  "children": [
                    {
                      "def": {
                        "template": "{0} = {1}",
                        "category": "variables",
                        "slots": [
                          {
                            "options": []
                          },
                          {
                            "options": []
                          }
                        ],
                        "isContainer": false,
                        "isReporter": false
                      },
                      "values": [
                        "siguiente",
                        "1"
                      ],
                      "children": []
                    }
                  ]
                },
                {
                  "def": {
                    "template": "else:",
                    "category": "control",
                    "slots": [],
                    "isContainer": true,
                    "isReporter": false
                  },
                  "values": [],
                  "children": [
                    {
                      "def": {
                        "template": "if {0}:",
                        "category": "control",
                        "slots": [
                          {
                            "options": []
                          }
                        ],
                        "isContainer": true,
                        "isReporter": false
                      },
                      "values": [
                        "actual == quemando2"
                      ],
                      "children": [
                        {
                          "def": {
                            "template": "{0} = {1}",
                            "category": "variables",
                            "slots": [
                              {
                                "options": []
                              },
                              {
                                "options": []
                              }
                            ],
                            "isContainer": false,
                            "isReporter": false
                          },
                          "values": [
                            "siguiente",
                            "2"
                          ],
                          "children": []
                        }
                      ]
                    },
                    {
                      "def": {
                        "template": "else:",
                        "category": "control",
                        "slots": [],
                        "isContainer": true,
                        "isReporter": false
                      },
                      "values": [],
                      "children": [
                        {
                          "def": {
                            "template": "if {0}:",
                            "category": "control",
                            "slots": [
                              {
                                "options": []
                              }
                            ],
                            "isContainer": true,
                            "isReporter": false
                          },
                          "values": [
                            "actual == vivo"
                          ],
                          "children": [
                            {
                              "def": {
                                "template": "{0} = {1}",
                                "category": "variables",
                                "slots": [
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  }
                                ],
                                "isContainer": false,
                                "isReporter": false
                              },
                              "values": [
                                "vecinos",
                                "mundo.neighbors(i, j)"
                              ],
                              "children": []
                            },
                            {
                              "def": {
                                "template": "{0} = {1}",
                                "category": "variables",
                                "slots": [
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  }
                                ],
                                "isContainer": false,
                                "isReporter": false
                              },
                              "values": [
                                "contagiado",
                                "False"
                              ],
                              "children": []
                            },
                            {
                              "def": {
                                "template": "for {0} in {1}:",
                                "category": "control",
                                "slots": [
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  }
                                ],
                                "isContainer": true,
                                "isReporter": false
                              },
                              "values": [
                                "v",
                                "vecinos"
                              ],
                              "children": [
                                {
                                  "def": {
                                    "template": "if {0}:",
                                    "category": "control",
                                    "slots": [
                                      {
                                        "options": []
                                      }
                                    ],
                                    "isContainer": true,
                                    "isReporter": false
                                  },
                                  "values": [
                                    "v == quemando1 or v == quemando2"
                                  ],
                                  "children": [
                                    {
                                      "def": {
                                        "template": "if {0}:",
                                        "category": "control",
                                        "slots": [
                                          {
                                            "options": []
                                          }
                                        ],
                                        "isContainer": true,
                                        "isReporter": false
                                      },
                                      "values": [
                                        "random() < probabilidadContagio"
                                      ],
                                      "children": [
                                        {
                                          "def": {
                                            "template": "{0} = {1}",
                                            "category": "variables",
                                            "slots": [
                                              {
                                                "options": []
                                              },
                                              {
                                                "options": []
                                              }
                                            ],
                                            "isContainer": false,
                                            "isReporter": false
                                          },
                                          "values": [
                                            "contagiado",
                                            "True"
                                          ],
                                          "children": []
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "def": {
                                "template": "if {0}:",
                                "category": "control",
                                "slots": [
                                  {
                                    "options": []
                                  }
                                ],
                                "isContainer": true,
                                "isReporter": false
                              },
                              "values": [
                                "contagiado"
                              ],
                              "children": [
                                {
                                  "def": {
                                    "template": "{0} = {1}",
                                    "category": "variables",
                                    "slots": [
                                      {
                                        "options": []
                                      },
                                      {
                                        "options": []
                                      }
                                    ],
                                    "isContainer": false,
                                    "isReporter": false
                                  },
                                  "values": [
                                    "siguiente",
                                    "3"
                                  ],
                                  "children": []
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "def": {
                    "template": "{0}.setvalue({1}, {2}, {3})",
                    "category": "tortuga",
                    "slots": [
                      {
                        "options": []
                      },
                      {
                        "options": []
                      },
                      {
                        "options": []
                      },
                      {
                        "options": []
                      }
                    ],
                    "isContainer": false,
                    "isReporter": false
                  },
                  "values": [
                    "mundo",
                    "i",
                    "j",
                    "siguiente"
                  ],
                  "children": []
                }
              ]
            }
          ]
        },
        {
          "def": {
            "template": "for {0} in range({1}):",
            "category": "control",
            "slots": [
              {
                "options": []
              },
              {
                "options": []
              }
            ],
            "isContainer": true,
            "isReporter": false
          },
          "values": [
            "i",
            "n"
          ],
          "children": [
            {
              "def": {
                "template": "for {0} in range({1}):",
                "category": "control",
                "slots": [
                  {
                    "options": []
                  },
                  {
                    "options": []
                  }
                ],
                "isContainer": true,
                "isReporter": false
              },
              "values": [
                "j",
                "n"
              ],
              "children": [
                {
                  "def": {
                    "template": "{0} = {1}",
                    "category": "variables",
                    "slots": [
                      {
                        "options": []
                      },
                      {
                        "options": []
                      }
                    ],
                    "isContainer": false,
                    "isReporter": false
                  },
                  "values": [
                    "codigo",
                    "mundo.value(i, j)"
                  ],
                  "children": []
                },
                {
                  "def": {
                    "template": "if {0}:",
                    "category": "control",
                    "slots": [
                      {
                        "options": []
                      }
                    ],
                    "isContainer": true,
                    "isReporter": false
                  },
                  "values": [
                    "codigo == 1"
                  ],
                  "children": [
                    {
                      "def": {
                        "template": "{0}[{1}][{2}] = {3}",
                        "category": "variables",
                        "slots": [
                          {
                            "options": []
                          },
                          {
                            "options": []
                          },
                          {
                            "options": []
                          },
                          {
                            "options": []
                          }
                        ],
                        "isContainer": false,
                        "isReporter": false
                      },
                      "values": [
                        "mundo",
                        "i",
                        "j",
                        "quemando2"
                      ],
                      "children": []
                    }
                  ]
                },
                {
                  "def": {
                    "template": "else:",
                    "category": "control",
                    "slots": [],
                    "isContainer": true,
                    "isReporter": false
                  },
                  "values": [],
                  "children": [
                    {
                      "def": {
                        "template": "if {0}:",
                        "category": "control",
                        "slots": [
                          {
                            "options": []
                          }
                        ],
                        "isContainer": true,
                        "isReporter": false
                      },
                      "values": [
                        "codigo == 2"
                      ],
                      "children": [
                        {
                          "def": {
                            "template": "{0}[{1}][{2}] = {3}",
                            "category": "variables",
                            "slots": [
                              {
                                "options": []
                              },
                              {
                                "options": []
                              },
                              {
                                "options": []
                              },
                              {
                                "options": []
                              }
                            ],
                            "isContainer": false,
                            "isReporter": false
                          },
                          "values": [
                            "mundo",
                            "i",
                            "j",
                            "quemado"
                          ],
                          "children": []
                        }
                      ]
                    },
                    {
                      "def": {
                        "template": "else:",
                        "category": "control",
                        "slots": [],
                        "isContainer": true,
                        "isReporter": false
                      },
                      "values": [],
                      "children": [
                        {
                          "def": {
                            "template": "if {0}:",
                            "category": "control",
                            "slots": [
                              {
                                "options": []
                              }
                            ],
                            "isContainer": true,
                            "isReporter": false
                          },
                          "values": [
                            "codigo == 3"
                          ],
                          "children": [
                            {
                              "def": {
                                "template": "{0}[{1}][{2}] = {3}",
                                "category": "variables",
                                "slots": [
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  },
                                  {
                                    "options": []
                                  }
                                ],
                                "isContainer": false,
                                "isReporter": false
                              },
                              "values": [
                                "mundo",
                                "i",
                                "j",
                                "quemando1"
                              ],
                              "children": []
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
