Skip to content

Instantly share code, notes, and snippets.

@joshboybirney
Last active January 25, 2018 10:45
Show Gist options
  • Save joshboybirney/92aac4fdc89f79c0d8a39b2d4e004847 to your computer and use it in GitHub Desktop.
Save joshboybirney/92aac4fdc89f79c0d8a39b2d4e004847 to your computer and use it in GitHub Desktop.
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
@joshboybirney
Copy link
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment