Accessible Terminal-based Roulette game
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.
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.
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!
- '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.
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.
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.
'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.
'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.
'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.
'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.
'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.
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.
Here are more details about the individual bets you can make in both this game and Roulette in general.
These bets are located outside the grid of numbers on the table, hence "outside" bets.
Bet that the upcoming number is either Red or Black.
Bet that the upcoming number is Even or Odd.
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.
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
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
All of these bets are placed within the grid of numbers and on the numbers themselves, hence "Inside" bets.
A vet on one specific number in the grid. Any or all of the numbers between 1-36 can be bet on individually.
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.
A bet on a vertical row of three numbers; 1-2-3, 4-5-6, and so on.
A bet on four numbers that all share the same corners/are touching. 1-2||4-5, 29-30||32-33, etc.
Betting on 6 numbers in two vertically adjacent rows. 1-2-3+4-5-6, for example.
A bet that covers the 0, 00, 1, 2, and 3 together.
A bet that covers 0, 1, 2, and 3 together.
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.
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.
Green 0/00 | Red 1 | Black 4 | Red 7 | Black 10 | Black 13 | Red 16 | Red 19 | Black 22 | Red 25 | Black 28 | Black 31 | Red 34 |
Black 2 | Red 5 | Black 8 | Black 11 | Red 14 | Black 17 | Black 20 | Red 23 | Black 26 | Black 29 | Red 32 | Black 35 | |
Red 3 | Black 6 | Red 9 | Red 12 | Black 15 | Red 18 | Red 21 | Black 24 | Red 27 | Red 30 | Black 33 | Red 36 |
Bet | Payout |
---|---|
Red/Black | 1:1 |
Even/Odd | 1:1 |
High/Low | 1:1 |
Columns | 2:1 |
Dozens | 2:1 |
Bet | Payout |
---|---|
Straight Up/One Number | 35:1 |
Splits | 17:1 |
Streets | 11:1 |
Corners | 8:1 |
Lines | 5:1 |
Top Line | 6:1 |
Basket | 6:1 |
Snake | 2:1 |
Enjoy, and thanks for playing!