- #1
bitttttor
- 11
- 0
Hello All,
I'm programming an applet and run over a problem I can't solve (hope this is the right place to post it):
Having a 4 by 4 2d grid and 8 lineal elements: a) 1 of 4 square, b) 1 of 3 squares, c) 3 of 2 squares, and d) 3 of 1 suare:
_grid:
XXXX
XXXX
XXXX
XXXX
_elements:
a) XXXX
b) XXX
c) XX - XX - XX
d) X - X - X
How many combinations are possible? Any piece can be rotated by 90° and any combination must use all the available elements.
Any help on how to tackle the problem will be much appreciated... thank you !
I'm programming an applet and run over a problem I can't solve (hope this is the right place to post it):
Having a 4 by 4 2d grid and 8 lineal elements: a) 1 of 4 square, b) 1 of 3 squares, c) 3 of 2 squares, and d) 3 of 1 suare:
_grid:
XXXX
XXXX
XXXX
XXXX
_elements:
a) XXXX
b) XXX
c) XX - XX - XX
d) X - X - X
How many combinations are possible? Any piece can be rotated by 90° and any combination must use all the available elements.
Any help on how to tackle the problem will be much appreciated... thank you !
Last edited: