I have a task to write a program which generates all possible combinations of tiling domino on a $4 \times 4$ grid. I have found many articles about tilings, but it is for me quite difficult and I didn't find any article with an algorithm that allows generating all possible combinations.
Could someone give me some tips? How should I start with that? Thanks in advance.
Do this recursively:
Some backtracking is necessary along the way. You can easily grasp the idea by looking at the following Python script:
In Python:
Here is the output, 36 solutions in total (with dominoes numbered from 1 to 8):