This is intended to be the human readable version of the source code for Dice. This version is intended to work only on the TI-83 Texas Instruments graphic calculator. Also available: Documentation about "Dice" and versions of the program for other calculators and in other formats.
Any line that begins with a backslash is a comment and should not be entered into the calculator. (Comments have been colored green) For an authoritative copy of this program's source code that can be imported to the calculator via a computer, consult the text version of Dice source code for the TI-83, along with the character reference. The special character reference also gives an overview of all non-ASCII characters for the calculator, and shows the menus in which they can be found.
\start83P\ \comment=Program file dated 04/10/96, 18:39 \protected=FALSE \name=DICE ClrHome 0→E 0→F Input "HOW MANY:",A Lbl 1 ClrHome 1→G 0→H Input "NUM SIDES:",B Input "NUM ROLLS:",C F+1→F Lbl 2 iPart(randB+1→D Disp D H+D→H IS>(G,C) Goto 2 E+H→E Pause If A≠F Goto 1 Disp "TOTAL",E Stop COPYRIGHT STEPHEN OSTERMILLER 1996 \stop83P\ |