Standard roulette game of chance.
Useful links :
- Read more about roulette: https://fan-casino.ru/roulette/pravila-igry.html.
- Wikipedia : https://en.wikipedia.org/wiki/Roulette.
- Randomness : https://stackoverflow.com/questions/2706500/how-do-i-generate-a-random-integer-in-c
2023-06-16-10-51-16.1.mp4
- RouletteLib - the roulette library itself.
- Casino - graphic implementation of roulette on wpf.
// Connecting the library
using RoulutteLib
// Create a gambling table with a range of accepted bets
Table table = new Table(10000m, 100000m);
// When you create a bet, it is accepted by the gambling table by default
Rate rate = table.MakeBet(TypeExternalRate.Red, 1000);
// Spinning roulette on the gambling table
int winningCell = table.Spin();
// After spinning the roulette wheel the status of bets is updated
Console.WriteLine(rate.status + " " + rate.winningAmount);