So, you need to add the following dependencies in the adle file of your Android Application Project : To make easier our development by reducing the boilerplate code, we are going to use the Butter Knife library. You can also watch this part of the tutorial on YouTube : In this part of the tutorial, you are going to learn how to display the wheel and how to spin it by using the Android Animation API available in the standard SDK.
When the wheel stops, we look at the position of the ball on the sectors of the wheel.Īfter that, the croupier pay players if they won their bets according some rules we will see in the second part of this tutorial when we will implement the bets on our Roulette Game. Then, a croupier spins the wheel in one direction and a little ball in the opposite direction. In the Roulette Game, players may choose to place bets on either a single number, various groupings of numbers, red or black colors, whether the number is odd or even, or if the numbers are high (between 19 and 36) or low (between 1 and 18). But, in that tutorial, we are going to create a French / European style Roulette Game. You must note that the American style roulette has a double zero. Roulette is a casino game with a wheel having numbers from 0 to 36.