Lives and game over (Space Shooter)
Enemies that reach the bottom row now cost a life (you start with 3): print t=<tick lost a life at (<x,<y), <n left. At 0 lives print game over at tick <t and stop reading keys. The summary adds , lives <n.
Input: As before.
Output: As before.
Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Check enemies reaching the bottom after the hit checks.