Thursday, May 31, 2018

algorithm - How can I ensure a grid can be filled with Tetris-like pieces?


I'm thinking of making a puzzle game where the objective is to fill a grid with shaped puzzle pieces (for example, the classic Tetris shapes).



How can I go about generating a set of pieces that can be guaranteed to be used to fill the grid, leaving no gaps? How could I adapt this algorithm to scale the difficulty of the resulting puzzle?




No comments:

Post a Comment