Quote from: Bally6354 on December 27, 2012, 03:50:34 PM
I am impressed and wish I had this kind of ability! It's something I never really thought about learning but maybe I should start. I am going to take a few courses in 2013 just to get my focus away from roulette all the time and some kind of programming course is maybe a good idea.
You won't find an easier language to learn or program with. This is LiveCode made by Runtime Revolution. These examples are attached to a button on the screen. One example has comments, the other does not. If you have no plans on making a living from your programming hobby then this is the very best way to go.
on mouseUp
put "" into field "results"
repeat with i = 1 to 50
put random(37) into thisSpin
put "1,2,3,4,5,6,7,8,9,10,11,12," into hList
if thisSpin is among the items of hList then
put "| X | -- " after field "results"
put i & return after field "results"
end if
end repeat
end mouseUp
on mouseUp -- starts the mouse click function
put "" into field "results" -- clears the results text field
repeat with i = 1 to 50 -- causes 50 spins
put random(37) into thisSpin -- selects a random spin
put "1,2,3,4,5,6,7,8,9,10,11,12," into hList -- sets the bets that win
if thisSpin is among the items of hList then -- checks for a winner
put "| X | -- " after field "results" -- fills in chart
put i & return after field "results" -- adds the line number
end if -- ends the if/then condition
end repeat -- ends the 50 repeats
end mouseUp -- ends the mouse click function