I got quickly disheartened by the use of hacks for constructing such a formspec.
Maybe someone will take that over, I don't know. The logic to determine the poker hands would be fairly easy (iterating through all lists and check the item names). The hard part is constructing the formspec. Anyways do what the fuck you want with this pile of crap.
Download
