bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Recent RGB posting on "Change Dice" Option


From: Jim Segrave
Subject: Re: [Bug-gnubg] Recent RGB posting on "Change Dice" Option
Date: Fri, 6 Dec 2002 13:46:39 +0100
User-agent: Mutt/1.2.5.1i

On Thu 05 Dec 2002 (12:07 +0000), Joern Thyssen wrote:
> Yup! You can imagine quite few variations of the cheat mode: roll jokers
> for both sides, roll anti-jkokers for both sides, roll jokers for human
> and anti-jokers for bot just to name a few. Also roll  jokers in, say, 25%
> percent of all rolls.
> 
> Some of these a quite interesting: for example jokers or anti-jokers for
> both sides.

set cheat level [0..1]

when deciding if it should cheat, generate a random float x in the range
0 <= x < 1

if x < cheat level, then don't run the cheat code.

-- 
Jim Segrave           address@hidden





reply via email to

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