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)
player = 0;
fprintf(outf, "currentplayer %d\n", player);
if (getnum("currentplayer", txt, 0, num_play-1, &player) < 0) {
cur_p = &play[player];
printhold(player);
player = (player + 1) % num_play;
cur_p = &play[player];
printf("\n%s (%d) (cash $%d) on %s\n", cur_p->name, player + 1,
player = max_pl;
int player, /* current player number */
extern int num_play, player, num_doub, num_luck;
if (new_own == player)
if (new_own == player)
} while (new_own == player);
trades[1].trader = player;
free(play[player].name);
for (i = player; i < num_play; i++) {
if (board[i].owner > player)
player = player == 0 ? num_play - 1 : player - 1;
if (tradee == player) {
tradee = 1 - player;
get_list(0, player);
struct player *playerp; /* pointer to structure to alter */
descrtype(struct player *playerp, phbool shortflag)
findname(const char *name, struct player *playerp)
freerecord(struct player *playerp, long loc)
writerecord(struct player *playerp, long place)
readrecord(struct player *playerp, long loc)
descrlocation(struct player *playerp, phbool shortflag)
initplayer(struct player *playerp)
descrstatus(struct player *playerp)
#define SZ_PLAYERSTRUCT sizeof(struct player) /* size of player structure */
struct player Player; /* stats for player */
struct player Other; /* stats for another player */
void writerecord(struct player *, long);
extern struct player Player; /* stats for player */
extern struct player Other; /* stats for another player */
const char *descrlocation(struct player *, bool);
const char *descrstatus(struct player *);
const char *descrtype(struct player *, bool);
long findname(const char *, struct player *);
void freerecord(struct player *, long);
void initplayer(struct player *);
void readrecord(struct player *, long);
send_grap(sp, player);
ms = SHIP(player);
mvselprintw(which + 3, 4, which, player, 60,
move(player + 3, 63);
int player;
player = sp - SHIP(0);
up(&player, NULL);
down(&player, NULL, cc->vessels,
if (player < 0)
fp = SHIP(player)->file;
extern int player;
static struct player players[MAXPLAYERS], temp;