- register int i, j;
- BOOLEAN win;
-
- printf( "Your %s is: ", s );
- prhand( hand, CINHAND, TRUE );
- printf( " [" );
- printcard( turnover, TRUE );
- printf( "]. How many points? " );
- i = scorehand( hand, turnover, CINHAND, FALSE ); /* count */
- if( ( j = number(0, 29) ) == 19 ) j = 0;
- if( i != j ) {
- if( i < j ) {
- win = chkscr( &pscore, i );
- printf( "It's really only %d points, I get %d.\n", i, 2 );
- if( !win ) win = chkscr( &cscore, 2 );
- }
- else {
- win = chkscr( &pscore, j );
- printf( "You should have taken %d, not %d!\n", i, j );
- }
- if( explain ) {
- printf( "Explanation: %s\n", expl );
- }
+ 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) {
+ win = chkscr(&pscore, i);
+ msg("It's really only %d points; I get %d", i, 2);
+ if (!win)
+ win = chkscr(&cscore, 2);