/42_fillit

Primary LanguageCMIT LicenseMIT

fillit

Can you feel it?

Group project with dbutterw

Fillit is the second mandatory project after get_next_line. The purpose of this project is to make the smallest possible "square" (which can contain holes) with a given list of tetriminos, but the disposition must be as such that it returns the first possible solution when placing them recursively from the top left.

Compiling

Run make, an executable called fillit should compile directly. Please submit an issue if you run into any.

Usage

./fillit [file]

Example:

~ ./fillit samples/test_8

.AABB..
AACCB..
.CC.BDD
.EE.DD.
EEFFGG.
.FFGGHH
....HH.