Skip to content

Commit

Permalink
merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Oct 24, 2023
2 parents 6466e5b + 613d3e5 commit 2d45ac4
Show file tree
Hide file tree
Showing 16 changed files with 315 additions and 28 deletions.
73 changes: 73 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,30 @@ export default Service.extend({
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"rebotarPulpito", animacionInteractuadoMientras: "desaparecer", "mensajeError": "Acá no hay una pelota"}',
})

this.crearBloqueAccion('RevolearPulpito', 'volleyRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"revolearPulpito", "mensajeError": "Acá no hay una pelota", idTransicion: "revolearPulpito"}',
})

this.crearBloqueAccion('RebotarPiePulpito', 'bounceFootRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion:"rebotarPulpito", "mensajeError": "Acá no hay una pelota", idTransicion: "rebotarPiePulpito"}',
})

this.crearBloqueAccion('RecogerPulpito', 'pickRubberBall', {
icono: 'icono.pelota-pulpo.png',
comportamiento: 'Interactuar',
argumentos: '{etiqueta: "Pulpito", nombreAnimacion: "recoger", animacionInteractuadoMientras: "desaparecer", "mensajeError": "Acá no hay una pelota", idTransicion: "recoger"}',
})

this.crearBloqueAccion('RebotarUnaVezPingPong', 'bouncePingPong', {
icono: 'icono.paleta.png',
comportamiento: 'PingPongAnimado',
argumentos: '{mensaje: "Rebotando...", etiqueta: "PingPong", nombreAnimacion:"usarPaletaUnaVez", animacionInteractuadoMientras: "desaparecer" }',
});

this.crearBloqueAccion('DespertarLuciernaga', 'wakeUpFirefly', {
icono: 'icono.luciernaga-prendida.png',
comportamiento: 'SacarFoto',
Expand Down Expand Up @@ -554,6 +578,12 @@ export default Service.extend({
argumentos: '{direccion: [1,0], distancia: 50, idTransicion: "avanzar"}',
});

this.crearBloqueAccion('Retroceder', 'back', {
icono: 'icono.izquierda.png',
comportamiento: 'MovimientoAnimado',
argumentos: '{direccion: [-1,0], distancia: 50, idTransicion: "retroceder"}',
});

this.crearBloqueAccion('Soniar', 'dream', {
icono: 'icono.soniar.png',
comportamiento: 'Pensar',
Expand Down Expand Up @@ -754,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',
Expand Down Expand Up @@ -875,6 +942,12 @@ export default Service.extend({
argumentos: '{}',
});

this.crearBloqueAccion('Avanzar1kmChuy', 'move1Km', {
icono: 'icono.derecha.png',
comportamiento: 'CorrerHeroicamente',
argumentos: '{}',
});

this.crearBloqueAccion('CambiarColor', 'changeLightColor', {
icono: 'icono.cambiar.color.png',
comportamiento: 'CambiarColor',
Expand Down
58 changes: 46 additions & 12 deletions app/utils/staticData/desafios.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,6 @@ 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 Expand Up @@ -2764,6 +2752,24 @@ export const desafios = [
</xml>`
},
{
id: 'nuevo2',
nombre: 'ChuyHaciendoJueguito',
escena: 'ChuyHaciendoJueguito',
bloques: ['Avanzar', 'Retroceder', 'RecogerPulpito', 'RebotarPiePulpito', 'RevolearPulpito', 'Repetir', 'Procedimiento'],
expectations: {
simpleRepetition: false
}
},
{
id: 'nuevo3',
nombre: 'NoMeCansoDeRebotar',
escena: 'NoMeCansoDeRebotar',
bloques: ['RebotarUnaVezPingPong', 'Procedimiento', 'Repetir'],
expectations: {
decomposition: false
}
},
{
id: 'nuevo4',
nombre: 'ManicEnElCielo',
escena: `new EscenaManic("\
Expand Down Expand Up @@ -2834,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',
Expand Down Expand Up @@ -2938,6 +2950,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: 'nuevo23',
nombre: 'FutbolAlSur',
Expand Down Expand Up @@ -2982,6 +3006,16 @@ export const desafios = [
conditionalRepetition: true,
}
},
{
id: 'nuevo26',
nombre: 'LaSupermaraton',
escena: 'SuperMaraton',
bloques: ['Procedimiento', 'KmsTotales', 'Avanzar1kmChuy', 'RepetirVacio',
'Repetir', 'Si', 'SiNo', 'Hasta'],
expectations: {
decomposition: false
}
},
{
id: 'nuevo27',
nombre: 'ContandoDeNuevoManic',
Expand Down
19 changes: 11 additions & 8 deletions app/utils/staticData/grupos.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ export const grupos = [
{
id: 'grupoTemporal',
desafioIds: [
'nuevo2',
'nuevo3',
'nuevo4',
'nuevo5',
'nuevo6',
Expand All @@ -281,26 +283,27 @@ export const grupos = [
'nuevo10',
'nuevo13',
'nuevo14',
'nuevo38',
'nuevo39',
'nuevo40',
'nuevo41',
'nuevo15',
'nuevo18',
'nuevo16',
'nuevo17',
'nuevo42',
'nuevo43',
'nuevo44',
'nuevo45',
'nuevo19',
'nuevo20',
'nuevo21',
'nuevo23',
'nuevo24',
'nuevo25',
'nuevo26',
'nuevo27',
'nuevo28',
'nuevo38',
'nuevo39',
'nuevo40',
'nuevo41',
'nuevo42',
'nuevo43',
'nuevo44',
'nuevo45',
'nuevo132',
'nuevo133',
'nuevo134',
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/iconos/icono.yacare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/pilas.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<head>
<script src="libs/pilasweb.js?v=0.5.0"></script>
<script src="libs/pilas-bloques-exercises.js?v=1.4.12"></script>
<script src="libs/pilas-bloques-exercises.js?v=1.4.14"></script>
</head>

</html>
22 changes: 22 additions & 0 deletions tests/integration/desafios/ChuyHaciendoJueguito-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions tests/integration/desafios/LaSupermaraton-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { moduloActividad, actividadTest } from '../../helpers/actividadTest';

const nombre = 'LaSupermaraton';

moduloActividad(nombre, () => {

actividadTest(nombre, {
solucion: `<?xml version="1.0" encoding="UTF-8"?>
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="al_empezar_a_ejecutar" id="1" deletable="false" movable="false" editable="false" x="0" y="0">
<statement name="program">
<block type="Repetir" id="26" inline="true">
<value name="count">
<block type="KmsTotales" id="29" />
</value>
<statement name="block">
<block type="Avanzar1kmChuy" id="12" />
</statement>
</block>
</statement>
</block>
</xml>`,
});

actividadTest(nombre, {
descripcionAdicional: 'Da error al querer correr más de lo que debería',
solucion: '<xml xmlns="http://www.w3.org/1999/xhtml"><variables></variables><block type="al_empezar_a_ejecutar" id="3LvxGwp!/!4x~9Q,)#Mf" deletable="false" movable="false" editable="false" x="15" y="15"><statement name="program"><shadow type="required_statement" id="mc@Y6W3Etlg~$QY_MFvb"></shadow><block type="repetir" id="y}W(J]}a:Gr*CQh!Wihz"><value name="count"><shadow type="required_value" id="gHF/Ky:zMDtpdtYzr,yj"></shadow><block type="math_number" id="GPuKE9|!H/2;GH:9_Kjn"><field name="NUM">100</field></block></value><statement name="block"><shadow type="required_statement" id="@k~Bx*lS*t[%4Yo?d{Ou"></shadow><block type="Avanzar1kmChuy" id="u3v2dXZ;8)yMVJs:8n!5"></block></statement></block></statement></block></xml>',
errorEsperado: 'Ya llegué, ¡no debo seguir corriendo!',
});

});
23 changes: 23 additions & 0 deletions tests/integration/desafios/LimpiandoElHumedal-test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d45ac4

Please sign in to comment.