I have to write a game application that simulates a roulette table. The roulette table has 36 numbers (1 to 36) that are arranged in three columns of 12 rows. The first row has the numbers 1 through 3, the second row contains 4 through 6, and so on. There is also a number 0 that is outside the table of numbers. The numbers in the table are colored red and black (0 is green). The red numbers are 1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,… 36. The other half of the numbers are black. In a simplified set of rules, players can bet on an individual number(including 0), the red numbers, the black numbers, the even numbers, the odd numbers, the numbers 1 to 18, the numbers 19 to 36, and any of the columns or rows in the table.The users should be allowed to enter one of the bets, and the application uses the rand function from <cstdlib> as the basis for computing the number that would be rolled on the wheel. It then compares this number to the bet, and reports whether it won or lost.
I'm trying to get start on writing this code but I really don't understand the game of roulette and how it work. And I don't know what or how many methods I need for my constructor class. If anybody know this game pretty well please explain the rules to me. thanks