Input: a crafting recipe, each ingredients containing its crafting recipe or "not obtainable from crafting table". No item is shown.
Output: an ID. Same item has same ID and different item has different ID. You can assume such an item exist.
Example Input:
OOO OOO OOO
OOO OOO OOO
OOO OOO OOO
OOO OOO
OOO X OOO
OOO OOO
OOO ...
OOO X ..O
OOO ...
Example Output:
Your ID representing iron leggings or golden leggings.
Scoring
- Shortest code wins. Is only a choice if this doesn't make question trivial. (Likely chosen,
x=>x+''is invalid e.g. there're 128 leggings recipe but only 4 types) - Minimize len(code)+introduced item count.
To decide
- Shapeless crafting handle (maybe would force on left-top)