Skip to content

Instantly share code, notes, and snippets.

@aurora-anon
Created September 1, 2017 21:28
Show Gist options
  • Save aurora-anon/ad19564c9bfb165edf7c38329cb7f4a9 to your computer and use it in GitHub Desktop.
Save aurora-anon/ad19564c9bfb165edf7c38329cb7f4a9 to your computer and use it in GitHub Desktop.
Killing a target with a recursive method
public final class Killer {
private Killer {
}
protected static void kill() {
if (killed) {
robot.speak("Target Killed");
}
else {
robot.shoot();
robot.kill();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment