Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Give all the polyominoes of a specified rank
ResourceFunction["Polyomino"][rank] gives all polynominos of specified rank. |
Tetris consists of rank-4 polyominoes:
In[1]:= | ![]() |
Out[1]= | ![]() |
If there exists a rank-5 Tetris, it should look like this:
In[2]:= | ![]() |
Out[2]= | ![]() |
Slow counting with calculating:
In[3]:= | ![]() |
Out[3]= | ![]() |
One can count these faster by giving an argument that is not an integer until evaluated:
In[4]:= | ![]() |
Out[4]= | ![]() |
Fast statistics:
In[5]:= | ![]() |
Out[5]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License