/Fillit

Recursive solver for tetris, but the one you haven't seen before 🤔

Primary LanguageCMIT LicenseMIT

Fillit - tetris that you've never played before 🎲

The goal of this project is to make the smallest possible square with a given list of tetriminos. There may be the holes in the solution, as long as it is the first possible solution when placing them from the top left.

How to run fillit?

Fillit takes only one parameter - file (which has to be written in a very specific format) with the bricks to assemble. Each tetromino is represent by 4x4 block and they consist of 4 # pieces.

make
./fillit [filename]

Example of a file:

....
####
....
....

.###
...#
....
....

....
..##
.##.
....

...#
...#
...#
...#

....
....
##..
.##.

##..
.#..
.#..
....

....
###.
.#..
....

....
....
.##.
.##.

My score for fillit: 100/100 😊