A minimalistic dice rolling program
A very simple application for rolling dices.
Intended for use by roleplayers. It is written in C using GTK+. Glade project is also providided with the source. Gdado relies on a simple and clean user interface.A few different type of rolls are provided.
The code has support for internationalization.
License: free
Requirements: Gnome libraries.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | no | no | no | no | yes |
Submitted by Flamma on 2007-03-26.

I think we are not the only ones, as the program has been downloading for more people than we expected, and even we have received thanks via mail and contributions such as translations. Some people have made packages that have been included in some distro's repositories, and other have compiled it in mobile devices that are more confortable for them.
But, as I said, if you don't find it useful, don't waste your time and proceed for next game.
The form:
hdado <script> function make_string(dices,sides) { final_string = ""; total = 0; for(iter=0;iter < dices;iter++) { num = roll_dice(1,sides); total += num; final_string += ((iter==0)?"":" + ") + num; } final_string += " = " + total; return(final_string); } function roll_dice(min,max) { numSides = max - min; aleat = Math.random() * numSides; aleat = Math.round(aleat); return parseInt(min) + aleat; } Dices : ^ v
Sides : ^ v
Roll
Result :
The script:
<html> <head> <title>hdado</title> <script> function make_string(dices,sides) { final_string = ""; total = 0; for(iter=0;iter < dices;iter++) { num = roll_dice(1,sides); total += num; final_string += ((iter==0)?"":" + ") + num; } final_string += " = " + total; return(final_string); } function roll_dice(min,max) { numSides = max - min; aleat = Math.random() * numSides; aleat = Math.round(aleat); return parseInt(min) + aleat; } </script> <style> #num_dices, #num_sides { width:3em; } #dices > span, #sides > span, #roll { border:solid thin; } </style> </head> <body> <form action="#"> <span id="dices">Dices : <input id="num_dices" value="1"/> <span onClick="javascript(num_dices.value++)">^</span> <span onClick="javascript(num_dices.value=((num_dices.value>1)?(num_dices.value-1):1))">v</span> </span> <br /> <span id="sides">Sides : <input id="num_sides" value="6"/> <span onClick="javascript(num_sides.value++)">^</span> <span onClick="javascript(num_sides.value=((num_sides.value>1)?(num_sides.value-1):1))">v</span> </span> <br /> <span id="roll" onClick="javascript(result_text.value=make_string(num_dices.value,num_sides.value))">Roll</span> <br /> <span id="result">Result : <input id="result_text" value="" /></span> </form> </body> </html>I think that gdado is advocating smallnes, or at least, that was our intention. Do you think that minimal would be a better word? Anyway, thanks for the advice.
Someone should give this five stars if for no other reason than that it's even more of a stupid idea than that Usenet freak Paul Panks' poorly-written text adventures.
Then I see google and I think "If so many people have added it to repos, to compillations and even to distros (I only published it in sf.net and LGT), it must that it is useful to somenone".
Then, I read my mail, and read from people that give us thanks, and people who wants to collaborate and I think "Definetely, it is useful for someone". And I see that someone else sent the update news and I think "Even in LGT, there is someone interested".
So, I reach to the conclusion: "There is people who complains, and people who works".
We didn't want to make a killer app. We did gdado because it is useful for us. And we published it because we think that, not a bunch of users, but someone could want it also.
Hint: Nobody is asking you to use gdado instead of your calculator.
Gilberto
Excellent game, If we were in 1978 you could be rich with it.