Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Dice with parser example
Dice with parser example [message #19307] |
Tue, 25 November 2008 13:03 |
RHFaktor
Messages: 5 Registered: November 2008
|
Promising Member |
|
|
Hello
Here is very simple example of dice combined with parser. Parameters of dice can be changed by right click menu.
1D6 == throw with one 6 sided dice (output in range 1-6)
2D9 == throw with two 9 sided dices (output in range 2-18)
you can specify more complex rules: abs(1D6-1D6)D20/5 or 1D9*10+1D9
It is only on your imagination.
/radek
p.s.
Any feedback or suggestion is welcome.
-
Attachment: Dice.zip
(Size: 2.47KB, Downloaded 479 times)
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:34:06 CEST 2024
Total time taken to generate the page: 0.02317 seconds
|