|Subject:||Re: [Bug-gnubg] random dice generator? hahahaaa|
|Date:||Tue, 22 Aug 2017 00:34:11 -0700|
On Sat, 19 Aug 2017, tchow wrote:
The other feature that might be interesting is to allow players to
receive a handicap, not by having the computer make mistakes, but by
having the dice rigged in their favor.
IMHO, the only thing worth implementing at the gnubg level would be the
possiility to call an external RNG provided as a python function.
I'm not familiar with the python-C interfaces, and currently this is used the
other way, accessing internal gnubg routines and data structures from
python scripts, but I assume the reverse is possible.
Then anyone interested enough could use his preferred algorithm, or a driver for
this kind of device : http://ubld.it/truerng_v3
Simple unbalanced dice (SHG style) would be easy to implement, schemes like the
one described by Timothy would be trickier, needing to evaluate the 21 rolls
before choosing one, but certainly doable (we could get rid of the ridiculous
"dice manipulation" option and offer it as an example python code :-).
|[Prev in Thread]||Current Thread||[Next in Thread]|