Menu

#6 Score tracker

open
nobody
None
1
2009-09-13
2009-09-13
John McCoey
No

Maintain a "score" of how many times each player has won in a given session. For example, at end of a game, there will be a "play again?" option. For as long as the players continue to play, the game would keep score of each players wins. So if the words is not guessed, it would be
Player #1 Player #2
1 - 0
Then if in the next game the word is guessed, the score would be displayed:

Player #1 Player #2
1 - 1

This would not need to be stored in a database at all, just a local variable, as it would reset to 0 - 0 with each session.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB