Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfixes - enunciados #1556

Merged
merged 6 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions app/services/blocks-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,26 @@ export default Service.extend({
funcionSensor: 'tocando("Trofeo")',
});

this.crearBloqueSensor('BordeDerecho', 'rightBorder', {
icono: 'icono.derecha.png',
funcionSensor: 'enBordeDerecho()',
});

this.crearBloqueSensor('BordeIzquierdo', 'leftBorder', {
icono: 'icono.izquierda.png',
funcionSensor: 'enBordeIzquierdo()',
});

this.crearBloqueSensor('BordeArriba', 'topBorder', {
icono: 'icono.arriba.png',
funcionSensor: 'enBordeArriba()',
});

this.crearBloqueSensor('BordeAbajo', 'bottomBorder', {
icono: 'icono.abajo.png',
funcionSensor: 'enBordeAbajo()',
});

},

_definirBloquesQueRepresentanValores() {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Pilas Bloques",
"genericName": "Programacion con bloques",
"description": "Una herramienta para aprender a programar utilizando bloques",
"version": "1.17.6",
"version": "1.17.9",
"homepage": "http://pilasbloques.program.ar",
"author": {
"name": "Program.AR",
Expand Down Expand Up @@ -67,7 +67,7 @@
"creador-de-desafios-pilasbloques": "^1.0.1",
"mulang": "^6.0.5",
"pilas-bloques-ember-intl": "^1.1.2",
"pilas-bloques-exercises": "1.4.30",
"pilas-bloques-exercises": "1.4.34",
"pilasweb": "^0.5.0",
"proceds-blockly": "^1.1.0",
"ramda": "^0.28.0",
Expand Down
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.30"></script>
<script src="libs/pilas-bloques-exercises.js?v=1.4.34"></script>
</head>

</html>
4 changes: 4 additions & 0 deletions translations/blocks/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ footBallHere: Is there a soccer ball here?
paddleHere: Is there a paddle here?
chargerHere: Is there a charger here?
trophyHere: Is there a trophy here?
leftBorder: Am I on the left edge?
rightBorder: Am I on the right edge?
bottomBorder: Am I on the bottom edge?
topBorder: Am I on the top edge?
saladBowlHere: Is there a salad bowl here?
pickTrophy: Pick trophy
pickPaddle: Pick paddle
Expand Down
4 changes: 4 additions & 0 deletions translations/blocks/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ footBallHere: ¿Hay una pelota de fútbol acá?
paddleHere: ¿Hay una paleta acá?
chargerHere: ¿Hay un cargador acá?
trophyHere: ¿Hay un trofeo acá?
leftBorder: ¿Estoy en el borde de la izquierda?
rightBorder: ¿Estoy en el borde de la derecha?
bottomBorder: ¿Estoy en el borde de abajo?
topBorder: ¿Estoy en el borde de arriba?
saladBowlHere: ¿Hay una ensaladera acá?
pickTrophy: Recoger trofeo
pickPaddle: Recoger paleta
Expand Down
4 changes: 4 additions & 0 deletions translations/blocks/pt-br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ holdPaper: Segurar papel
fillBin: Encher taco
chargerHere: Há um cargador aqui?
trophyHere: Há um trofeo aqui?
leftBorder: Estou na borda esquerda?
rightBorder: Estou na borda direita?
bottomBorder: Estou na borda inferior?
topBorder: Estou na borda superior?
saladBowlHere: Há uma tigela de salada aqui?
categories:
primitives: Primitivas
Expand Down
8 changes: 4 additions & 4 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ model:
clue: Toto can execute the instructions one-at-the-time with the 'STEP' button.
'1002':
title: Chuy keepie-uppie
description: 'Make Chuy take a step forward, warm up moving back and forth twice, pick up the rubber ball, do keepie-uppie flipping the ball and bouncing it with the foot and finally come back to the original place.'
description: 'Make Chuy take a step forward, warm up (moving back and forth, twice), pick up the rubber ball, do keepie-uppie flipping the ball and bouncing it with the foot and finally come back to the original place.'
clue: You can create new actions in _My procedures_ by defining new blocks including other actions.
'1003':
title: I love bouncing the ping pong ball
Expand Down Expand Up @@ -722,15 +722,15 @@ model:
description: Yvoty needs to wake up all the fireflies to know the route... But they change their places each time you run the program! You can use the procedures and control blocks.
clue: ''
'1019':
title: Super Yvoty 1
title: Changing lengths
description: |
Help Yvoty wake up all the fireflies.
Watch out! There’s a firefly in every cell, but you don´t know how many cells are there each time you run the program.
clue: There are new blocks that can help you solve this challenge very easily. Use them!
'1020':
title: Super Yvoty 2
title: Changing lights
description: |
Super Yvoty should wake up all the fireflies, but opposite to the previous challenge, there are cells without any firefly here. Could you use the same procedure you used in Super Tito 1?
In this case, Yvoty must also wake up all the lights she finds to illuminate the landscape well, but right now she doesn't know the length of the path... but she also doesn't know if there will be lights at every step! Will the same help you said in "Changing lengths" help you?
clue: The "Repeat until" block will repeat a sequence of actions until one condition is met. This is called "Conditional repetition".
'1022':
title: Capy looks for Guyrá
Expand Down
8 changes: 4 additions & 4 deletions translations/es-ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ model:
'1002':
title: Chuy hace jueguito
description: |
Hacé que Chuy avance un paso, entre en calor (avance y retroceda dos veces), recoja la pelota de goma, haga jueguito lanzando al aire la pelota y rebotándola con el pie y, por último, vuelva a su lugar.
Hacé que Chuy avance un paso, entre en calor (avance y retroceda, dos veces), recoja la pelota de goma, haga jueguito lanzando al aire la pelota y rebotándola con el pie y, por último, vuelva a su lugar.
clue: '`Calentar` y `Hacer jueguito` no están como primitivas... ¿Cómo podés armar esas acciones con las primitivas disponibles? Tené en cuenta que "calentar" implica avanzar y retroceder dos veces. Y, por otro lado, "hacer jueguito" comprende tomar la pelota, lanzarla al aire y hacerla rebotar en el pie dos veces. ¡Hay mucho para hacer!'
'1003':
title: No me canso de rebotar
Expand Down Expand Up @@ -746,14 +746,14 @@ model:
Cuando Chuy lleva la pelota, no hay obstáculo que pueda detenerle. Ayudale a encontrar el recorrido para llegar a la esquina inferior derecha de la cancha, esquivando los obstáculos que se le presenten.
clue: 'Los diferentes caminos posibles... ¿tienen el mismo o distinto largo? Recordá que en cada ejecución te encontrarás con un escenario distinto.'
'1019':
title: Super Yvoty 1
title: Largos cambiantes
description: |
¡Yvoty continúa tomando fotos! Por lo que sigue necesitando la ayuda de las luciérnagas para tener una buena iluminación. Ayudala a despertar a todas las luciérnagas teniendo en cuenta que el camino que recorre puede ser más corto o más largo.
clue: Aprovechá los nuevos bloques, pueden ayudarte a resolver el desafío de manera muy sencilla.
'1020':
title: Super Yvoty 2
title: Luces cambiantes
description: |
En este caso, Yvoty también debe despertar a todas las luciérnagas que encuentre para iluminar bien el paisaje, pero ahora no sólo no se conoce el largo del camino… ¡sino que tampoco se sabe si habrá o no luciérnagas en cada paso! ¿Servirá la misma ayuda que le diste en "Super Yvoty 1"?
En este caso, Yvoty también debe despertar a todas las luciérnagas que encuentre para iluminar bien el paisaje, pero ahora no sólo no se conoce el largo del camino… ¡sino que tampoco se sabe si habrá o no luciérnagas en cada paso! ¿Servirá la misma ayuda que le diste en "Largos cambiantes"?
clue: El bloque `repetir hasta que` repite una secuencia de acciones **hasta que se cumpla una condición**. Esto se llama **repetición condicional**.
'1021':
title: Laberinto con pelotas
Expand Down
8 changes: 4 additions & 4 deletions translations/pt-br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ model:
clue: A província é Chubut. Com o botão 'PASSO' o Toto pode executar as instruções uma a uma
'1002':
title: Chuy joga uma embaixadinha
description: Faça que Chuy dê um passo à frente, aqueça-se movendo-se para frente e para trás duas vezes, pegue a bola de borracha, jogue uma embaixadinha virando a bola e quicando-a com o pé e, finalmente, retorne ao seu lugar.
description: Faça que Chuy dê um passo à frente, aqueça-se (movendo-se para frente e para trás, duas vezes), pegue a bola de borracha, jogue uma embaixadinha virando a bola e quicando-a com o pé e, finalmente, retorne ao seu lugar.
clue: Novas ações podem ser criadas em Procedimentos definindo novos blocos que incluem outras ações.
'1003':
title: Eu adoro quicar a bola de pingue-pongue
Expand Down Expand Up @@ -703,15 +703,15 @@ model:
description: Yvoty necesita despertar a las luciérnagas para poder conocer el camino... ¡Pero en cada ejecución cambian de lugar! Podés utlizar los procedimientos y bloques de control.
clue: ''
'1019':
title: Súper Yvoty 1
title: Mudando comprimentos
description: |
Ayudá a Yvoty a despertar las luciérnagas.
¡Ojo! En todas las celdas hay una luciérnaga, pero no sabés cuántas celdas hay en cada ejecución.
clue: Hay nuevos bloques que pueden ayudarte a resolver el desafío de manera muy sencilla. ¡Aprovechalos!
'1020':
title: Súper Yvoty 2
title: Mudando luzes
description: |
Súper Yvoty debe despertar a todas las luciérnagas, pero a diferencia del desafío anterior, hay celdas sin luciérnagas. ¿Podrás utilizar el mismo procedimiento que en Súper Yvoty 1?
Neste caso, Yvoty também deve acordar todas as luzes que encontrar para iluminar bem a paisagem, mas no momento ela não sabe a extensão do caminho... mas também não sabe se haverá luzes em cada etapa! A mesma ajuda que você disse em “Mudando comprimentos” irá ajudá-lo?
clue: El bloque "repetir hasta que" repite una secuencia de acciones hasta que se cumple una condición. Esto se llama "repetición condicional".
'1022':
title: Capy busca a Guyrá
Expand Down
Loading