On Mon, Jan 6, 2020 at 3:37 PM James Zeun <[email protected]> wrote:

> So I know bog all about programming. But part of me wouldn't mind dabbling
> a little bit on my M100.
> Someone once said the best way to program, is to have a project in mind.
>
> For me it would a Dungeons & Dragons Dice roller. Select which dice, D4,
> D6, D20 ect, number of dice and the let it roll. Maybe even with graphical
> output.
>
>
Good first project. My recommendation would be, since it works so fast, to
roll them all with each hit of the enter key.  Then the user can decide at
a glance which values he cares about for the roll.

And it's less fiddly since the user doesn't need to do anything except hit
the any key to roll.

Another way would be to INKEY$ poll for two numbers. One for the repetition
and the second for the # sides.

4, 6, 2 for 4, 6 and 20.

Or you could just use the standard specifiers like 2d20<enter> and parse it.

I just noticed you can do this in Google. If you type 5d6 into your search
bar it rolls 5 6-sided dice. Very cool!

-- John.

Reply via email to