Skip to content

domser2002/CassinoSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Cassino Simulator

Description

This is a simple cassino simulator written in C. Parent process is a croupier and all child processes are players. All players receive initial amount of money and in each round they stake random amount on a number from range <1,36>. Croupier generates random number which is winning in that round. Players who staked at it receive 35*value_of_bet money. The game ends when all players run out of money. Parent and children communicate by pipes.

Usage

To run this program use:

make
./sop-rlt N M

where N is a number of players (>=1) and M is an initial amount of money (>=100).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages