# Monster Battle -- starter. # Run with: python projects/monster-battle/starter.py import random # TODO 1: build a Monster class with __init__(self, name, hp, attack) and methods # is_alive() -> hp > 0 # hit(other) -> deal random.randint(1, self.attack) damage to other, # never below 0, and print what happened. # TODO 2: create two monsters (a hero and a goblin) with their own # hp and attack values. # TODO 3: a while loop: while both are alive, the hero hits, then the # goblin hits back if it is still alive. Count the rounds. # TODO 4: after the loop, print which monster won.