316 reputation
16
bio website morethannothing.co.uk
location United Kingdom
age 26
visits member for 3 years, 7 months
seen Apr 23 '13 at 16:08
I am a second year Computer Science who has been programming for 8 years in a variety of languages spanning from BASIC to C#.

Jul
26
awarded  Scholar
Jul
26
accepted What happens to the dynamite when you die?
Apr
24
awarded  Student
Apr
24
asked What happens to the dynamite when you die?
Dec
21
awarded  Yearling
Jun
21
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.
Jun
20
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.
Jun
20
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.
Jun
20
comment How many spins does it take to complete a game of Hi Ho! Cherry-O?
@Mag That's achieved by the bounded type.
Jun
20
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.
Jun
20
awarded  Editor
Jun
20
revised How many spins does it take to complete a game of Hi Ho! Cherry-O?
added 1657 characters in body
Jun
20
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.
Jun
20
answered How many spins does it take to complete a game of Hi Ho! Cherry-O?
Jun
20
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.
May
25
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.
Feb
22
answered Does anyone have a way to modify Ticket to Ride to accommodate six people?
Feb
15
awarded  Supporter
Jan
27
awarded  Teacher
Jan
25
answered Fluxx - What counts as a 'play'?