Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
danielferro69 committed Nov 7, 2023
2 parents ab79f4e + 939756e commit d9276f3
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 48 deletions.
258 changes: 215 additions & 43 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "pilas-bloques-exercises",
<<<<<<< HEAD
"version": "1.4.18",
=======
"version": "1.4.17",
>>>>>>> master
"description": "Exercises for Pilas Bloques",
"homepage": "http://pilasbloques.program.ar",
"author": {
Expand Down
8 changes: 3 additions & 5 deletions src/escenas/ReciclandoPapeles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ class ReciclandoPapeles extends EscenaActividad {
}

estaResueltoElProblema(){
return this.hayTachosLlenosAlFinalDeLasFilas() && this.cuadricula.cantFilas === this.cantidadDeTachosLlenos() && !this.cantidadDePapelesSinLevantar();
return this.hayTachosLlenosAlFinalDeLasFilas() && this.cuadricula.cantFilas === this.cantidadDeTachosLlenos() && !this.hayPapelesSinLevantar();
}

hayTachosLlenosAlFinalDeLasFilas(){
return this.tachos.every( tacho => tacho.subactores[0].estaLleno() );
}

cantidadDePapelesSinLevantar(): number {
var cant: number = 0;
this.papeles.forEach( papel => cant += papel.subactores[0].vivo );
return cant;
hayPapelesSinLevantar(): boolean {
return this.papeles.every( papel => papel.subactores[0].vivo );
}

cantidadDeTachosLlenos(): number {
Expand Down

0 comments on commit d9276f3

Please sign in to comment.