Open Side Menu Go to the Top
Register
Simple game design... math problem... help! Simple game design... math problem... help!

01-04-2019 , 12:04 PM
Quote:
Originally Posted by nickthegeek
I had the impression that one and only one thing had to happen: there is a single roll
This is the correct interpretation. Either a player dies or the bomb changes status, and one of those things happens every time.

To the others: thank you so much for this very fruitful thread.
Simple game design... math problem... help! Quote
01-04-2019 , 12:14 PM
Quote:
Originally Posted by heehaww
This is hopefully my last code post / bump ITT
Excellent. So if I read the data correctly, a 9 second game (with max 9 'rolls' excluding rerolls) always gives a player just under 20% chance of winning, withe the bomber being a slightly better choice than the saver. Right?
Simple game design... math problem... help! Quote
01-04-2019 , 03:04 PM
Quote:
Originally Posted by David Lyons
Excellent. So if I read the data correctly, a 9 second game (with max 9 'rolls' excluding rerolls) always gives a player just under 20% chance of winning, withe the bomber being a slightly better choice than the saver. Right?
Correct.

And I can explain how being a member of the 40% dog gives you an equal/better chance compared to being a member of the 60% favorite. When the bombers win, more of them are alive than the # of living savers when the savers win. The bombers win before the time is over, whereas the savers usually win via time expiration, by which point more of them are dead.
Simple game design... math problem... help! Quote
01-05-2019 , 07:55 AM
So much for "no more code bumps". The optimizer has a bug if the fair time is under 5 seconds. After finding the upper bound, its first guess shouldn't unconditionally be .75*bound and the step size shouldn't unconditionally be bound/8. Those are correct whenever the bound is greater than 5, otherwise the first guess should be bound/2 and the first step size should be bound/4.

So the first while loop of fairtime() should be:
Code:
    while(true)
        p,q,w = cs(time)
        if p<q begin time*=2 end
        elseif p>q
            if time>5.0
                step = time/8
                time *= .75
            else
                step = time/4
                time /= 2
            end
            break
        else break end
    end
And the same change should be made to teamfairtime().
Simple game design... math problem... help! Quote

      
m