Page 2 of 2
Re: Primarly and secondary Objectives
Posted: Wed Apr 08, 2009 4:06 am
by yeti_c
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.
Re: Primarly and secondary Objectives
Posted: Wed Apr 08, 2009 9:14 am
by Qwert
mine head is hurting of all these numbers.
Can someon give me formula,where i get all 35 combinations?
Or if you can see some mising combinations,can give me.
Still a lot of coding to be done
Actualy,i think that these is no problem.
Re: Primarly and secondary Objectives
Posted: Wed Apr 08, 2009 12:16 pm
by MrBenn
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

Re: Primarly and secondary Objectives
Posted: Wed Apr 08, 2009 2:38 pm
by john9blue
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...

Re: Primarly and secondary Objectives
Posted: Wed Apr 08, 2009 4:07 pm
by Qwert
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...
Great thanks john,i never think of using numbers.

Re: Primarly and secondary Objectives
Posted: Thu Apr 09, 2009 3:41 am
by thenobodies80
You need 1 shield + 3 combinated?
So you have 1 shield fixed and 7 variabiles...
I think equals to 35
C
7,3= 7x6x5 / 3x2x1 =
35you have 35 possible simple combinations.If you have some ripetitions the result is 84 but i think it isn't your case.
If you'll need it for future the formula is:
C
n,k= n(n-1)(n-2)...(n-k+1) / k(k-1)(k-2)...1
TNBDS
Re: Primarly and secondary Objectives
Posted: Thu Apr 09, 2009 3:42 am
by yeti_c
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

Yeah - I thought I remembered that correctly...
I guess I should've flowed that into the Tut a long time ago!
C.
Re: Primarly and secondary Objectives
Posted: Thu Apr 09, 2009 2:44 pm
by Qwert
well i finish with XML and Grapic changes,nowi need to know next step, i belive that lack will need to lock map and to waith that all present games,be finished,and then to upload new changes
Re: Primarly and secondary Objectives
Posted: Thu Apr 09, 2009 5:04 pm
by MrBenn
I don't really want to merge this thread with the map development thread... [locked]