Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. AllianceAttack = int(input())
  2. AllianceHp = int(input())
  3. HordeAttack = int(input())
  4. HordeHp = int(input())
  5. while AllianceHp > 0 and HordeHp > 0:
  6.     AllianceHp -= HordeAttack
  7.     HordeHp -= AllianceAttack
  8. if AllianceHp <= 0 and HordeHp <= 0:
  9.     print('DRAW')
  10. elif AllianceHp > HordeHp:
  11.     print('WIN')
  12. elif HordeHp > AllianceHp:
  13.     print('LOSE')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement