Build a game Player.
Part 1: Player(name)
name, health of 100 and score of 0.take_damage(amount) lowers health, but health never goes below 0.heal(amount) raises health, but health never goes above 100.score_point() adds 1 to score.__repr__ returns Player(<name>, health=<health>, score=<score>).Part 2: play(name, events)
Make a player called name. events is a list of strings, applied in order:
| event | meaning |
|---|---|
"hit 30" | take 30 damage |
"heal 10" | heal 10 |
"point" | score a point |
Return str() of the player at the end.