21 ms·
If you're having trouble making sense of it, as I did at first, here's what I've learned: * You enter a list of "tiles" in the box, on either a square grid (fo
by dgreensp 16y ago
If you're having trouble making sense of it, as I did at first, here's what I've learned:
* You enter a list of "tiles" in the box, on either a square grid (four characters per tile) or hex grid (six characters).
* Upper case letters (like "A") represent pointy sides, and lowercase letters (like "a") are convex sides. You can use A through D.
* Numbers 1-4 are "flat" sides, which makes sense as they have no case.
* A hyphen seems to be a second kind of whitespace that has to match itself, unless it has some other special meaning.
* The program, while running, searches for a way to fill the entire view area with a consistent pattern, though not necessarily filling every grid cell with a tile. Sometimes it finds one quickly, and sometimes it struggles for a while.
The shapes of the "pieces" are strange-looking enough that I didn't realize at first they are simply a function of the input.
Very cool!