1 /*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek and Darren F. Provine. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)scores.h 8.1 (Berkeley) 05/31/93 11 */ 12 13 /* 14 * Tetris scores. 15 */ 16 struct highscore { 17 char hs_name[20]; /* login name */ 18 int hs_score; /* raw score */ 19 int hs_level; /* play level */ 20 time_t hs_time; /* time at game end */ 21 }; 22 23 #define MAXHISCORES 80 24 #define MAXSCORES 9 /* maximum high score entries per person */ 25 #define EXPIRATION (5L * 365 * 24 * 60 * 60) 26 27 void savescore __P((int)); 28 void showscores __P((int)); 29