1 #ifndef SCORES_H
2 #define SCORES_H
3 
4 #include <time.h>
5 
6 #define SCORE_ENTRIES	20
7 
8 #define HI_NAME_LEN	9
9 #define HI_DICT_LEN	9
10 
11 struct hiscore {
12 	char name[HI_NAME_LEN];	/* null terminated username */
13 	char dict[HI_DICT_LEN];
14 	int total;
15 	int words;
16 	int blocks;
17 	time_t date;
18 };
19 
20 struct score {
21 	int total;		/* Total score so far */
22 	int words;		/* Total words made so far */
23 	int blocks;		/* Number of blocks that have fallen */
24 	struct list *wrd;
25 };
26 
27 struct hiscore *score_update(const struct score *scr, time_t *scr_time, const char **err);
28 
29 #endif
30