in reply to Re: Wordfeud racks
in thread Wordfeud racks

Thanks for your suggestion, But I can't see how to make A::C list only unique racks.

Example
If my bag of tiles contained only 3 tiles A A B
And I wanted to list all possible racks.
I would end up with only 2 racks:

AA
AB

A::C will give me all combinations of the "physical" tiles:

A1A2
A1B
A2B

Can you please elaborate a little on how to use the mapping to solve this problem?

/L

Replies are listed 'Best First'.
Re^3: Wordfeud racks
by daxim (Curate) on Jul 30, 2013 at 13:11 UTC
    A::C will give me all combinations of the "physical" tiles
    But that's exactly what you need to calculate the probability!

    To be able to distinguish duplicates: unmap the tiles again, then sort and join each rack, finally List::MoreUtils::uniq.