Jump to content

RPG attributes generator: Difference between revisions

→‎{{header|Commodore BASIC}}: Don't need to fully sort the dice, just put the smallest one last
(→‎{{header|Commodore BASIC}}: use temp var for sort)
(→‎{{header|Commodore BASIC}}: Don't need to fully sort the dice, just put the smallest one last)
Line 1,245:
430 print:print "Excellent. Good luck on your adventure!"
440 end
450 rem "sort" dice - really just put smallest one last
460 for x=0 to 2:for y=x+1 to 3
470 if di(x)<di(yx+1) then t=di(x):di(x)=di(yx+1):di(yx+1)=t
480 next y,x
490 return</lang>
1,480

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.