Skip to content

Instantly share code, notes, and snippets.



Last active Sep 3, 2018
What would you like to do?
Mockup of a Jeroo class file. See
public class Jeroo {
private int row;
private int column;
private int flowers;
public Jeroo() {}
public Jeroo(int flowers) {}
public Jeroo(int row, int col) {}
public Jeroo(int row, int col, int flowers) {}
public Jeroo(int row, int col, Dir dir) {}
public Jeroo(int row, int col, Dir dir, int flowers) {}
public void hop() {}
public void hop(int howMany) {}
public void pick() {}
public void plant() {}
public void toss() {}
public void give() {}
public void give(Dir dir) {}
public void turn(Dir dir) {}
public boolean hasFlower() {}
public boolean isFacing(Dir dir) {}
public boolean isFlower(Dir dir) {}
public boolean isJeroo(Dir dir) {}
public boolean isNet(Dir dir) {}
public boolean isWater(Dir dir) {}
public boolean isClear(Dir dir) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.