/dragonfly/games/atc/ |
H A D | log.c | 195 score[i].real_time = in log_score() 208 bcopy(&score[i], in log_score() 210 sizeof (score[i])); in log_score() 212 sizeof (score[i])); in log_score() 230 qsort(score, num_scores, sizeof (*score), compar); in log_score() 234 score[i].name, score[i].host, in log_score() 235 score[i].game, score[i].planes, in log_score() 236 score[i].time, score[i].real_time); in log_score() 264 score[i].name, score[i].host, score[i].game, in log_score() 265 score[i].time, timestr(score[i].real_time), in log_score() [all …]
|
/dragonfly/games/larn/ |
H A D | scores.c | 152 winr[i].taxes = winr[i].score = sco[i].score = 0; in makeboard() 242 if (p->score) { in winshou() 278 if (sco[j].score) { in shou() 379 jdat = sco[i].score; in sortboard() 389 jdat = winr[i].score; in sortboard() 418 sco[i].score = 0; in newscore() 465 if ((score >= p->score) || (c[HARDGAME] > p->hardlev)) { in new1sub() 467 p->score = score; in new1sub() 489 if ((score >= p->score) || (c[HARDGAME] > p->hardlev)) { in new2sub() 491 p->score = score; in new2sub() [all …]
|
/dragonfly/games/battlestar/ |
H A D | command6.c | 139 int score; in rate() local 143 if (score < 5) in rate() 145 else if (score < 20) in rate() 147 else if (score < 35) in rate() 152 if (score < 5) in rate() 154 else if (score < 8) in rate() 156 else if (score < 13) in rate() 158 else if (score < 22) in rate() 163 if (score < 5) in rate() 165 else if (score < 10) in rate() [all …]
|
/dragonfly/games/tetris/ |
H A D | tetris.c | 60 int score; variable 117 score += 10; in elide() 120 score += 30; in elide() 123 score += 70; in elide() 126 score += 150; in elide() 249 score++; in main() 312 score++; in main() 327 score, score == 1 ? "" : "s", level, score * level); in main() 330 score, score == 1 ? "" : "s", level, (double)PRE_PENALTY, in main() 331 (int)(score * level * PRE_PENALTY)); in main() [all …]
|
H A D | scores.c | 167 if (score > sp->hs_score) { in savescore() 171 sp->hs_score = score; /* new score */ in savescore() 174 } else if (score == sp->hs_score) { in savescore() 185 sp->hs_score = score; in savescore() 425 sp->hs_score == score && in printem()
|
H A D | screen.c | 375 if (score != curscore) { in scr_update() 380 printf("Score: %d", score); in scr_update() 381 curscore = score; in scr_update()
|
/dragonfly/sys/dev/sound/pcm/ |
H A D | feeder.c | 351 u_int32_t best, score, score2, oldscore; in snd_fmtbestfunc() local 361 score = snd_fmtscore(fmt); in snd_fmtbestfunc() 365 if (cheq && !score_cheq(score, score2) && in snd_fmtbestfunc() 366 (score_chlt(score2, score) || in snd_fmtbestfunc() 381 !score_endianeq(score, oldscore) && in snd_fmtbestfunc() 382 (score_endianeq(score, score2) || in snd_fmtbestfunc() 383 (!score_signeq(score, oldscore) && in snd_fmtbestfunc() 384 score_signeq(score, score2)))))) { in snd_fmtbestfunc() 409 u_int32_t score, score1, score2; in snd_fmtbest() local 422 score = score_val(snd_fmtscore(fmt)); in snd_fmtbest() [all …]
|
/dragonfly/games/cribbage/ |
H A D | support.c | 196 prpeg(int score, int peg, bool myturn) in prpeg() argument 205 if (score <= 0 || score >= glimit) { in prpeg() 208 if (score == 0) in prpeg() 215 x = (score - 1) % 30; in prpeg() 216 if (score > 90 || (score > 30 && score <= 60)) { in prpeg() 224 mvprintw(SCORE_Y + (myturn ? 7 : 1), SCORE_X + 10, "%3d", score); in prpeg()
|
H A D | score.c | 108 int score; in scorehand() local 114 score = 0; in scorehand() 121 score++; in scorehand() 132 score += 5; in scorehand() 137 score += 4; in scorehand() 149 score += i; in scorehand() 158 score += i; in scorehand() 167 return (score); in scorehand()
|
H A D | cribbage.n | 32 holes. On making his first score, the player advances one peg an 34 board. The second score is recorded by placing the second peg an 37 always showing the amount of this last score. 107 rank alone; the suits do not matter. Nor does the score 111 score 3 for run; 5, 2, 4, 3 played in that order score 4 117 does not score if it is interrupted by a go. 135 Four cards of the same suit in hand score 4; four 137 score 5. (No count for four-flush in crib.) 151 adds 1 for a maximum score of 29. (the score of 2 for his heels does not 175 say "Muggins" and himself score the points overlooked. [all …]
|
H A D | Makefile | 5 SRCS= extern.c crib.c cards.c instr.c io.c score.c support.c
|
/dragonfly/games/snake/snscore/ |
H A D | snscore.c | 58 short uid, score; in main() local 80 if(fread(&score, sizeof(short), 1, fd) == 0) in main() 82 if (score > 0) { in main() 88 players[noplayers].scores = score; in main()
|
/dragonfly/games/sail/ |
H A D | dr_2.c | 51 static int score(struct ship *, struct ship *, char *, size_t, int); 176 score(struct ship *ship, struct ship *to, char *movement, size_t movementmax, in score() function 262 new = score(f, t, temp, tempmax, rakeme); in try() 275 new = score(f, t, temp, tempmax, rakeme); in try() 290 new = score(f, t, temp, tempmax, rakeme); in try()
|
/dragonfly/games/worm/ |
H A D | worm.c | 64 static int score = 0; variable 247 score += growing; in process() 250 wprintw(stw, "Score: %3d", score); in process() 276 printf("Your final score was %d\n", score); in crash()
|
/dragonfly/games/rogue/ |
H A D | score.c | 545 nickize(char *buf, const char *score, const char *n_name) in nickize() argument 550 strcpy(buf, score); in nickize() 552 strncpy(buf, score, 16); in nickize() 554 while (score[i] != ':') { in nickize() 561 while (score[i]) { in nickize() 562 buf[j++] = score[i++]; in nickize()
|
H A D | CHANGES | 22 score file processing is attempted. 23 The score is keyed to winning scores, and no player may appear twice.
|
/dragonfly/games/quiz/ |
H A D | quiz.c | 62 void score (u_int, u_int, u_int); 258 score(rights, wrongs, guesses); in quiz() 279 score(rights, wrongs, guesses); in quiz() 323 score(u_int r, u_int w, u_int g) in score() function
|
/dragonfly/usr.bin/window/ |
H A D | compress.c | 106 #define score_adjust(score, p) \ argument 112 (score) -= _length - tt.tt_put_token_cost; \ 114 (score) += cc_score_adjustments[_length][_ccount]; \ 761 int score; in cc_compress() local 773 score = 0; in cc_compress() 778 score = - tt.tt_set_token_cost; in cc_compress() 781 score = initial_scores[ccount]; in cc_compress() 829 score += score0; in cc_compress() 837 if (score > 0) { in cc_compress()
|
/dragonfly/games/adventure/ |
H A D | done.c | 46 score(void) in score() function 108 printf("\n\n\nYou scored %d out of a ", (sc = score())); in done()
|
/dragonfly/contrib/zstd/lib/dictBuilder/ |
H A D | fastcover.c | 166 activeSegment.score = 0; in FASTCOVER_selectSegment() 177 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment() 189 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment() 196 if (activeSegment.score > bestSegment.score) { in FASTCOVER_selectSegment() 422 if (segment.score == 0) { in FASTCOVER_buildDictionary()
|
/dragonfly/games/snake/snake/ |
H A D | snake.c | 497 short score = iscore; in post() local 527 return (score > oldbest ? 1 : 0); in post() 531 if (score > oldbest) { in post() 533 write(rawscores, &score, sizeof(short)); in post() 540 if (score > allbscore) { in post() 542 write(rawscores, &score, sizeof(short)); in post()
|
/dragonfly/games/trek/ |
H A D | lose.c | 77 score(); in lose()
|
H A D | win.c | 65 s = score(); in win()
|
/dragonfly/games/larn/datfiles/ |
H A D | larn.help | 120 is allowed one slot on each scoreboard, if the score is in the top ten for 124 over score for determining what entry is on the scoreboard. For example: 125 if "Yar, the Bug Slayer" has a score of 128003 on the scoreboard at diff 0, 126 then his game at diff 1 and a score of 4112 would replace his previous
|
/dragonfly/games/robots/ |
H A D | Makefile | 7 play_level.c query.c rnd_pos.c score.c flush_in.c
|