player
drawcard(int player, int *hand)
if (player == USER || hand[card] == CARDS) {
printplayer(player);
chkwinner(player, hand);
gofish(int askedfor, int player, int *hand)
printplayer(OTHER(player));
if (askedfor == drawcard(player, hand)) {
printplayer(player);
printplayer(player);
goodmove(int player, int move, int *hand, int *opphand)
printplayer(OTHER(player));
printplayer(player);
chkwinner(player, hand);
chkwinner(OTHER(player), opphand);
printplayer(player);
chkwinner(int player, const int *hand)
printplayer(player);
printplayer(int player)
switch (player) {
if (i != player)
if (i != player)
buy(player, sqp);
else if (sqp->owner == player)
fprintf(outf, "%d %d %d\n", num_play, player, num_doub);
if (sscanf(st, "%d %d %d", &num_play, &player, &num_doub) != 3 ||
player < 0 || player >= num_play ||
cur_p = play + player;
printhold(player);
player = (player + 1) % num_play;
cur_p = &play[player];
player = max_pl;
printf("\n%s (%d) (cash $%d) on %s\n", cur_p->name, player + 1,
if (new_own == player)
if (new_own == player)
} while (new_own == player);
trades[1].trader = player;
free(name_list[player]);
for (i = player; i < num_play; i++) {
if (board[i].owner > player)
if (player == 0)
player = num_play - 1;
player--;
if (tradee == player) {
tradee = 1 - player;
get_list(0, player);
struct player *playerp; /* pointer to structure to alter */
readrecord(struct player *playerp, long loc)
descrlocation(struct player *playerp, bool shortflag)
initplayer(struct player *playerp)
descrstatus(struct player *playerp)
descrtype(struct player *playerp, bool shortflag)
findname(char *name, struct player *playerp)
freerecord(struct player *playerp, long loc)
writerecord(struct player *playerp, long place)
#define SZ_PLAYERSTRUCT sizeof(struct player) /* size of player structure */
struct player Player; /* stats for player */
struct player Other; /* stats for another player */
void initplayer(struct player *);
void readrecord(struct player *, long);
void writerecord(struct player *, long);
extern struct player Player; /* stats for player */
extern struct player Other; /* stats for another player */
char *descrlocation(struct player *, bool);
char *descrstatus(struct player *);
char *descrtype(struct player *, bool);
long findname(char *, struct player *);
void freerecord(struct player *, long);
Write(W_GRAP, sp, player, 0, 0, 0);
int player;
player = sp - SHIP(0);
if (scanf("%d", &player) != 1 || player < 0
|| player >= cc->vessels) {
player = -1;
if (player < 0)
fp = SHIP(player)->file;
ms = SHIP(player);
extern int player;