You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Me ha encantado el lab.
Basándome en las clases viking y soldier y en la dinámica del juego, he creado una especie de war bot con los nombres de la gente de clase.
Hay dos versiones, uno que se ejecuta del tirón y otro con pausas entre los ataques en el que se puede ver como la gente va siendo herida o va muriendo.
Se puede introducir la gente que participa mediante una lista de nombres y el programa lo divide aleatoriamente en dos equipos y los convierte en soldados de clase viking o saxon.
Se puede implementar el programa teniendo en cuenta posibles errores en la interacción del usuario... pero eso está pendiente para el futuro....
Eres muy craaack! Esta todo perfecto!
Me has entretenido la tarde con los jueguecitooos!
Lo único que te puedo intentar corregir es el format por si te hace ilusión probar la otra forma:
"{} has received {} points of damage" .format(self.name, str(damage))
f"{self.name} has received {str(damage)} points of damage"
ese sería el cambio.
Me alegro de que te haya gustado el lab, a ver si pandas te gusta también...
Mucho ánimo, sigue así!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.