I started to create this application turn based fighting game, but I’m not sure what I could do to record the attacks, so once a player reaches 0 life points then it’s game over.
The best way to do it would probably be to start with 10 lives or whatever, and a successful attack could lower the opponents lives variable by 1 (or more) and after each decrement check for end, ie 0.