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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old August 7th, 2003, 01:59 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,624
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Math problem

Geo:

You have a difficult problem. Most programs used to set up match schedules like this are based on 2 players/teams.

What you are proposing is not a very common format to schedule and will be very difficult to organize. Other than finding the total number of games required (i.e. number of all the different combinations of players as calculated by others), you'll have to manually arrange the games or find someone to make a program for you that can do this automatically. On a more positive note, I'm sure there is some sort of combinations calculator out there on the net that lists each of the combinations...

[ August 07, 2003, 01:07: Message edited by: Captain Kwok ]
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #2  
Old August 7th, 2003, 02:06 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: Math problem

Let's see: Floor function for the numbers:

Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games

Gp = (Np - 1) / (Pp - 1)
Tg = (Np * Gp) / Pp
= (Np*((Np - 1) / (Pp - 1)))/Pp
= (Np * (Np - 1)) / (Pp * (Pp - 1))

Gp = (Np - 1) / (Pp - 1)
Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))


If Gp and Tg come out as positive integers, it should be doable - I'm not sure about the arrangement, however.

Edit: Arrangement method:

1) List players
2) Variables
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Sk = Skip (counting variable; internal use only)
3) Gp = (Np - 1) / (Pp - 1)
4) Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))
5) Sk = 0
6) Group, skipping Sk
7) Sk = Sk + Pp
8) If Sk < Np, Goto 6

[ August 07, 2003, 01:44: Message edited by: Jack Simth ]
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #3  
Old August 7th, 2003, 02:18 AM

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

geo you should grab one of those wheel systems for lotteries.

you need a 3 of n wheeler with a filter
__________________
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
  #4  
Old August 7th, 2003, 02:19 AM
cybersol's Avatar

cybersol cybersol is offline
Corporal
 
Join Date: May 2003
Location: SF Bay Area, CA
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
cybersol is on a distinguished road
Default Re: Math problem

Quote:
Originally posted by Jack Simth:
Let's see: Floor function for the numbers:

Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games

Gp = (Np - 1) / (Pp - 1)
Tg = (Np * Gp) / Pp
...
If Gp and Tg come out as positive integers, it should be doable - I'm not sure about the arrangement, however.
I think this is the same as what I had a few Posts back, or am I missing something?

Edit: Oh sure add more

Quote:
Originally posted by Jack Simth:
Edit: Arrangement method:
Edit: Arrangement method:

1) List players
2) Variables
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Sk = Skip (counting variable; internal use only)
3) Gp = (Np - 1) / (Pp - 1)
4) Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))
5) Sk = 0
6) Group, skipping Sk
7) Sk = Sk + Pp
8) If Sk < Np, Goto 6
Looks promising, but I don't understand exactly what you mean by group, skipping sk. Could you show the Np=13 and Pp=3 case I mentioned earlier as an example (since no one has shown it yet)?

[ August 07, 2003, 01:56: Message edited by: cybersol ]
Reply With Quote
  #5  
Old August 7th, 2003, 02:23 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,624
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Math problem

Quote:
Originally posted by tesco samoa:
geo you should grab one of those wheel systems for lotteries.

you need a 3 of n wheeler with a filter
This is exactly what he needs! Some sort of calculator that will list all the possible combinations of numbers (i.e. players) for n number of players, and r number of players per game!
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #6  
Old August 7th, 2003, 02:45 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: Math problem

A few people posted while I was editing, so I'll put it back up:
Quote:
Arrangement method:

1) List players
2) Variables
Pp = players per game
Np = Number of players (total)
Gp = Games per player
Tg = Total games
Sk = Skip (counting variable; internal use only)
3) Gp = (Np - 1) / (Pp - 1)
4) Tg = (Np * (Np - 1)) / (Pp * (Pp - 1))
5) Sk = 0
6) Group, skipping Sk
7) Sk = Sk + Pp
8) If Sk < Np, Goto 6
I might have an off by one error in line 7.

[ August 07, 2003, 09:16: Message edited by: Jack Simth ]
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #7  
Old August 7th, 2003, 02:46 AM

Ack Ack is offline
Private
 
Join Date: Mar 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Ack is on a distinguished road
Default Re: Math problem

Geoschmo is correct that you cannot use a combination equation for a round robin. This is from some website:

Example:

How many ways can we select three letters from the letters of RSTUV?

n = 5 r = 3

These are: RST, RSU, RSV, RTU, RTV, RUV, STU, STV, SUV and TUV.

From this you can see that, if RSTUV represented players, players would meet more than once (RS for example).

Permutation equations do not work for exactly the same reason.

Geoschmo,

I believe the only way you can avoid having players meet more than once is if the number of players is the square of the number of players per game. Actually another case is if the number of players is equal to the number of players per game (or 1 game). Anything other than this and you'll either having players facing each other multiple times or rounds where players do not play.

Next, the most possible games occurs if the number of players per game is equal to one. In this case the number of games is the summation of A (from A=1 to A= n-1). Where n is the total number of players. This is an important event.

So adjusting for the number of players, which should be a simple division, gives this:

Pg = players per game
n = total number of players

# games = (1/Pg) Summation (A=1 to A=n-1)

Solving a few cases:

Pg = 1, n = 1: # games = 1
Pg = 4, n = 2: # games = 3 (wrong, should be 6)
Pg = 9, n = 3: # games = 12

In summations, having variation between the odd and even entries is fairly common. So you need another equation for the even values, which I'm not going to work out tonight.

I suspect there is a more graceful solution by using some series expansions. Try looking at Taylor, Binomial, Geometric, etc. Series Expansions to find a better solution. To help you along, try determining the number of games required for 25-5 and 36-6.

One more quick thing. The number of games per round is simply n/Pg. So another option would be to use this and find a series that describes the number of rounds.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 02:41 PM.


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