puzzling puzzle

Blitz3D Forums/Blitz3D Programming/puzzling puzzle

thank GDK but this only takes the case of the block being in a row, the block could be in the form of a square, or an L shape or a verical bar of four and so on...