Probability, Python, Games, Markov Chains, Data Science.
https://en.wikipedia.org/wiki/Absorbing_Markov_chain To compute the win/loss probability in Python we will rely solely on the scientific computing library Numpy. First, we define the number of tiles, number of dice and the number states in the game as 9, 2 and 513 respectively. num_tiles = 9