Giter Site home page Giter Site logo

roulettegame's Introduction

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

roulettegame's People

Contributors

halliscode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.