Generating a series of tetris puzzle

Hi guys, I’m fairly new to grasshopper but I was wondering if it is possible to generate a series of three dimensional tetris puzzle? I have made a series of tetris pieces and would like to generate a series of combinations between the different pieces.

As grasshopper allows you to script yes it is possible. But it will be not simple with legacy components.
The difficulty is to find the good algorithm.
What are your constrains
Holes no holes
Limited pieces vs infinity …

Hi thanks for replying! I’m just trying to generate some forms to use as diagrams. The constraints are holes and limited pieces. Yeah the tricky bit is to link the components to the algorithm.