I'm working on a game right now with hex tiles, where each tile has 3 link sides. Trying to find all the different distributions of the 3 linking sides, I got 20 different permutations (clockwise from type 1 link):
123000 120300 120030 120003
102300 102030 102003
100230 100203
100023
132000 130200 130020 130002
103200 103020 103002
100320 100302
100032
Am I missing any? I'm thinking for 4 links there would be 60 perms, for 5 or 6 there would be 120, and for 2 there would be 5 (obviously with 1 link there is only 1 permutation).
I'm thinking for a tile with x sides and n links there are ((x-1)!)/((x-n)!) permutations when n is less than or equal to x.
Am I right on this? It's been a while since I did this math.
PS. What's the math doing this with a polyhedral die? It seems like it's just ((x-2)!)/((x-n)!).
Thanks for the help guys!
NanDeck, your program looks awesome, looking forward to trying it.