Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save samael/e72fd091d5d4b1b6b7bc75b02af29c4d to your computer and use it in GitHub Desktop.

Select an option

Save samael/e72fd091d5d4b1b6b7bc75b02af29c4d 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