Skip to content

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

License

Notifications You must be signed in to change notification settings

psprawka/Fillit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 😊

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published