-
Notifications
You must be signed in to change notification settings - Fork 0
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
Lista02/ex03 #1
Merged
Merged
Lista02/ex03 #1
Conversation
This file contains 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
classe superpoderes feita classe personagem iniciada
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Personagem.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Personagem.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/SuperHeroi.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Main.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Main.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Personagem.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Superpoder.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Superpoder.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/SuperHeroi.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Vilao.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Vilao.java
Outdated
Show resolved
Hide resolved
lista02/lista02-ex03/src/main/java/com/scc0604/lista02/ex03/Personagem.java
Outdated
Show resolved
Hide resolved
CarlosCraveiro
requested changes
Sep 17, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fiz algumas sugestões de modificações no projeto.
GuScarenci
approved these changes
Sep 17, 2022
Closed
CarlosCraveiro
approved these changes
Sep 17, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Código muito bem feito, parabéns!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Trabalho concluído
Fiz o a) de acordo com o que foi pedido ao pé da letra.
o b) foi divido em 3 partes:
Use sua criatividade e crie diferentes superpoderes, cada um com um fator multiplicador para a intensidade. —> linha 21 - 29 (Main.java) esse aqui eu simplesmente inventei uns poderes e coloquei a categoria para ser o fator multiplicador conforme o que o Robson me falou
Defina também superpoderes de defesas capazes de anular determinados ataques. —> esse aqui deu mais trabalho, eu fiz duas listas de poderes, uma de ataque e outra de defesas. Usei isso da linha 77-89 (personagem.java) onde se acontecer a chance de uma defesa ele vai sortear uma defesa e usar isso para subtrair da força do ataque.
Defina diferentes interações de probabilidade conforme os personagens envolvidos. —> esse foi um teco complicado também, eu criei uma variável de força em personagem.java e uso ela na linha 78 (personagem.java), onde a diferença de força entre os personagens altera a chance de ocorrer uma defesa.