**snakes_probability_test**,
a MATLAB code which
calls snakes_probability(), which
computes the game length probabilities for Snakes and Ladders,
by Desmond Higham and Nicholas Higham.

The computer code and data files made available on this web page are distributed under the GNU LGPL license.

snakes_probability, a MATLAB code which computes the game length probabilities for Snakes and Ladders, by Desmond Higham and Nicholas Higham. simulates N tosses of 2 dice, making a histogram of the results.

- snakes_probability_test.m, calls all the tests.
- snakes_probability_test.sh, runs all the tests.
- snakes_probability_test.txt, the output file.

- snakes_transition.png, the sparse matrix associated with the computation.
- snakes_gamelength_pdf.png, the probability density function for the game length.
- snakes_gamelength_cdf.png, the cumulative density function for the game length.