Learn Roulette Video Source & Info:
Video shows you how to make simple Roulette game for Android.
It may be a little hard to understand the part where I set the ranges of the numbers but I’ll try to explain. The roulette has 37 sectors. The whole circle is 360 degrees. That makes 360 / 37 = 9.72 degrees each of the sectors. The first sector (number 32 red) starts from half the previous sector (number 0) and is 9.72 degrees. That means it starts from 9.72 / 2 = 4.86 and ends in 4.86 + 9.72 = 14.58 degrees. In other hand 14.58 equals 3 times 4.86. So i pick half the sector 4.86 as a FACTOR. Based on this factor we calculate all the sectors. The first one as we said is from FACTOR to FACTOR * 3. Second sector (number 15 black) is from FACTOR * 3 to FACTOR * 5. And this continues for all of the sectors. Only the sector 0 is a little bit different. It starts from 360 degrees minus FACTOR and ends with 0 degrees + FACTOR. You can see all the sectors in the video.
If you learn something press the Like button!
If you want to see more tutorials like this press the Subscribe button! It’s FREE!
Source: YouTube
https://play.google.com/store/apps/details?id=com.ludacriz.spin
Here is the source code https://github.com/phillip-ables/android-roulette-game
Hi.. thanks for the turorial, can you please make another tutorial about adding new feature on this app that user can directly spin the wheel? Thanks
Thank you very much kind sir, you've helped another rookie programmer. May you be successful in life. 🙂
i need source code . Can you help me?
How can i get factor with different colors..
Hi, i enjoyed this video. Thanks
I would like contact you, even if by email. Feel free to email me on archietienne86@gmail.com, i need you.
Thank you for your helpful video !!
Sir how to work 10 sector base rollette app than result is 4,2,8,3,9,7, 8,8,7, 0,8, 3,9,8,0, 3,7,4, 1,1 and continue
Bro add your voice plzz