{
 "meta": {
  "cloudId": "pxt/microbit",
  "editor": "blocksprj",
  "name": "6\u00ba S1 \u00b7 Reto 4: juego de reflejos"
 },
 "source": "{\"pxt.json\": \"{\\n    \\\"name\\\": \\\"6\u00ba S1 \u00b7 Reto 4: juego de reflejos\\\",\\n    \\\"description\\\": \\\"Gu\u00eda C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S1\\\",\\n    \\\"dependencies\\\": {\\n        \\\"core\\\": \\\"*\\\",\\n        \\\"radio\\\": \\\"*\\\",\\n        \\\"microphone\\\": \\\"*\\\"\\n    },\\n    \\\"files\\\": [\\n        \\\"main.blocks\\\",\\n        \\\"main.ts\\\",\\n        \\\"README.md\\\"\\n    ],\\n    \\\"preferredEditor\\\": \\\"blocksprj\\\"\\n}\", \"main.blocks\": \"<xml xmlns=\\\"https://developers.google.com/blockly/xml\\\"><variables><variable id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</variable></variables><comment x=\\\"20\\\" y=\\\"321\\\" w=\\\"370\\\" h=\\\"120\\\">\\nPara otra ronda, se reinicia la placa\\n</comment><block type=\\\"pxt-on-start\\\" x=\\\"20\\\" y=\\\"20\\\"><statement name=\\\"HANDLER\\\"><block type=\\\"device_pause\\\"><value name=\\\"pause\\\"><shadow type=\\\"timePicker\\\"><field name=\\\"ms\\\">500</field></shadow><block type=\\\"device_random\\\"><value name=\\\"min\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">1000</field></shadow></value><value name=\\\"limit\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">5000</field></shadow></value></block></value><next><block type=\\\"basic_show_icon\\\"><field name=\\\"i\\\">IconNames.Heart</field><next><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></block></value></block></next></block></next></block></statement></block><block type=\\\"device_button_event\\\" x=\\\"526\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Button.A</field><statement name=\\\"HANDLER\\\"><block type=\\\"controls_if\\\"><value name=\\\"IF0\\\"><shadow type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></shadow><block type=\\\"variables_get\\\"><field name=\\\"VAR\\\" id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</field></block></value><statement name=\\\"DO0\\\"><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">FALSE</field></block></value><next><block type=\\\"device_print_message\\\"><value name=\\\"text\\\"><shadow type=\\\"text\\\"><field name=\\\"TEXT\\\">A</field></shadow></value></block></next></block></statement></block></statement></block><block type=\\\"device_button_event\\\" x=\\\"899\\\" y=\\\"20\\\"><field name=\\\"NAME\\\">Button.B</field><statement name=\\\"HANDLER\\\"><block type=\\\"controls_if\\\"><value name=\\\"IF0\\\"><shadow type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">TRUE</field></shadow><block type=\\\"variables_get\\\"><field name=\\\"VAR\\\" id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</field></block></value><statement name=\\\"DO0\\\"><block type=\\\"variables_set\\\"><field name=\\\"VAR\\\" id=\\\",5Hx@WsL~NGEr.hWH0F4\\\">listo</field><value name=\\\"VALUE\\\"><shadow type=\\\"math_number\\\"><field name=\\\"NUM\\\">0</field></shadow><block type=\\\"logic_boolean\\\"><field name=\\\"BOOL\\\">FALSE</field></block></value><next><block type=\\\"device_print_message\\\"><value name=\\\"text\\\"><shadow type=\\\"text\\\"><field name=\\\"TEXT\\\">B</field></shadow></value></block></next></block></statement></block></statement></block></xml>\", \"main.ts\": \"// Para otra ronda, se reinicia la placa\\nlet listo = false\\ninput.onButtonPressed(Button.A, function () {\\n    if (listo) {\\n        listo = false\\n        basic.showString(\\\"A\\\")\\n    }\\n})\\ninput.onButtonPressed(Button.B, function () {\\n    if (listo) {\\n        listo = false\\n        basic.showString(\\\"B\\\")\\n    }\\n})\\nbasic.pause(randint(1000, 5000))\\nbasic.showIcon(IconNames.Heart)\\nlisto = true\\n\", \"README.md\": \"# 6\u00ba S1 \u00b7 Reto 4: juego de reflejos\\n\\nGu\u00eda did\u00e1ctica C\u00f3digo Escuela 4.0 \u00b7 6\u00ba S1. Programa de referencia para el docente.\\n\"}"
}