Skip to content

Instantly share code, notes, and snippets.

@maephisto
Created May 20, 2015 10:14
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save maephisto/a9a451a5ea4fc60a1437 to your computer and use it in GitHub Desktop.
Save maephisto/a9a451a5ea4fc60a1437 to your computer and use it in GitHub Desktop.
Bohemian Rhapsody in Javascript
try {
assert(Life.isReal);
assert(Life.isFantasy);
} catch (LandSlideException ex) {
while(!Reality.isEscapable) {
self.eyes.forEach(function(eye) {
eye
.open()
.lookTo(Sky)
.see();
});
self.wealth = null;
self.ageState = AgeState.Boy;
self.sympathies.clear();
if (self.comeDificulty === Dificulty.Easy &&
self.goDificulty === Dificulty.Easy &&
self.high < 0.1 &&
self.low < 0.1) {
switch(Wind.direction) {
case Direction.North:
case Direction.South:
case Direction.East:
case Direction.West:
default:
self.matter = false;
Piano.play(1200);
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment