clock_solitaire_simulation_test


clock_solitaire_simulation_test, a MATLAB code which calls clock_solitaire_simulation(), which simulates the game of clock solitaire. The deck is dealt into 13 piles of 4 cards each. Repeatedly, the top card a pile is removed, and its rank indicates the next pile to consider. Game continues until an empty pile is reached. The game is won if all piles are empty. The quantity of interest is the probability of winning.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Related Data and codes:

clock_solitaire_simulation, a MATLAB code which simulates the game of clock solitaire. The deck is dealt into 13 piles of 4 cards each. Repeatedly, the top card a pile is removed, and its rank indicates the next pile to consider. Game continues until an empty pile is reached. The game is won if all piles are empty. The quantity of interest is the probability of winning.

Source Code:


Last revised on 15 April 2022.