.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 6th, 2003, 06:06 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Math problem

Ok, I like math but my brain doesn't work well when you get past two dimensions.

I am trying to figure something out. Assume a hypothetical tournament which are all 3 player games. In the tournament everybody has to play everybody else once, but only once.

If there are three players it's easy, A,B,C. What's the next number of players that this format will work for? Can it be done with 9 or do you need 27, or is it some other number completely?

Is there an easy way to figure this out including who has to play who?
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #2  
Old August 6th, 2003, 06:28 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: Math problem

Ok, I figured it out the long way using graph paper.

So I guess then it's x squared, where x is the number of players per game. Not x to the power of x. So with 4 player games it would take 16 people in the tourney and 5 player games would take 25? Does that sound right? Is there a way to verify that without using graph paper?
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #3  
Old August 6th, 2003, 06:59 PM

BBegemott BBegemott is offline
Corporal
 
Join Date: Dec 2002
Location: Lithuania
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
BBegemott is on a distinguished road
Default Re: Math problem

Quote:
Originally posted by Geoschmo:
I am trying to figure something out. Assume a hypothetical tournament which are all 3 player games. In the tournament everybody has to play everybody else once, but only once.
IMHO it can't be done with 3 player games with any number of players (except 3 of course).

Assume 9 players tournament. Nine players will be marked with numbers 1,2,...,9.
I could make only legal 10 triplets:

1) 123
2) 145
3) 167
4) 189
5) 246
6) 278
7) 259
8) 347
9) 369
10)358
11)48?
12)49?

There is no legal substitution for 11th & 12th triplet, because 4th player has already played 1,5,2,6,3,7. Putting any number instead of '?' contradicts to the rule 'everybody has to play everybody else once, but only once'.

Or have I missed some kind of hidden trick? I am really curious to see your solution
Reply With Quote
  #4  
Old August 6th, 2003, 07:11 PM

tesco samoa tesco samoa is offline
General
 
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
tesco samoa is on a distinguished road
Default Re: Math problem

hey geo i use that for figuring out how many tickets i need to do in betting on sport games

3 of 3 rotations ( 3 teams to 25) right up to 12 of 12 rotations

3 of 4 is 4
3 of 5 is 10
3 of 6 is 20
3 of 7 is 35
3 of 8 is 56
3 of 9 is 84
3 of 10 is 120
4 of 5 is 5
4 of 6 is 15
4 of 7 is 35
4 of 8 is 70
4 of 9 is 126
4 of 10 is 210
5 of 6 is 6
5 of 7 is 21
5 of 8 is 56
5 of 9 is 126
5 of 10 is 252
6 of 7 is 7
6 of 8 is 28
6 of 9 is 84
6 of 10 is 210
7 of 8 is 8
7 of 9 is 36
7 of 10 is 120
8 of 9 is 9
8 of 10 is 45

many different rotations...
__________________
RRRRRRRRRRAAAAAGGGGGGGGGHHHHH
old avatar = http://www.shrapnelgames.com/cgi-bin...1051567998.jpg

Hey GUTB where did you go...???

He is still driving his mighty armada at 3 miles per month along the interstellar highway bypass and will be arriving shortly
Reply With Quote
  #5  
Old August 6th, 2003, 07:13 PM
Z.e.r.o's Avatar

Z.e.r.o Z.e.r.o is offline
Private
 
Join Date: Jan 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Z.e.r.o is on a distinguished road
Default Re: Math problem

The number of matches you need is n!
where n! = 1*2*3*4*...*(n-1)*(n)
and is called factorial and can be used to determine the numbers of permutations of n tokens.

In a 3 players match where anyone is playing a role only once is 3! (1*2*3 = 6)

Empirical solution:
123
213
312
321
132
231

If I'm not right you can spank me with a crowbar
__________________
Visit My SE4 Site!
Reply With Quote
  #6  
Old August 6th, 2003, 07:14 PM

tesco samoa tesco samoa is offline
General
 
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
tesco samoa is on a distinguished road
Default Re: Math problem

umm mine was total games that would be needed to play each other in every combination...

ignore
__________________
RRRRRRRRRRAAAAAGGGGGGGGGHHHHH
old avatar = http://www.shrapnelgames.com/cgi-bin...1051567998.jpg

Hey GUTB where did you go...???

He is still driving his mighty armada at 3 miles per month along the interstellar highway bypass and will be arriving shortly
Reply With Quote
  #7  
Old August 6th, 2003, 07:17 PM
Z.e.r.o's Avatar

Z.e.r.o Z.e.r.o is offline
Private
 
Join Date: Jan 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Z.e.r.o is on a distinguished road
Default Re: Math problem

Spank me.

Is not right, every player plays two times in the same role.

But I'm sure that the number will be a subset of n!, but I also believe that you need an even number of players to not have conflicts.
__________________
Visit My SE4 Site!
Reply With Quote
  #8  
Old August 6th, 2003, 07:28 PM

tesco samoa tesco samoa is offline
General
 
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
tesco samoa is on a distinguished road
Default Re: Math problem

i have a question along this line

say you have 24 numbers and you want to sort them in combinations of 4 where each number only appears once with each other how many combinations would that be ???

now if some one wanted to whip up a little program that does that ( but i can select the numbers (say up to 50), combinations ( 2 to 12 ) and uniqueness ( say once to 6 times ) and can produce a text file output i would be forever thankful
__________________
RRRRRRRRRRAAAAAGGGGGGGGGHHHHH
old avatar = http://www.shrapnelgames.com/cgi-bin...1051567998.jpg

Hey GUTB where did you go...???

He is still driving his mighty armada at 3 miles per month along the interstellar highway bypass and will be arriving shortly
Reply With Quote
  #9  
Old August 6th, 2003, 07:40 PM
Erax's Avatar

Erax Erax is offline
Captain
 
Join Date: Oct 2002
Location: Brazil
Posts: 827
Thanks: 0
Thanked 0 Times in 0 Posts
Erax is on a distinguished road
Default Re: Math problem

It will work for nine players. Here's how :

1-2-3 | 1-4-7 | 1-5-9 | 1-8-6
4-5-6 | 2-5-8 | 2-6-7 | 4-2-9
7-8-9 | 3-6-9 | 3-4-8 | 7-5-3

Nope, used no math, did it empirically.

[ August 06, 2003, 18:41: Message edited by: Erax ]
__________________
Have you ever had... the sudden feeling... that God is out to GET YOU?
Well, my girl dumped me and I'm stuck with the raftmates from Hell in the middle of the sea and... what was the question again???
Reply With Quote
  #10  
Old August 6th, 2003, 07:43 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: Math problem

Quote:
Originally posted by BBegemott:
IMHO it can't be done with 3 player games with any number of players (except 3 of course).

Assume 9 players tournament. Nine players will be marked with numbers 1,2,...,9.
I could make only legal 10 triplets:

1) 123
2) 145
3) 167
4) 189
5) 246
6) 278
7) 259
8) 347
9) 369
10)358
11)48?
12)49?

There is no legal substitution for 11th & 12th triplet, because 4th player has already played 1,5,2,6,3,7. Putting any number instead of '?' contradicts to the rule 'everybody has to play everybody else once, but only once'.

Or have I missed some kind of hidden trick? I am really curious to see your solution
The problem is not every legal combination will work. For example, by using
1) 123
2) 145
3) 167
4) 189
you prevent the option of trying 146. This is fine for 1, 4, and 6 as long as they all play each other once, but might prevent others from being able to play each other, as you found out.

Instead if you do something like...
1) 123
2) 456
3) 789
4) 147
5) 158
6) 169
7) 249
8) 275
9) 268
10) 348
11) 359
12) 367

then it works.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.