I'm trying to write a program in Python for solving PictoLogic games. I'm currently trying to write all possible boards from the horizontal numbers. So, I've got something like this:
lines = [[all possible combos for line 1], [same for line 2], [same for line 3], etc]
This lists are of different lenghts, and I also have another version in which they'll be a dict (with the indexex 1, 2, 3, etc.)
The idea would be to get all possible combinations of boards. For example:
lines = [["aa", "ab", "ba"], ["cc"]]
would lead into
[["aa", "cc"], ["ab", "cc"], ["ba", "cc"]]
That, but with lists of different lenghts and not knowing in advance the number of lines. Thanks in advance, and sorry for bad english