Skip to content

Instantly share code, notes, and snippets.

View aurora-anon's full-sized avatar

Aurora aurora-anon

View GitHub Profile
@aurora-anon
aurora-anon / Real Life Recursive Programming.java
Created September 1, 2017 21:28
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();