A slight optimization, logical correction for the
Post# of 148164
Quote:
int goodLife () {
living = 1;
partner = findNewPartner();
while (living) {
if (!happy() || !free() || onYouNerve()) {
relaxAndThink();
ditchPartner();
imagineABetterLife();
partner = findNewPartner();
}
waitAndAssess();
}
}
int goodLife ()
{
living = 1;
while (living)
{
partner = findNewPartner();
waitAndAssess();
if (!happy() || !free() || onYouNerve())
{
relaxAndThink();
ditchPartner();
imagineABetterLife();
living = if (onLeronlimab)
then random.binomial( (1-.14 ) )
else random.binomial( (1-.39) );
}
}
}
You get the drift