Country choice question

New players can go here for helpful advice and to sign up for our mentor program, or if you're a veteran help answer questions.
Forum rules
This is an area for new members or members looking for help with the site or Diplomacy. Off topic threads and replies will be moved to the appropriate category.
Post Reply
Message
Author
DiploValencia
Posts: 1
Joined: Sun Feb 16, 2025 11:15 am
Contact:

Country choice question

#1 Post by DiploValencia » Mon Feb 17, 2025 5:37 pm

Hello everyone,

I’ve tried searching for an answer to this question but haven’t found it. I’m in my first game on this site and I have started a game that is waiting for players. I’m wondering how players choose countries to play or is it all random? I was the last player, I think, in the game that is started and I am Italy. Not a popular country, but I thought I got it by virtue of being last to join. But then when I started the game, I didn’t see any place I could indicar a country preference. Did I just miss it or is it just rando or do I need to do something else?

Thank you in advance,

D.C. Robeline

User avatar
echidna
Posts: 81
Joined: Thu Nov 24, 2022 11:40 pm
Contact:

Re: Country choice question

#2 Post by echidna » Mon Feb 17, 2025 5:45 pm

Welcome! It's random.

User avatar
kestasjk
Developer
Developer
Posts: 557
Joined: Tue Mar 14, 2017 8:13 pm
Location: Perth, Australia
Contact:

Re: Country choice question

#3 Post by kestasjk » Sun Feb 23, 2025 7:35 am

If you're interested in the specifics (and how could you not be?) it isn't totally random, as people used to complain that there's no way they could be randomly getting the same country again and again.

To make it seem more random, and give people a better chance of more variety, the system gives you a chance/weight for being each country (which is 1/7 when you first join), then when you get allocated a country your chance/weight of being that country is (if memory serves) halved.
Next time you have a lower chance of being that country you were assigned last.

So it's still random, but it tries to make it seem more random by giving you a higher chance of being countries you haven't played as much.

User avatar
echidna
Posts: 81
Joined: Thu Nov 24, 2022 11:40 pm
Contact:

Re: Country choice question

#4 Post by echidna » Sun Mar 09, 2025 6:27 am

Thank you kestasjk for the correction to my mis-statement. I believe I found the WedDip code that allocates players to countries, at https://github.com/kestasjk/webDiplomacy/blob/master/gamemaster/adjudicator/pregame.php
What I think it does is as follows:
It calculates the "weight" of an assignment of players to countries by summing, for each player, the number of times that player has played their assigned country before in the same kind of game.
Of all the possible assignments of players to countries, it finds the assignment that minimizes its sum of weights.
(If there are several assignments with minimum sum, one of those is chosen, presumably at random).
The code implements something called the "Hungarian algorithm" to do this.
I have not found the code for replacement players to see whether taking over a country as a replacement player adds to that player's country counts.

learnedSloth
Posts: 262
Joined: Mon Sep 12, 2022 10:20 pm
Contact:

Re: Country choice question

#5 Post by learnedSloth » Sun Mar 09, 2025 12:17 pm

echidna wrote:
Sun Mar 09, 2025 6:27 am
I have not found the code for replacement players to see whether taking over a country as a replacement player adds to that player's country counts.
Chances are that it doesn't, and not only because forgetting it doesn't make a notable difference. Taking over countries is voluntary so not counting them is a reasonable design choice.
¶ Keep thy heart with all diligence; for out of it are the issues of life.
-- Proverbs of Solomon, chapter 4, verse 23

Post Reply

Who is online

Users browsing this forum: No registered users