Scoring
commit65e7a2c21588a2e3ce73b33db0e59490dfdd8815
authorTobias Rehbein <tobias.rehbein@web.de>
Thu, 23 Apr 2009 20:55:34 +0000 (23 22:55 +0200)
committerTobias Rehbein <tobias.rehbein@web.de>
Thu, 23 Apr 2009 21:21:32 +0000 (23 23:21 +0200)
tree63835155115931656b3354b40b1882a7eed66f5b
parenta0a0257388b93e6143599bb8e0f26e0fb139a733
Scoring

This commit adds a simple scoring system. You have 60 seconds to
enter your guess (the period may be changed using the TIMEOUT
define in common.h). If your guess is wrong 60 (or whatever value
TIMEOUT is set to) points are added to your score. If the guess
was right only the time used to enter your guess gets added to
your score.

The player with the lowest score is the winner.

At the moment the player gets no feedback how much time has
passed. But this won't change until the UI has been
reimplemented; this is just a prototype ;)

 * add simple scoring
 * show scoreboard

Closes GH-1.
common.h
oggquiz.c
ui.c
ui.h