ICR
Reputation
326
Top tag
Next privilege 350 Rep.
Access review queues
 Jul26 awarded Scholar Jul26 accepted What happens to the dynamite when you die? Apr24 awarded Student Apr24 asked What happens to the dynamite when you die? Dec21 awarded Yearling Jun21 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? Good call on finding the paper. I was just about to try and invert the 10x10 matrix. Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? The probability of being on a particular square is dependant on how many spins have happened. It's trivial to calculate the probability of being on a given square after a given number of spins (enumerate all the combinations it takes to get there), but translating that into the probability of being on a given square regardless of the number of spins is difficult and I've not yet worked that out. Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? Shouldn't `rand_lim(spin_vals.size())` be `rand_lim(spin_vals.size() - 1)`? If I make that the results of your code matches with mine :) The reason it worked when you replaced it with `return rand() % limit` is that it should actually be `return rand() % (limit - 1)`, so both the errors cancelled each other out. Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? @Mag That's achieved by the bounded type. Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? The distribution of the random number generator doesn't seem to be what causes the difference between our results. I've swapped in a cryptographic strength random number generator, as well as randomly ordered the sequence of the items chosen - it makes no difference. Jun20 awarded Editor Jun20 revised How many spins does it take to complete a game of Hi Ho! Cherry-O? added 1657 characters in body Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? The probability of being on a particular number are far from being evenly distributed. They're going to be quite heavily skewed towards lower numbers. Jun20 answered How many spins does it take to complete a game of Hi Ho! Cherry-O? Jun20 comment How many spins does it take to complete a game of Hi Ho! Cherry-O? It's also going to be slightly off because of the limits. +2 on 9 is going to make it to 10, and -2 on 1 is going to cap at 0. The effect of these are going to be pretty small though. May25 comment Pre-drawing cards or tiles Only allowing early drawing if the previous player has drawn also avoids some of the confusion I've found occurs when some people draw early and others don't and either people forget who's turn it is, or at the end of the game when someone picks up a tile early when they shouldn't have another turn. Feb22 answered Does anyone have a way to modify Ticket to Ride to accommodate six people? Feb15 awarded Supporter Jan27 awarded Teacher Jan25 answered Fluxx - What counts as a 'play'?