Rouleet Wheel Statistics

Monday, July 24,2017

It was kinda hard trying to look for Statistics online using the school internet and using the school computer because they blocked the website. It's inappropriate to use the website because it involved with gambling so in the end I found some data but it would let me press the link so this is what I have so far.
http://www.knowyourluck.com/roulette.html Their are more information online
Their wasn't a lot of data so I would work at it on home since it won't block the site on one of my computer.

Aim
Success
Not Success
Single
2.63% (1/38)
97.37% (37/38)
Two Numbers
5.26%(2/38)
94.74% (36/38)
Three numbers in a row
7.89%(3/38)
92.11% (35/38)
Four Numbers
10.53% (4/38)
89.47% (34/38)


So I am now memorizing the codes that would need to be add in the raspberry pie for the coding to add in the roulette wheel. I will be  looking at Tinker in the website. https://github.com/jerseycoder/RouletteSpinTracker/blob/master/rouletteTk.py
In the beginning I would have to Open Tinker and add it in the Terminal
from Tkinter import *
import tkFont
from PIL import ImageTk, Image
it would open a window. 
When I want to add the numbers to the roulette.

































or a number, determine what color it should be displayed as
def numColor(numStr):
if numStr in ("1","3","5","7","9","12","14","16","18","19","21","23","25","27","30","32","34","36"):
return "red"
if numStr in ("0","00"):
return "green"
else:
return "black"
# For a number, determine what alignment (left or right) it should have
def alignNum(numStr):
if numColor(numStr) in ("green","black"):
return 150
else:
return 275

Comments