Nice site, excellent idea!
I'd really like to see code for as much of the game as possible, because the current explanation is ambiguous at times (or at least, unclear).
Examples of things that aren't clear to me:
1) In the "What is the bonus?" section in the FAQ, what happens when the 100 bit player is the only player to cash out before bust? On the one hand, the explanation in the section claims the bonus rewarded to this player is 2.5 bits. On the other hand, it is claimed in another section that the entire bonus pool is always distributed.
The bonus pool is *always* given out on every single game (where the bust isn't 0x). If there's money left over after giving it to people who have cashed out, it is just equally divided amongst the remaining players based on their wager
2) Players A,B,C stake 100 bits each. The three of them cash out at the exact same multiplier (say via script). Once again, the "What is the bonus?" section in the FAQ does not adequately explain who gets what bonus. It seems intuitive that each would receive a bit.
Yeah, if two people cash out at the same multiplier they are given the same amount of bonuses.
Now what happens if A instead staked 101 bits, and once again they all cashed out at the same multiplier? Does A now receive the entire bonus?
They would each be given exactly 1% of what they wagered. Which means B and C would get 1 bit, and A would get 1.01 bits.
3) In the game itself, what does the bonus % column indicate?
The amount of bonus they will get as a % of their wager
Somehow I'm even more confused now. The fact that "if there's money left over after giving it to people who have cashed out, it is just equally divided amongst the remaining players based on their wager" doesn't appear to be mentioned anywhere, and "equally divided amongst the remaining players based on their wager" seems like an oxymoron to me.
The underlying issue is that I can't seem to extrapolate the general method from these examples.
Would you care to address the general case, which I have outlined below (as I understand it)?