- register int i, j;
- BOOLEAN win;
- static char prompt[BUFSIZ];
-
- prhand(hand, CINHAND, Playwin, FALSE);
- sprintf(prompt, "Your %s scores ", s);
- i = scorehand(hand, turnover, CINHAND, FALSE, explain); /* count */
- if ((j = number(0, 29, prompt)) == 19)
- j = 0;
- if (i != j) {
- if (i < j) {
- win = chkscr(&pscore, i);
- msg("It's really only %d points, I get %d.", i, 2);
- if (!win)
- win = chkscr(&cscore, 2);
- }
- else {
- win = chkscr(&pscore, j);
- msg("You should have taken %d, not %d!", i, j);
- }
- if (explain)
- msg("Explanation: %s", expl);
- }
- else
+ register int i, j;
+ register BOOLEAN win;
+ static char prompt[BUFSIZ];
+
+ prhand(hand, CINHAND, Playwin, FALSE);
+ (void)sprintf(prompt, "Your %s scores ", s);
+ i = scorehand(hand, turnover, CINHAND, strcmp(s, "crib") == 0, explain);
+ if ((j = number(0, 29, prompt)) == 19)
+ j = 0;
+ if (i != j) {
+ if (i < j) {