Skip to content

Instantly share code, notes, and snippets.

@vimiomori
Last active July 11, 2022 11:07
Show Gist options
  • Save vimiomori/3a42a5232a4b31732e7c8a40f87f4148 to your computer and use it in GitHub Desktop.
Save vimiomori/3a42a5232a4b31732e7c8a40f87f4148 to your computer and use it in GitHub Desktop.
class Pokemon {
getType()
beats(enemyPokemon: Pokemon) {
if (this.getType() == "Fighting" && enemyPokemon.getType() == "Normal") {
return true
} else {
return false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment