Skip to content

Instantly share code, notes, and snippets.

@benbagley
Created January 7, 2020 19:04
Show Gist options
  • Save benbagley/041e5c086450ea6325dbbe39ac51f8a6 to your computer and use it in GitHub Desktop.
Save benbagley/041e5c086450ea6325dbbe39ac51f8a6 to your computer and use it in GitHub Desktop.
# Battle Rules
num_knights = int(input("How many knights are available? "))
day = input("Enter the day of the week? ")
enemy = input("What enemy are we up against? ")
if enemy == "killer bunny":
print("Use the holy hand grenade!")
else:
if num_knights < 3 or day == "Monday":
print("Retreat")
if num_of_knights >= 10 and day == "Wednesday":
print("Send out the Trojan rabbit")
else:
print("Truce?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment