Home | History | Annotate | Download | only in robots

Lines Matching refs:SCORE

1 /*	$NetBSD: score.c,v 1.24 2021/04/13 01:50:46 mrg Exp $	*/
35 static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
37 __RCSID("$NetBSD: score.c,v 1.24 2021/04/13 01:50:46 mrg Exp $");
56 static SCORE Top[MAXSCORES];
61 static void set_name(SCORE *);
65 * Read the score file in MI format
70 SCORE *scp;
91 * Write the score file in MI format
96 SCORE *scp;
115 * score:
116 * Post the player's score, if reasonable, and then print out the
120 score(int score_wfd)
123 SCORE *scp;
134 if (Top[MAXSCORES-1].s_score <= Score) {
138 if (scp->s_score > Score)
140 scp->s_score = Score;
149 Top[MAXSCORES-1].s_score = Score;
169 printw("%5.5s %5.5s %-9.9s %-8.8s %5.5s", "Rank", "Score", "User",
176 if (!done_show && scp->s_uid == uid && scp->s_score == Score)
181 if (!done_show && scp->s_uid == uid && scp->s_score == Score) {
196 set_name(SCORE *scp)
214 return ((const SCORE *)s2)->s_score - ((const SCORE *)s1)->s_score;
219 * Show the score list for the '-s' option.
224 SCORE *scp;
235 printf("%5.5s %5.5s %-9.9s %-8.8s %5.5s\n", "Rank", "Score", "User",