Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // calculate expected value per guess (3 rounds)
  2.  
  3. for i in r1chance:
  4. for j in r2chance:
  5. for k in r2chance:
  6. guess = i + ' ' + j + ' ' + k
  7. total = 0
  8. for x in r1chance:
  9. for y in r2chance:
  10. for z in r2chance:
  11. result = x + ' ' + y + ' ' + z
  12. payout = get_scaled_payout(guess, result)
  13. p = r1chance[x]*r2chance[y]*r2chance[z]
  14. total += payout*p
  15. print total, guess
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement