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.
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).