I am working a quiz game app.
Is it possible that the user starts the game with a default number of life (like 3-5) and every time he/she insert a wrong answer the number of life decrease by 1.
When the number of life is equal to 0, the game is over.
Thanks
It’s probably gonna be easier to let it start with zero as the default, but for display purposes, always add 3 to that number. Set the game over when the value is -3 (displayed as 0).
Otherwise, if you are submitting a form to start a quiz, you could pass in a column value defaulted to 3 as your initial value.