Skip to content

Commit

Permalink
Update personas.wlk
Browse files Browse the repository at this point in the history
  • Loading branch information
regueiranehuen authored Nov 22, 2024
1 parent bd7d058 commit f835945
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions personas.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Persona{

// 1)
method esAdolescente(){
return edad >= 12 || edad < 19
return edad >= 12 && edad < 19
}

// 2)
Expand All @@ -20,13 +20,11 @@ class Persona{

// 4)
method vivirEvento(evento){
emociones.forEach({emocion => emocion.puedeLiberarse(self)
emocion.liberarse(evento)
emocion.agregarEvento()})
emociones.forEach({emocion=>emocion.agregarEvento()})
emociones.forEach({emocion=>emocion.puedeLiberarse(self)
emocion.liberarse(Evento)})
}



}

class Grupo{
Expand Down

0 comments on commit f835945

Please sign in to comment.