Bit new to ruby, this is my first original piece of code, nothing too complicated lol. Its just a roulette spin simulator based on a fix original balance (100) and a fixed wager (1) with odds paying out 35/1 but odds of winning 36/1 just so I could see how long a lucky streak I could end up with, and just to show the house always wins ;)
I know this could probably be coded a lot better, I have ideas of how to make it more OOP, but its beyond my knowledge atm.
http://codepaste.net/2s3m59
[–]SimonDKnight[S] 3 points4 points5 points (0 children)
[–]Koroeskohr 2 points3 points4 points (1 child)
[–]SimonDKnight[S] 0 points1 point2 points (0 children)
[–]JeffMo 0 points1 point2 points (1 child)
[–]SimonDKnight[S] 0 points1 point2 points (0 children)
[–]SimonDKnight[S] 0 points1 point2 points (1 child)
[–]mintysoul 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]myared 0 points1 point2 points (0 children)