by eterm · 11y ago · 0 comments
But knowing some statistics, the entire of Snakes and Ladders is an absorbing markov chain [1] and can be very quickly analyzed as such without having to resort to sampling.
Random sampling is easy but take a step back and the entire state space is an integer in [1,100]. (Actually there are fewer than 100 states because the bottom of a ladder or top of a snake isn't a state).
The state transitions are very easy to model, they're just 1/6 to each of the 6 next states (sometimes fewer, in which case they just add).
Having constructed our markov chain, we can instantly and accurately get back our time-to-victory from each square.
(Neither plays the "bounce-back" rule always demanded by my friend's little sister!)