C++ Project
|
The simulation was based on a gambling machine which, in return for money, generates a sequence of random numbers, then the machine checks if the sequence is linearizable the the player wins. Next we used these sequence to simulate a withdraw and deposit bank account system with the use of 4 different threads. |
Summary of Game Play :
1. Player inserts coin
2. Player chooses number of rows
3. The Gambling machine generates the required number of sequence
4. Determine if all rows are linearizable
5. If all sequence are linearizable then pay out
6. If all sequence are not linearizable then the game don’t pay out
7. Withdraw and deposit according to the sequence.
8. Print amount in each account
1. Player inserts coin
2. Player chooses number of rows
3. The Gambling machine generates the required number of sequence
4. Determine if all rows are linearizable
5. If all sequence are linearizable then pay out
6. If all sequence are not linearizable then the game don’t pay out
7. Withdraw and deposit according to the sequence.
8. Print amount in each account