Skip to content

Instantly share code, notes, and snippets.

@AJFaraday
Last active August 29, 2018 21:10
Show Gist options
  • Save AJFaraday/d9eb9a70ad0dc0fb1885be0fce032adc to your computer and use it in GitHub Desktop.
Save AJFaraday/d9eb9a70ad0dc0fb1885be0fce032adc to your computer and use it in GitHub Desktop.
Faraday Cage
// Named for Alan Faraday, elder brother of game creator.
if (api.turn() < 30) {
api.awayY();
} else if (api.turn() < 60) {
api.awayX();
} else {
if (api.turn() % 54 < 27) {
api.towardsY();
} else {
api.towardsX();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment