Permutations.
where n is the number of different objects and r of them are to be arranged
i.e.
7!/4!
= (7 x 6 x 5 x 4 x 3 x 2 x 1) / (4 * 3 * 2 * 1)
= 210.
Combinations.
i.e.
210/3! = 210 / (3 x 2 x 1) = 210/6 = 35.
C.
Moderator: Cartographers
Still a lot of coding to be done
lackattack wrote:An objective can only have territories
--lackattack
natty_dread wrote:Do ponies have sex?
(proud member of the Occasionally Wrongly Banned)Army of GOD wrote:the term heterosexual is offensive. I prefer to be called "normal"
by john9blue » Wed Apr 08, 2009 9:38 pm
If:
Lacademonians = 1
Corinthians = 2
Athenians = 3
Boeotians = 4
Lydians = 5
Erythraeans = 6
Macedonians = 7
then:
123、124、125、126、127、134、135、136、 137、145、146、147、156、157、167、234、235、236、237、245、246、 247、256、257、267、345、346、347、356、357、367、456、457、467、567
are the possible combinations.
I really wish Firefox had find and replace...
MrBenn wrote:lackattack wrote:An objective can only have territories
--lackattack
There we have it... looks like you'll need to get your list of 35 groups after all!
edit: I've updated the XML tutorial to make this clear
Users browsing this forum: No registered users