Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.56 KB

RouletteGame

C#11.0 .NET-7.0

Standard roulette game of chance.

Useful links :

  1. Read more about roulette: https://fan-casino.ru/roulette/pravila-igry.html.
  2. Wikipedia : https://en.wikipedia.org/wiki/Roulette.
  3. Randomness : https://stackoverflow.com/questions/2706500/how-do-i-generate-a-random-integer-in-c

Navigation

  1. Overview
  2. Contains
  3. RouletteLib : MVP Exampl
  4. Requirements
2023-06-16-10-51-16.1.mp4
  1. RouletteLib - the roulette library itself.
  2. 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);