+ 2

Any feed back is appreciated!

Roulette code, enter an integer between 0 and 36 inclusive and a colour( red or black) separated by a space. thanks! https://code.sololearn.com/cHRu8VdS7jEx/?ref=app

24th Apr 2017, 6:36 AM
Brad
Brad - avatar
2 Answers
+ 8
It seems like the resultant colour will never be green? Is it supposed to work like this? 😅
24th Apr 2017, 9:25 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Honestly I started to add a chance to get "0 green" like on an actual roulette wheel but I haven't really figured out how to I didn't go farther than declaring the variable..
24th Apr 2017, 4:24 PM
Brad
Brad - avatar