21 game: Difference between revisions
→{{Header|FutureBasic}}
Line 2,793:
local fn play( add as byte )
if sum + add > 21 then beep : exit fn
fn show( add )
if sum < 21
if (skill + maybe) > 0 then num = best(sum mod 4) else num = rnd(3)
if sum + num > 21 then num = 21 - sum
timerbegin 1.0, NO
fn show( num ) //Show computer's play
timerend
|