Skip to content

Sophie's Character #15

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Sophie's Character #15

wants to merge 1 commit into from

Conversation

TamamLawic
Copy link
Contributor

No description provided.

}

public void describeSelf(){
System.out.println("My name is" + this.getName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of character are you? What color is your flannel?



for(int i=0; i< potentialTargets.size(); i++){
if (potentialTargets.get(i).getHealth() > mostHealth && this != potentialTargets.get(i)){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you format this file using Ctrl+Alt+L?


for(int i=0; i< potentialTargets.size(); i++){
if (potentialTargets.get(i).getHealth() > mostHealth && this != potentialTargets.get(i)){
mostHealth = potentialTargets.get(i).getHealth();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have potentialTargets.get(i) 3 times. Can you put this in a variable and use it?

* Created by Sophie on 12/6/2016.
*/
public class LumberJack extends Character{
private String flannelColor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want extra credit, you could add some more fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants