DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦d6fe96273⟧ TextFile

    Length: 454 (0x1c6)
    Types: TextFile
    Names: »payoff.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Poker/payoff.c« 

TextFile

/*
** 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 );
}