Skip to content

Commit

Permalink
capy solo
Browse files Browse the repository at this point in the history
  • Loading branch information
tfloxolodeiro committed Oct 3, 2023
1 parent 62a1ea4 commit 8d92a04
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
22 changes: 22 additions & 0 deletions app/utils/staticData/desafios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
Binary file added public/iconos/icono.guyra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions tests/integration/desafios/segundoCiclo/Capy/CapyBuscaAGuyra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { moduloActividad, actividadTest } from '../../../../helpers/actividadTest';

const nombre = "CapyBuscaAGuyra";

moduloActividad(nombre, () => {

actividadTest(nombre, {
solucion: `<xml xmlns="http://www.w3.org/1999/xhtml">
<variables></variables>
<block type="al_empezar_a_ejecutar" deletable="false" movable="false" editable="false" x="15" y="15">
<statement name="program">
<shadow type="required_statement"></shadow>
<block type="VolverAlBordeIzquierdo">
<next>
<block type="Hasta">
<value name="condition">
<shadow type="required_value"></shadow>
<block type="TocandoGuyra"></block>
</value>
<statement name="block">
<shadow type="required_statement"></shadow>
<block type="MoverACasillaDerecha"></block>
</statement>
<next>
<block type="SubirPajarito"></block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>`}
)
});
30 changes: 30 additions & 0 deletions tests/integration/desafios/segundoCiclo/Capy/CapyYGuyra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { moduloActividad, actividadTest } from '../../../../helpers/actividadTest';

const nombre = "CapyYGuyra";

moduloActividad(nombre, () => {

actividadTest(nombre, {
solucion: `<xml xmlns="http://www.w3.org/1999/xhtml">
<variables></variables>
<block type="al_empezar_a_ejecutar" deletable="false" movable="false" editable="false" x="15" y="15">
<statement name="program">
<shadow type="required_statement"></shadow>
<block type="MoverACasillaDerecha">
<next>
<block type="MoverACasillaDerecha">
<next>
<block type="MoverACasillaDerecha">
<next>
<block type="SubirPajarito"></block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>`}
)
});
2 changes: 2 additions & 0 deletions translations/blocks/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions translations/blocks/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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á?
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions translations/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 8d92a04

Please sign in to comment.