Last active
January 25, 2018 10:45
-
-
Save joshboybirney/92aac4fdc89f79c0d8a39b2d4e004847 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 solider: | |
#stats | |
power = 5 | |
health = 5 | |
def shoot(self): | |
choice == shoot("use gun or knife"): | |
if choice == "gun": | |
print("you shot the other monster with gun") | |
solider.2getsHit() | |
elif choice == "knive" | |
print("attack failed") | |
def gethit(self): | |
self.health = self.health -2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok