Skip to content

Instantly share code, notes, and snippets.

@kagklis
Created March 14, 2022 20:47
Show Gist options
  • Save kagklis/8c9c002b3db36cc93be0f8ac2e905fa8 to your computer and use it in GitHub Desktop.
Save kagklis/8c9c002b3db36cc93be0f8ac2e905fa8 to your computer and use it in GitHub Desktop.
// Check if our hero can defeat the villain
if (hero.strength > villain.strength &&
hero.energy > 30 &&
!villain.bersekerMode) {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment