SlotMachines -
basically revolves a power random number generator. Creates a random number, something in the hundreds of millions.
This number is then divided by the number of virtual slots that are found on the reels. The remainder is taken, and used to find which virtual slot is displayed.
In reality on each of the reels there is probably only about 21 real slots. The virtual slot is a number, usually 64, 128, or 512. To find the real slot that this virtual slot relates to, a table is consulted. These tables are actually different from reel to reel (even on the same machines). This is where the fine tuning of the slot machine will comes into play. The numbers don't have to line up in any order for the virtual reels.
One article found said that the Nevada gaming commision has rules about how many times more on slot can be accessed compared to the slots next to it. To quote:
So if a jackpot symbol were weighted by 1 and both bordering blanks were weighted by 6 then there would be 12 near misses for every one time the reel stopped on the jackpot symbol. This would be the maximum allowed near miss effect.
So I will attempt to follow those rules as well.
This is supposed to be a large money winner for the casinos mostly, since the odds are always in the houses favor. Coming up with interesting games that will bring people to play these will be required, unfortunately if people are smart they will skip the slotmachines and will instead play something that they have a chance of winning money on.
Can probably find ways to get the images to scroll quickly like they do on a slotmachine, and then slow down as they click into place. That will require a bit more animation skills in javascript, and will have to see how it turns out looking.
I think that's enough for now.
-----------------------
Just another pretty face....
Verastinian Republic - Almighty Dictator
"If in physics there's something you don't understand, you can always hide behind the uncharted depths of nature. You can always blame God. You didn't make it so complex yourself. But if your program doesn't work, there is no one to hide behind. You cannot hide behind an obstinate nature. If it doesn't work, you've messed up." -- Dijkstra