diff --git a/app/services/blocks-gallery.js b/app/services/blocks-gallery.js index f6409791..274e1c0f 100644 --- a/app/services/blocks-gallery.js +++ b/app/services/blocks-gallery.js @@ -784,6 +784,43 @@ export default Service.extend({ }`, }); + this.crearBloqueAccion('Colocar', 'putIntoTheTrash', { + icono: 'icono.tacho.png', + comportamiento: 'Soltar', + argumentos: `{ + idTransicion: "colocar", + etiqueta: "Tacho", + }`, + }); + + this.crearBloqueAccion('IrseEnYacare', 'goInAlligator', { + icono: 'icono.yacare.png', + comportamiento: 'Irse', + argumentos: `{ + irseCon: "yacare", + nombreAnimacion: "surfear" + }`, + }); + + this.crearBloqueAccion('TomarLata', 'takeCan', { + icono: 'icono.lata.png', + comportamiento: 'Sostener', + argumentos: `{ + etiqueta: "Lata", + nombreAnimacion: "recoger" + }`, + }); + + this.crearBloqueAccion('TomarPapel', 'takePaper', { + id: 'TomarPapel', + icono: 'icono.papel.png', + comportamiento: 'Sostener', + argumentos: `{ + etiqueta: "Papel", + nombreAnimacion: "recoger" + }`, + }); + this.crearBloqueAccion('AvanzarMono', 'moveRight', { icono: 'icono.derecha.png', comportamiento: 'MoverACasillaDerecha', diff --git a/app/utils/staticData/desafios.js b/app/utils/staticData/desafios.js index 965ab0eb..1d47a4ab 100644 --- a/app/utils/staticData/desafios.js +++ b/app/utils/staticData/desafios.js @@ -2840,6 +2840,12 @@ export const desafios = [ escena: 'InstalandoJuegosYvoty', bloques: ['PasarASiguienteComputadora', 'PrenderComputadora', 'ApagarComputadora', 'EscribirC', 'EscribirB', 'EscribirA', 'InstalarJuego', 'Repetir', 'Procedimiento'], }, + { + id: 'nuevo12', + nombre: 'LimpiandoElHumedal', + escena: 'LimpiandoElHumedal', + bloques: ['MoverACasillaDerecha', 'MoverACasillaIzquierda', 'MoverACasillaArriba', 'MoverACasillaAbajo', 'TomarLata', 'TomarPapel', 'Colocar', 'IrseEnYacare', 'Repetir', 'Procedimiento'], + }, { id: 'nuevo13', nombre: 'PateandoAVeces', diff --git a/public/iconos/icono.yacare.png b/public/iconos/icono.yacare.png new file mode 100644 index 00000000..c4de2515 Binary files /dev/null and b/public/iconos/icono.yacare.png differ diff --git a/tests/integration/desafios/LimpiandoElHumedal-test.js b/tests/integration/desafios/LimpiandoElHumedal-test.js new file mode 100644 index 00000000..da9c24e6 --- /dev/null +++ b/tests/integration/desafios/LimpiandoElHumedal-test.js @@ -0,0 +1,23 @@ +import { moduloActividad, actividadTest } from '../../helpers/actividadTest'; + +const nombre = 'LimpiandoElHumedal'; + +moduloActividad(nombre, () => { + + actividadTest(nombre, { + solucion: '33AgarrarPapel4334agarrarLata33', + }); + + actividadTest(nombre, { + descripcionAdicional: 'Da error al tirar en el tacho cuando no tengo nada', + solucion:'', + errorEsperado: 'No tengo nada en la mano' + }); + + actividadTest(nombre, { + descripcionAdicional: ' Da error al querer irse sin limpiar el humedal', + solucion: '', + errorEsperado: 'Para irse hace falta un transporte' + }); + +}); \ No newline at end of file diff --git a/translations/blocks/en-us.yaml b/translations/blocks/en-us.yaml index 4f38532a..287beb5b 100644 --- a/translations/blocks/en-us.yaml +++ b/translations/blocks/en-us.yaml @@ -41,6 +41,10 @@ pickIron: Pick iron pickCarbon: Pick carbon lightCampfire: Light the campfire putIntoTheShip: Put into the spaceship +goInAlligator: Go in alligator +takeCan: Take can +takePaper: Take paper +putIntoTheTrash: Put into the trash leavePresent: Leave a present nextLine: Go to the next line nextColumn: Go to the next column diff --git a/translations/blocks/es-ar.yaml b/translations/blocks/es-ar.yaml index bda1d4a8..403c0712 100644 --- a/translations/blocks/es-ar.yaml +++ b/translations/blocks/es-ar.yaml @@ -41,6 +41,10 @@ pickIron: Agarrar hierro pickCarbon: Agarrar carbón lightCampfire: Prender fogata putIntoTheShip: Poner en la nave +goInAlligator: Irse en yacaré +takeCan: Agarrar lata +takePaper: Agarrar papel +putIntoTheTrash: Poner en el tacho leavePresent: Dejar un regalo nextLine: Pasar a la siguiente fila nextColumn: Pasar a la siguiente columna diff --git a/translations/blocks/pt-br.yaml b/translations/blocks/pt-br.yaml index d68090e6..540ac78b 100644 --- a/translations/blocks/pt-br.yaml +++ b/translations/blocks/pt-br.yaml @@ -41,6 +41,10 @@ pickIron: Pegar ferro pickCarbon: Pegar carvão lightCampfire: Acender fogueira putIntoTheShip: Colocar no navio +goInAlligator: Vai em jacaré +takeCan: Pegar a lata +takePaper: Pegar um papel +putIntoTheTrash: colocar na lata de lixo leavePresent: Deixar presente nextLine: Ir para a próxima linha nextColumn: Ir para a linha anterior diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 1f378db9..bbff020d 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -699,6 +699,10 @@ model: description: | Yvoty needs to install a game in 3 different computers to have fun with his friends. The steps to install the game in each computer are: powering the computer on, writing the password ("ABC"), installing the game, and finally powering the computer off. Clue: make the most of the fact that you have to do the same work in each computer. clue: '' + 'nuevo12': + title: Cleaning the wetland + description: 'Capy needs to clean the wetland to go surfing. To achieve this, Capy needs to carry 3 cans and 3 papers to the trash, but Capy cannot throw more than one at a time. Then, Capy gets on the alligator and finally goes surfing!' + clue: '' 'nuevo16': title: Three telescopes description: | diff --git a/translations/es-ar.yaml b/translations/es-ar.yaml index b594b73e..24c16646 100644 --- a/translations/es-ar.yaml +++ b/translations/es-ar.yaml @@ -709,6 +709,10 @@ model: description: | Yvoty va a instalar un juego en tres computadoras para que ella y sus amigas tengan todo listo para divertirse esta noche. Los pasos para instalarlo son: encender la computadora, escribir la contraseña ("ABC"), instalar el juego y apagar la máquina. Ayudala a completar la instalación de las tres compus. clue: '¿Hay algo que se repita? Seguramente te diste cuenta que en cada computadora hay que hacer exactamente el mismo trabajo. ¿Cómo podría ayudarte tener en cuenta eso?' + 'nuevo12': + title: Limpiando el humedal + description: 'Capy necesita limpiar el humedal antes de ir a surfear. Para lograrlo, Capy necesita agarrar 3 latas y 3 papeles y llevarlos hasta el tacho, pero no puede tirar más de uno a la vez. Luego, se sube al yacaré y se va a surfear!' + clue: '' 'nuevo13': title: Chuy y la pelota indecisa description: | diff --git a/translations/pt-br.yaml b/translations/pt-br.yaml index f9b65069..d47cef9d 100644 --- a/translations/pt-br.yaml +++ b/translations/pt-br.yaml @@ -689,6 +689,10 @@ model: description: | Yvoty tiene que instalar un juego en 3 compus para divertirse con sus amigos. Los pasos para instalarlo en cada una son: encenderla, escribir la contraseña ("ABC"), instalar el juego y apagar la máquina. Pista: aprovechá que en cada compu hay que hacer el mismo trabajo. clue: '' + 'nuevo12': + title: Limpando o pantanal + description: 'Capy precisa limpar o pântano antes de surfar. Para conseguir isso, Capy precisa pegar 3 latas e 3 pedaços de papel e levá-los para o lixo, mas não pode jogar mais de um de cada vez. Aí ele sobe no jacaré e finalmente a surfar!' + clue: '' 'nuevo16': title: Tres telescopios description: |