|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 454 (0x1c6)
Types: TextFile
Names: »payoff.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Poker/payoff.c«
/*
** Add current pot to winners available cash. Tell everyone who won.
*/
# include "players.h"
# include "tellall.h"
void payoff( player, n_players, winner, pot )
PLAYER player[]; /* player information */
int n_players; /* number of players */
int winner; /* which player won */
int pot; /* how much $ was won */
{
char temp[80];
player[winner].cash += pot;
sprintf( temp, "W%s", player[winner].name );
tellall( player, n_players, temp );
}