currently, I have a problem. I'm working on a mahjong solitaire game in MMF2, but I don't how can I "generate" Mahjong-Fields (with a guaranteed solution) like this:
..any idea, how can I do this ?
EDIT: I found the text about the problem but I don't understand the solution:
"To generate a solvable position, a position is built where all 144 stones have the same face. Then a random solver picks pairs until the board is empty. Then, 72 faces (2 of each) are randomly applied to the 72 removed pairs of the original empty board. An exception is when not all stones can be picked and only 1 free stones (and an odd number of non-free stones) remain in the game: no more pairs can be removed. In this case, the algorithm is restarted."