Last active
July 11, 2022 11:07
-
-
Save vimiomori/3a42a5232a4b31732e7c8a40f87f4148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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