I am programming a Hangman Console game. Have done most of it by stuck whereby I need to save cumulative score. Assignment reads:
If word is complete then
- add the score (5 mins the number of wrong guesses for that word) to the cumulative score
The winner automatically plays again. So want to display the cumulative score when player loses. (Total Scores of all the number of plays)
Please help me how to go about it. Or give me a sample code to work from to get an idea.