bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] random dice generator? hahahaaa


From: Philippe Michel
Subject: Re: [Bug-gnubg] random dice generator? hahahaaa
Date: Tue, 22 Aug 2017 08:42:05 +0200 (CEST)
User-agent: Alpine 2.21 (BSF 202 2017-01-01)

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 :-).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]