On the very first roll in a day you can decide if you want that player to win or to lose, then choose a secret that produces the desired outcome:
- Choose secret
- Compute roll
- If roll doesn't match desired outcome, go back to step 1
- Publish resulting transaction
This can be extended to the first N rounds in a day. In the following, i denotes the current round number, r_j the roll of round j, t_j the txid of round j:
- if i < N, choose desired roll outcome r_i and publish result
- else if current round == N, choose desired roll outcome r_N
2.a select secret
2.b compute hashes of (t_j + secret) and compare to r_j, if mismatch go back to 2a
2.c publish result
2.d save secret as S - else /* i > N */ compute r_i from t_i + S and publish result
I was wrong with my original estimate of 2^n attempts because I overlooked that you publish r_i. In truth you need about 2^(16*N - 15) attempts.
RE: SteemRollers | Provably Fair SteemDice v.02 (Now we accept STEEM!)