From 8d92a0438f1789f369a9b69a5c2bf0f5014c27e3 Mon Sep 17 00:00:00 2001 From: Tomas Floxo Date: Tue, 3 Oct 2023 13:00:37 -0300 Subject: [PATCH] capy solo --- app/services/blocks-gallery.js | 11 ++++++ app/utils/staticData/desafios.js | 22 ++++++++++++ public/iconos/icono.guyra.png | Bin 0 -> 508 bytes .../segundoCiclo/Capy/CapyBuscaAGuyra.js | 34 ++++++++++++++++++ .../desafios/segundoCiclo/Capy/CapyYGuyra.js | 30 ++++++++++++++++ translations/blocks/en-us.yaml | 2 ++ translations/blocks/es-ar.yaml | 2 ++ translations/es-ar.yaml | 5 +++ 8 files changed, 106 insertions(+) create mode 100644 public/iconos/icono.guyra.png create mode 100644 tests/integration/desafios/segundoCiclo/Capy/CapyBuscaAGuyra.js create mode 100644 tests/integration/desafios/segundoCiclo/Capy/CapyYGuyra.js diff --git a/app/services/blocks-gallery.js b/app/services/blocks-gallery.js index d4bb52d26..2e27d4643 100644 --- a/app/services/blocks-gallery.js +++ b/app/services/blocks-gallery.js @@ -411,6 +411,12 @@ export default Service.extend({ argumentos: '{etiqueta: "Lata", nombreAnimacion: "recoger", "mensajeError": "Acá no hay una lata"}', }); + this.crearBloqueAccion('SubirPajarito', 'pickBird', { + icono: 'icono.guyra.png', + comportamiento: 'SubirPajarito', + argumentos: '{etiqueta: "Guyra", nombreAnimacion: "recoger", "mensajeError": "Guyra no está aca"}', + }); + this.crearBloqueAccion('RecogerPapel', 'pickPaper', { icono: 'icono.papel.png', comportamiento: 'RecojoPapel', @@ -1153,6 +1159,11 @@ export default Service.extend({ icono: 'icono.lata.png', funcionSensor: 'tocando("Lata")' }); + + this.crearBloqueSensor('TocandoGuyra', 'guyraHere', { + icono: 'icono.guyra.png', + funcionSensor: 'tocando("Guyra")' + }); this.crearBloqueSensor('TocandoTelescopio', 'telescopeHere', { icono: 'icono.telescopio.png', diff --git a/app/utils/staticData/desafios.js b/app/utils/staticData/desafios.js index 9339d32ad..f96b6b1bc 100644 --- a/app/utils/staticData/desafios.js +++ b/app/utils/staticData/desafios.js @@ -27,6 +27,16 @@ export const desafios = [ simpleRepetition: false } }, + { + id: "nuevo1", + nombre: 'CapyYGuyra', + escena: `new EscenaCapySolo("[A,-,-,G]")`, + bloques: ['MoverACasillaDerecha', 'SubirPajarito'], + expectations: { + decomposition: false, + simpleRepetition: false + } + }, { id: 46, nombre: 'NuevosComandos', @@ -207,6 +217,18 @@ export const desafios = [ conditionalRepetition: true, } }, + { + id: "nuevo22", + nombre: 'CapyBuscaAGuyra', + escena: `new EscenaCapySolo("\ + [*,*,*,*,*],\ + ", { coleccion: ["G", "A"] })`, + bloques: ['Repetir', 'Si', 'SiNo', 'Hasta', 'Procedimiento', + 'VolverAlBordeIzquierdo', 'MoverACasillaDerecha', 'TocandoGuyra','SubirPajarito'], + expectations: { + conditionalRepetition: true, + } + }, { id: 23, nombre: 'FutbolRobots', diff --git a/public/iconos/icono.guyra.png b/public/iconos/icono.guyra.png new file mode 100644 index 0000000000000000000000000000000000000000..88eaa6f87a9c7b64b729c8d48291aefcad1ce71f GIT binary patch literal 508 zcmV1P*=3UE+6L@(z=7TgZ+i;R0F2o8XtjI!w1LD<{B^X#(m>D+hy1?-9(|3k_ zN3YkDVt~Q-AHNv{`574e+zc3Q-hJ_5>)uNbN%6vYWqC0JC3#VpP$4i3CJ<#nYd2eh z0uR@GJ$^<89h+tb24*gh@CP6^WG1B9$AKx}z}|n;pTGFY!7ulVL6q}31D~K7NQ#5u z-JE{7BXVd2udaMf!N{y|NmeyVL2uSlOQ$*Ni}8$PCmGn z4;bkHsM!H(s{x1~>(9vWOp=X3NS29#Uz~}7l>^1T#>o*MKQKWx&IjW6K<0j!W>8Xn z{_y{YM%O { + + actividadTest(nombre, { + solucion: ` + + + + + + + + + + + + + + + + + + + + + + + + `} + ) +}); \ No newline at end of file diff --git a/tests/integration/desafios/segundoCiclo/Capy/CapyYGuyra.js b/tests/integration/desafios/segundoCiclo/Capy/CapyYGuyra.js new file mode 100644 index 000000000..d3a250599 --- /dev/null +++ b/tests/integration/desafios/segundoCiclo/Capy/CapyYGuyra.js @@ -0,0 +1,30 @@ +import { moduloActividad, actividadTest } from '../../../../helpers/actividadTest'; + +const nombre = "CapyYGuyra"; + +moduloActividad(nombre, () => { + + actividadTest(nombre, { + solucion: ` + + + + + + + + + + + + + + + + + + + + `} + ) +}); \ No newline at end of file diff --git a/translations/blocks/en-us.yaml b/translations/blocks/en-us.yaml index 563bde586..da0bcb6c7 100644 --- a/translations/blocks/en-us.yaml +++ b/translations/blocks/en-us.yaml @@ -125,6 +125,7 @@ chargeCellphone: Charge cell phone telescopeHere: Is there a telescope here? planetHere: Is there a planet here? canHere: Is there a can here? +guyraHere: Is Guyra here? paperHere: Is there a paper here ? butterflyHere: Is there a butterfly here? cellphoneHere: Is there a cell phone here? @@ -144,6 +145,7 @@ watchPlanet: Watch planet repairTelescope: Repair telescope alignTelescope: Align telescope pickCan: Pick can +pickBird: Pick bird pickPaper: Pick paper holdPaper: Hold paper fillBin: Fill bin diff --git a/translations/blocks/es-ar.yaml b/translations/blocks/es-ar.yaml index 079825e33..2f634f225 100644 --- a/translations/blocks/es-ar.yaml +++ b/translations/blocks/es-ar.yaml @@ -125,6 +125,7 @@ chargeCellphone: Cargar celular telescopeHere: ¿Hay un telescopio acá? planetHere: ¿Hay un planeta acá? canHere: ¿Hay una lata acá? +guyraHere: ¿Guyra está acá? paperHere: ¿Hay un papel acá? butterflyHere: ¿Hay una mariposa acá? cellphoneHere: ¿Hay un celular acá? @@ -144,6 +145,7 @@ watchPlanet: Observar planeta repairTelescope: Reparar telescopio alignTelescope: Alinear telescopio pickCan: Recoger lata +pickBird: Subir pajarito pickPaper: Recoger papel holdPaper: Sostener papel fillBin: Llenar tacho diff --git a/translations/es-ar.yaml b/translations/es-ar.yaml index c5874b0db..b5c04020e 100644 --- a/translations/es-ar.yaml +++ b/translations/es-ar.yaml @@ -740,6 +740,11 @@ model: description: | Chuy preparó diferentes recorridos, en diferentes terrenos, para practicar rebotar la pelota pulpito. El terreno puede ser más chico o más grande y la pelota puede que esté o no… ¡Ayudale a rebotar todas las pelotas pulpito! clue: 'Es fundamental saber, antes de moverse, dónde está la próxima casilla libre y si hay una pelota en la misma. ¿Qué herramientas te sirven para esas comprobaciones?' + 'nuevo22': + title: Capy busca a Guyra + description: | + Ayuda a Capy a encontrar a Guyra + clue: '' 'nuevo23': title: Fútbol al sur description: |