Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

N player Game Algorithm

 
   Game Forums (Home) -> Games Diplomacy RSS
Next:  New Kougra Avatar  
Author Message
nandakishore.v

External


Since: Apr 21, 2006
Posts: 3



(Msg. 1) Posted: Fri Apr 21, 2006 9:55 pm
Post subject: N player Game Algorithm
Archived from groups: rec>games>diplomacy (more info?)

Hi
I am doing a N player game, where each player is playing with other
N-1 players only once. i have tried some algorithm which didnot work.
Can you suggest me with any algorithm that help me to formulate the
game or can send me any web link which has that algorithm

Thank you very much
Nandu

 >> Stay informed about: N player Game Algorithm 
Back to top
Login to vote
nandakishore.v

External


Since: Apr 21, 2006
Posts: 3



(Msg. 2) Posted: Sat Apr 22, 2006 10:34 am
Post subject: Re: N player Game Algorithm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Don

its 2 player game. In this game i have N players, and in each session
each player is playing with one of N-1 players. so there are N-1
sessions. The following example might clear your questions. in the game
of 4 players {1, 2, 3, 4}

in session 1 : 1-->3
2-->4
in session 2: 1-->4
2-->3
in session 3: 1-->2
3-->4

so there are total of 3 session ( N-1) and each player is playing with
all other player only once. Hope you understood my problem.

 >> Stay informed about: N player Game Algorithm 
Back to top
Login to vote
Don Del Grande

External


Since: Apr 13, 2004
Posts: 45



(Msg. 3) Posted: Sat Apr 22, 2006 1:55 pm
Post subject: Re: N player Game Algorithm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nandakishore.v wrote:

>Hi
> I am doing a N player game, where each player is playing with other
>N-1 players only once. i have tried some algorithm which didnot work.
>Can you suggest me with any algorithm that help me to formulate the
>game or can send me any web link which has that algorithm
>
>Thank you very much
>Nandu

Could you clarify what it is you are trying to do?

Is it N players per game, and you have K players (K > N), and you want
to do it so each player plays each other player exactly once? (I
don't think this is possible in most cases - certainly not if K < N
squared.)

Or is it 2 players per game, and you want every player to play every
other player once? This is relatively easy.

-- Don
 >> Stay informed about: N player Game Algorithm 
Back to top
Login to vote
Don Del Grande

External


Since: Apr 13, 2004
Posts: 45



(Msg. 4) Posted: Sat Apr 22, 2006 7:55 pm
Post subject: Re: N player Game Algorithm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

nandakishore.v wrote:

>its 2 player game. In this game i have N players, and in each session
>each player is playing with one of N-1 players. so there are N-1
>sessions.

There is an algorithm.
First, assume there are an even number of players (if N is odd, add an
extra "dummy" player, and whenever someone is supposed to play this
extra player, that player gets a "bye" instead and plays no one.)
Let the number of players be 2K.
Divide the players into two groups, 1 through K and (K+1) through 2K.
If K is even, then rounds 1 through K-1 consist of the players in each
group playing each other. If K is odd, then rounds 1 through K
consist of the players in each group playing each other plus one game
in each round where a player from one group plays the corresponding
player in the other group (that is, 1 plays K+1 in one round, 2 plays
K+2 in another round, and so on through K playing 2K).
The remaining rounds consist of players from different groups playing
each other as follows:
In one round, put 1 against K+1, 2 against K+2, and so on, unless they
have already played each other in the first K rounds (because K was
odd), in which case start with 1 against K+2, 2 against K+3, and so on
through K-1 against 2K, and K against K+1.
In each subsequent round, "rotate" players K+1 through 2K so the
player who was against 2 in the previous round is now against 1,
whoever was against 3 is now against 2, and so on; the player who was
against 1 is now against K. Keep doing this until everybody has
played everybody else.

"Yes, but how do I get the players in each round to play each other in
the first place?" Follow the above process for players 1 to K, and
"copy" the pairings into the other group; for example, if 1 plays 3,
then K+1 plays K+3 in the same round. When a player has to play the
"dummy" player, then the corresponding player in the other group also
plays the "dummy" player, so these two play each other. Keep working
backwards until you get to a level you can solve manually.

Here is an example for 10 players:
First, solve for a group of five players, then match the two groups of
five against each other.
For five players (1-5), add player 6 as the dummy player.
Now solve for a group of six by solving for a group of three and then
matching two groups of three (1-3, 4-6) together.
Group of 3:
Round 1: 1 vs 2; 3 bye
Round 2: 1 vs 3; 2 bye
Round 3: 2 vs 3; 1 bye
Copy 1-3 to 4-6, and pair the players with byes together:
Round 1: 1 vs 2, 4 vs 5, 3 vs 6
Round 2: 1 vs 3, 4 vs 6, 2 vs 5
Round 3: 2 vs 3, 5 vs 6, 1 vs 4
For Round 4, put players in different groups against each other; you
already have 1 vs 4, so start with 1 vs 5:
Round 4: 1 vs 5, 2 vs 6, 3 vs 4
Round 5: 1 vs 6, 2 vs 4, 3 vs 5
The scheduling of 6 players is complete. Since this is actually a
5-player schedule, replace Player 6 with "bye".
Now, copy these rounds from players 1-5 to players 6-10, and again
pair two players with byes together:
Round 1: 1 vs 2, 6 vs 7, 4 vs 5, 9 vs 10, 3 vs 8
Round 2: 1 vs 3, 6 vs 8, 2 vs 5, 7 vs 10, 4 vs 9
Round 3: 2 vs 3, 7 vs 8, 1 vs 4, 6 vs 9, 5 vs 10
Round 4: 1 vs 5, 6 vs 10, 3 vs 4, 8 vs 9, 2 vs 7
Round 5: 2 vs 4, 7 vs 9, 3 vs 5, 8 vs 10, 1 vs 6
Since 1 vs 6 is already scheduled, start with 1 vs 7:
Round 6: 1 vs 7, 2 vs 8, 3 vs 9, 4 vs 10, 5 vs 6
Round 7: 1 vs 8, 2 vs 9, 3 vs 10, 4 vs 6, 5 vs 7
Round 8: 1 vs 9, 2 vs 10, 3 vs 6, 4 vs 7, 5 vs 8
Round 9: 1 vs 10, 2 vs 6, 3 vs 7, 4 vs 8, 5 vs 9

-- Don
 >> Stay informed about: N player Game Algorithm 
Back to top
Login to vote
nandakishore.v

External


Since: Apr 21, 2006
Posts: 3



(Msg. 5) Posted: Sat Apr 22, 2006 9:49 pm
Post subject: Re: N player Game Algorithm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thank you very much gurus... your ideas helped me a lot to solve my
problem

thank you once again
 >> Stay informed about: N player Game Algorithm 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Changing New Game: GM/player to GM - I am new to this GM business. I have volunteered to GM a game for a group of friends, but it's my first time through. I created a game using the commands listed below and find myself also a player, which I don't wish to be. Two questions: How do I...

judge: master and player issue - Hi, I am game master and a player in a game. Today I changed the deadline and got back an email with several moves in it, see below. This is not so bad this move as I noticed France's moves but as I am Turkey they don't really matter at the moment...

No press game - If anyone is interested, there is a nopress game on the USOS judge with two positions left. It has 47/24/24 hour deadlines. Game name is whit. Join the fun. Len Zanos GM of Whit

Online game? - Isn't there any place where it is possible to play Diplomacy online? Perhaps a one.day-one.turn game?

Illegal move? - I had these units: F MAO F Spain(nc) I wanted to adjust their positions and issued these orders: F MAO-Spain(sc) F Spain(nc)-MAO The judge decreed that this was a bounce. No other units were involved. I know that a fleet on a particular coast is..
   Game Forums (Home) -> Games Diplomacy All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]