Giter Site home page Giter Site logo

ballstothewheel's Introduction

Balls To The Wheel

Accessible Terminal-based Roulette game

What is Roulette?

Roulette is a common casino game found around the world. It consists of a table that has 36 numbers laid out in a grid configuration 12 numbers across and 3 rows deep. The odd numbers between 1-10 and 19-28 are Red, while the odd numbers between 11-19 and 29-36 are Black, creating an alternating Red/Black pattern across the span of numbers, and there are two green spaces next to the first row of numbers for the 0 and Double-0.

Surrounding this grid of numbers are boxes and areas in which specific outside bets can be made. Players can make Inside bets by placing chips directly on any number, or using any of the inside betting methods, plus they can bet on any of the outside betting boxes.

Once bets have been made, a large wheel adjacent to the playing surface is spun, and the dealer places a small ball inside the inner rim of the wheel and spins it in a counter direction to the spin of the main wheel. The ball spins around the inner rim until gravity grabs it and pulls it down into the spinning wheel. The spinning part of the wheel has all 36 numbers plus the 0 and 00 randomly placed around the circumference, each number having a slot where the ball will eventually land. As the ball falls into the spinning wheel, it bounces around randomly until it slows down enough to be captured by one of the slots to pick a number.

The dealer marks the number on the play surface, removes all the losing bets, then pays out all the winnings bets. The table is cleared, and betting begins for the next spin.

How to Play

Balls to the Wheel will first prompt you to enter a bankroll. Type in how much you'd like to start with and hit Enter. Off you go!

The game is played via a series of commands entered through prompts. Simply enter the code for the bet you want at the Place Your Bets prompt and hit Enter, then follow the instructions.

Place Your Bets!

This the main prompt for the game and will be the first one you encounter after entering your bankroll or spinning the wheel. This is where you'll enter the various betting modes, check what bets you have placed, toggle verbose mode, and pull up the Help prompt to check the bet codes if needed.

  • 'a': Show all your bets.
  • 'c': Show how much money you have out on the table.
  • 're': Show the last 10 spin results.
  • 'v': Toggle verbose mode, where more details about the resulting number after the spin will be shown.
  • 'x': Finish betting and spin the wheel!

Outside Bets

  • '0': Bet on 0.
  • '00': Bet on DOuble-zero.
  • 'r': Bet on Red.
  • 'b': Bet on Black.
  • 'e': Bet on Even.
  • 'o': Bet on Odd.
  • 'c1' 'c2' c3': Bet on Columns 1-3; c1 = Column 1, c2 = Column 2, c3 = Column 3.
  • 'd1' 'd2' 'd3': Bet on Dozens. d1 = Numbers 1-12, d2 = Numbers 13-24, d3 = 25-36.
  • 'h1' 'h2': Bet on the 1st or 2nd half of the numbers, also known as Low/High.

Inside Bets

All bets made within the number grid itself.

  • 'tl': Top Line bet; makes a bet on the 0, 00, 1, 2, and 3.
  • 'bk': Basket bet; a bet on the 0, 1, 2, and 3.
  • 'sn': Snake bet; a bet on the numbers 1, 5, 9, 12, 14, 16, 19, 23, 27, 30, 32, and 34.

Special Inside Bets

Each of these bets will open up their own prompts. For all of these, you'll be given a choice to enter and then be prompted to put in the amount you want on the chosen bet. For all these bet types, typing 'cl' and hitting ENter will clear all the bets of that type when in the prompt.

type 'x' and hit Enter to leave the betting mode and return to the main game screen.

Straight Up

'n': Typing 'n' and hitting Enter from he Place Your Bets prompt will open the Straight Up betting prompt. Enter any number between 1-36 to bet directly on it. Hitting Enter at this prompt wihtout entering anything will exit this mode and return you to the main game screen.

Splits

'sp': Type 'sp' and hit Enter to go into Split Betting mode. Splits are bets between two adjacent numbers that are touching on the grid. Enter the two numbers you want to split with a hyphen between them. For example, '1-2', '19-20', '9-12' and so on. Make sure to put the lower number first. There are 56 split combinations across the table, including the 0-00 split. 0 and 00 do not split with any other numbers except for themselves.

Streets

'st': Typing 'st' and hitting Enter from the main prompt will open up Street Betting. Streets are vertical groups of 3 numbers that you can bet on across the table. Street 1 contains the numbers 1, 2, and 3, etc. The prompt will show you exactly which numbers each street contains. Type the number of the Street you want to bet on and hit Enter to bring up the betting prompt, then enter the amount you want for that bet. There are 12 Streets across the table.

Corner Bets

'co': Typing 'co' and hitting Enter will open Corner Betting mode. Corners are groups of 4 adjacent numbers that are touching on the table. Corner 1 contains the numbers 1, 2, 4, and 5 for example. Each corner will be described in the prompt. There are 22 Corners to choose from across the table.

Line Bets

'l': Line bets are bets on two adjacent streets, so vertical blocks of 6 numbers. There are only 6 lines on the table; Line 1 contains the numbers 1 through 6, for example.

Finish Betting and Spin the Wheel!

Once you are done placing your bets, typing 'x' and hitting Enter from the Place Your Bets prompt screen will spin the wheel. The ball will land on a number, your winning bets will get added to your bank, your losses will be subtracted, and all your bets are cleared and ready for the next round of betting.

Verbose mode will call out the details of the spin, such as Red or Black, Even or Odd, High or Low, the Column, and the Street the number was in.

Roulette Bets

Here are more details about the individual bets you can make in both this game and Roulette in general.

Outside Bets

These bets are located outside the grid of numbers on the table, hence "outside" bets.

Red/Black

Bet that the upcoming number is either Red or Black.

Even/Odd

Bet that the upcoming number is Even or Odd.

High/Low, 1st and 2nd Half

Bet that the upcoming number is either Low (1-18) or High (19-36). Also known as the 1st and 2nd Half of the numbers.

Columns

Any or all of the 3 columns that make up the Roulette number grid can be bet for the upcoming number.

  • Column 1
    • Contains numbers 1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34
  • Column 2
    • Covers numbers 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35
  • Column 3
    • Covers numbers 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36

Dozens

These bets cover the first, second, and third dozens of the numbers that make up the Roulette grid.

  • First Dozen: 1-12
  • Second Dozen: 13-24
  • Third Dozen: 25-36

Inside Bets

All of these bets are placed within the grid of numbers and on the numbers themselves, hence "Inside" bets.

Straight Up

A vet on one specific number in the grid. Any or all of the numbers between 1-36 can be bet on individually.

Splits

A bet on two adjacent numbers. The numbers must be touching on the grid, but can be made in any direction. 1-2 and 1-4 are valid Splits, for example.

Streets

A bet on a vertical row of three numbers; 1-2-3, 4-5-6, and so on.

Corners

A bet on four numbers that all share the same corners/are touching. 1-2||4-5, 29-30||32-33, etc.

Lines

Betting on 6 numbers in two vertically adjacent rows. 1-2-3+4-5-6, for example.

Top Line

A bet that covers the 0, 00, 1, 2, and 3 together.

Basket

A bet that covers 0, 1, 2, and 3 together.

Snake

A bet that covers the numbers 1, 5, 9, 12, 14, 16, 19, 23, 27, 30, 32, and 34. So named because of the snake-like pattern that the bets create across the table when placed.

Roulette Number Grid Layout

Navigate this table to check out how the numbers are arranged across the game table. On github, this works better with screen readers with the browser set to Reader mode.

Accessible depiction of the Roulette number grid
Green 0/00Red 1Black 4Red 7Black 10Black 13Red 16Red 19Black 22Red 25Black 28Black 31Red 34
Black 2Red 5Black 8Black 11Red 14Black 17Black 20Red 23Black 26Black 29Red 32Black 35
Red 3Black 6Red 9Red 12Black 15Red 18Red 21Black 24Red 27Red 30Black 33Red 36

Pay Table

Roulette Outside Bets and Payouts
BetPayout
Red/Black1:1
Even/Odd1:1
High/Low1:1
Columns2:1
Dozens2:1
Roulette Inside Bets and Payouts
BetPayout
Straight Up/One Number35:1
Splits17:1
Streets11:1
Corners8:1
Lines5:1
Top Line6:1
Basket6:1
Snake2:1

Enjoy, and thanks for playing!

ballstothewheel's People

Contributors

marconiusiii avatar

Watchers

James Cloos avatar  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.