A very messy but totally functional implementation of Knuth's Dancing Links algorithm built to determine the best fit of a given set of tetris pieces on a square grid of smallest possible dimension.
A very messy but totally functional implementation of Knuth's Dancing Links algorithm built to determine the best fit of a given set of tetris pieces on a square grid of smallest possible dimension.