From played patience we put off two twain. After it new cards will open. The program formed the matrix P , we can develop, make this program to reject not solved layout, for example, in one column there are three or four identical cards. There is more difficult not solved layout, two pairs of cards criss-cross cover each other. It will be useful for working in Mathcad with matrix operators and functions.
More clever policy is choice of a card from three or four identical open cards.
It is considered that the patience Solitaire , including to the standard Windows, is solved all time and it does not depend on initial layouts Very often one can do everything perfect when one do it playing and with great pleasure, for example, walks, speaks, swims and etc. Author, for example, learned to count before school with help of pack of cards. Queen is three, king is four and so on. Now author tells to his students, that the main thing you get from study is pleasure and only after it knowledge. Man spends his life all for nothing if he does not get pleasure from his work, study.