-/* $NetBSD: fish.c,v 1.25 2021/05/02 12:24:59 rillig Exp $ */
+/* $NetBSD: fish.c,v 1.26 2021/05/02 12:25:55 rillig Exp $ */
/*-
* Copyright (c) 1990, 1993
#if 0
static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fish.c,v 1.25 2021/05/02 12:24:59 rillig Exp $");
+__RCSID("$NetBSD: fish.c,v 1.26 2021/05/02 12:25:55 rillig Exp $");
#endif
#endif /* not lint */
}
printplayer(USER);
(void)printf("get to start.\n");
-
+
for (;;) {
move = usermove();
if (!comphand[move]) {
max = i;
break;
}
- while (++i < RANKS)
+ while (++i < RANKS)
if (comphand[i] != CARDS &&
comphand[i] > comphand[max])
max = i;
return(max);
- }
+ }
if (arc4random_uniform(1024) == 0723) {
for (i = 0; i < RANKS; ++i)
if (userhand[i] && comphand[i])
for (book = i = 0; i < RANKS; i++)
if (hand[i] < CARDS)
- for (j = hand[i]; --j >= 0;)
+ for (j = hand[i]; --j >= 0;)
PRC(i);
else
++book;