## Diplomacy Scoring Systems

I am going to write about scoring systems. If you want to skip ahead to the end and see a good system you can use, feel free to do so. Recall that the purpose of a scoring system is to provide a just numerical evaluation of a drawn position in a diplomacy game, for quantifying performances in a tournament.

We will start very slowly by stating some properties that diplomacy scoring systems should have.

1. Solo beats Draw beats Elimination/Loss:
A soloist should score more than someone who draws, who should in turn score more than someone who is eliminated or loses.

Comment: This sounds like an obvious property to want. Yet I feel compelled to mention this, and others explicitly, because not all scoring systems have this property. Carnage is a notorious example. (A historical note: We (by this I mean Bob Holt) fixed this problem with Carnage back in 2009. Then people reverted to the older, worse version).

2. Monotonicity:
Compare the score from two games (games are assumed drawn unless otherwise specified), where the only difference is that player A takes a centre off player B in the 2nd game. Then Player A should score more in Game 2 than in Game 1, and it should be the other way around for Player B.

Comment: Again, this sounds obvious, but does not always happen. An example of a system which doesn’t have this property is Tribute.

3. Path independence
A player’s score should only depend on the final centre count of the game.

Comment: In the past systems have been used (e.g. Origins) which use the centre count at each year in the figuring of the final scores. These produce perverse outcomes, where smaller powers can score more than larger powers. Such systems should be avoided on principle and due to their known poor performance.

Comment 2: For a further comment about survival points for eliminated or losing players, keep reading to point #5.

4. Zero Sum.
That the total points given out for each game is a constant.

Comment: There are people who belive that this should be a requirement. It sounds nice at first glance, but (spoiler alert) we will end up ditching this idea, in favour of ensuring requirements 5, 6 and 7 happen.

5. Eliminated or losing players score zero.
As it says in the title.

Comment: This is something that I would argue for in a major tournament, because to be eliminated or lose is to have achieved nothing. In a minor tournament, I am amenable to giving a token sum of survival points as seen in Detour or Cricket after hearing Melissa Call argue persuasively in its favour. An alternative approach that is irrelevant for the question of how to score a single game but relevant for a tournament is to give every player a fixed extra number of points for playing in a round.

6. Convexity/No unnatural Draw Whittling.
If Player A allows Player B to capture every supply centre of Player C, then Player A’s score should not increase.

Comment: If you reach a position which is naturally drawn, and the large players are incentivised to artificially manouver in order to ensure the smaller powers can be safely eliminated, then this causes the game to drag on longer than it should, and feels particularly nasty towards those who are eliminated late. This is essentially the standard argument against draw size based systems, although draw based scoring has other undesirable implications that I won’t get into here.

7. Reward the draw
The difference between a 1SC power in a draw must be significantly different from an elimination/loss.

Comment: I believe that there is a significant difference in achievement in making it into the draw, and that this should be rewarded by the scoring system. This is a property that is seriously lacking in some systems (Squares is a notable offender here).

8. No ties.
It is impossible to avoid ties together, but the ideal is for a system is to have as few ties at the top end of the field as possible.

Comment: If you have a simple scoring system, then you have to deal with tiebreakers. I have determined that humans are bad at coming up with tiebreaker rules. For an example, look at the farcical boundaries rule which determined the winner of the 2019 World Cup. Thus, I prefer to avoid them. Though I will mention one tiebreaker rule I read once in some tournament rules and rather fancied: “Ties will be broken by strength of opponents faced. Strength of opponents is determined by their performance in this tournament.” How exactly the strength of opponents was determined was not explicated.

9. The soloist does not win the tournament by default
A solo should be beatable by a combination of non-solo results.

Comment: This is more about tournament structure than scoring a single game so is orthogonal to most of this article, but I mention it for completeness. I believe that to do well in a tournament, you should have to do well in more than one game, rather than getting lucky in a single game (the difference between a solo and a dominant board top is often the luck of the draw in how well the defenders play).

OK enough about desirable (or undesirable) properties. And on to actually talking about some systems.

The simplest (reasonable) scoring system is 1 point per supply centre. It’s actually pretty good. Problems it comes up against are points 8 and 7 above. Still, this system is a good litmus test for any scoring system designers. I think any scoring system designer has to justify that their system is better than just counting up the dots.

A more nuanced system is one where you get points per supply centre, points for being in the draw, and points are shared equally between the board-toppers. The values of , and can be adjusted as desired. This is the system in use for the virtual World Diplomacy Classic running later this month. These systems can be very good.

To reduce the chance of ties, we can now make some changes. Let be an increasing convex function with . Suppose player finishes with supply centres. Then we give Player the score

.

The first system mentioned above is the same as this one with . It is customary to multiply scores by 100 in real life systems of this type but as that makes no mathematical difference so we ignore it.

The consequence of making the function convex is that it means that at a given supply centre count, the more evenly split your opponents are, the higher your score. It ensures that property 6 holds.

One example with a history of use in the hobby is the function (Squares). This has two serious problems. One is that it fails property 7 (reward the draw). In this system, the score aquired by a 1 supply centre power is so small as to be essentially meaningless in any final tournament standings. The second problem is that it is too convex (to quote Nicolas Sahuget). This results in a large range of scores which a dominant board-topper can achieve. This range feels disproportionately large compared to the other scores in the sytem. But this problem is easily fixed by changing .

We can fix the problem of failing property 7 by removing the requirement that , and allowing to take any postive value. Now if player finishes with supply centres, then they score as in the previous displayed formula when , and score otherwise.

Note that it is important to still include the eliminated players in the denominator, otherwise the convexity condition will be broken. This system breaks the zero-sum condition (in a fairly mild way). I strongly believe this is a small price to pay for its other desirable factors.

I hereby propose that we take . This clearly has some motivations from the Cricket scoring system, which only fails the tie-breaker condition amongst the desirable points raised above.

I have left out the question of how many points a soloist should get since it is independent of the discussion of how to score the drawn positions. I will give an explicit sample number below in my final description that agrees with my philosophy that a soloist should be able to be beaten in a (fictionally 3-round) tournament, since a tournament is meant to require playing well in multiple games, not just one.

Afficionados of lead based systems can always throw on extra bonus points for placement in a draw, though we start to lose some elegance with that approach.

So finally, we reach:

Unnamed Scoring System

Let .

For games that end in a solo, the soloist scores 0.55 points. All other players score 0.

For games that end in a draw, let be the number of supply centres of player . Then if , player scores 0 points, while if , player scores points.

PostScripts

1. The Unnamed system is essentially 3 points for being in a draw, plus one point per supply centre, tweaked ever so slightly so that it is unlikely to create ties.

2. A comment by SK suggests that the word Carnage should be in the scoring system name.

3. Comments are not showing up, but are readable by me. I do not know why.

1 Comment

Filed under diplomacy

## Running a bash process on startup in ubuntu

Ubuntu has a place called “Startup Applications Preferences” which is one way to organise something that runs upon startup. It is found by typing its name in the searchy thingy I don’t know the name of, and is a bit GUIish.

Because I use a Kinesis Advantage keyboard, I wanted to automatically swap the roles of the Tab and Delete keys upon startup. Here I record how to do this.

In the aforementioned “Startup Applications Preferences”, I create a new process, with the command section filled in with

bash .xmodstartup

It remains to create a file called .xmodstartup in my home directory, which I populate with the following xmodmap commands

xmodmap -e 'keycode 119 = Tab ISO_Left_Tab' xmodmap -e 'keycode 23 = Delete NoSymbol' 

And voila, upon startup, the Tab and Delete keys are switched.

If I ever want to undo this, and return to the default keyboard layout, this can be accomplished with running the following in a terminal

setxkbmap -layout us 

This blog post exists to help my future self solve the same problem when I forget, and hopefully may help others who stumble upon it while searching the web to try and solve the same problem as me.

Now, next thing to do is to understand how to make the Windows/Super key behave exactly as I want it.

Filed under ubuntu

## Molecube (nine colour cube)

The molecube (also known as the nine colour cube, e.g. as on Jaap’s website) is a Rubiks cube variant. Here is a picture in its scrambled state (so no spoilers are given).

To solve the puzzle you must reach a state where there there are no two pieces of the same colour on any of the six faces. In terms of turning, it is exactly like a normal Rubiks cube.

It is not too difficult to come up with a valid solution, and even possible to come up with all solutions by hand (though I leave this as an exercise to the reader). I also leave as an exercise to the reader how to construct a mathematically equivalent puzzle with SET cards.

Since the puzzle turns exactly like the cube, if you can solve the cube, and can find a valid configuration (easy), this puzzle is unlikely to present a challenge.

I bought this puzzle while transiting at Changi airport. Changi has a program where you can receive a 20SGD shopping voucher when transiting on Singapore Airlines. The rules of this program are constantly being tweaked and it always has an expiry date, but the promotion has continually existed in some form for at least the past five years.

Filed under cubing

## Singularities of Schubert varieties within a right cell

Martina Lanini and I recently posted our preprint Singularities of Schubert varieties within a right cell to the arXiv. In it, we show that every singularity which appears in a type A Schubert variety appears between two permutations lying in the same right cell. This shows that any behaviour controlled by the singularities of Schubert varieties manifests itself within a Specht module. Some exmples are discussed.

The work was conducted during our recent visit to the thematic trimester program on representation theory at the Institut Henri Poincaré in Paris. I spent an enjoyable first month there before returning to Australia. Originally I was scheduled to be on a plane right now to return to Paris for the end of the program, but alas this is no longer possible. Oh well.

Filed under maths

## Hierve El Agua and Mitla (day trip from Oaxaca)

I was recently at Banff in Mexico (a.k.a. Oaxaca) and had the opportunity to enjoy the following day trip. All information current as of December 2019.

What: Hierve El Agua is a pretty site in the mountains/hills not too far from Oaxaca (the city). There are natural springs coming out of the rocks that have been dammed at places to create artificial pools, and the water creates stalactite-like formations on the rocks. Entrance is 25 pesos.

Mitla is a town on the way to Hierve el Agua. Located in the town is a Zapotec archaeological site, second only to (but much smaller than) Monte Alban. Entrance is 75 pesos.

How: While you can do this as an organised tour or even extravagantly hire a taxi for the day, I will describe the bus route.

From Oaxaca, take the 2nd class bus to Mitla. These are reasonably frequent, are green and have the word Mitla on the front so are easy to spot. It can be caught anywhere along the route by hailing down the bus (there are stops, but it seems you can get on the bus wherever you want). I don’t know the full route of the bus, but it turns right onto highway 190 at the Parque de Beisbol by doing a right-left-right manouver around the stadium anticlockwise. Cost 20 pesos.

Waiting at Mitla’s 2nd class bus station are the collectivos to Hierve El Agua. They are impossible to miss. They wait until they are full, and then leave, so your travel time may vary. Officially the cost was 50 pesos. I paid 60 pesos on the way there (the extra 10 pesos was to take the toll road) and 72 pesos on the way back, which was the amount needed per person to leave early with only 7 passengers. I never had to wait long to leave but others in my returning vehicle were waiting for an hour, which helped encourage them to cough up extra money to leave early.

To Do: At Hierve El Agua there is a short hike (maybe ~1 hr?). It is a loop where you go down to the valley which gives you a better look at some of the rock formations. This hike is much easier done in an anticlockwise direction as the trail is easier to find that way. The best bits are all at the start of the hike when done that way. There are also free change rooms for changing to swim in the artificial pools.

Pictures: None. Let this be a warning to me to back up pictures from my phone in a timely manner.

1 Comment

Filed under travel

## Puzzled Pint

I wonder perhaps if Puzzled Pint is not as well-known as it should be.

It is a monthly event, run in pubs around the world where you and your team solve a set of puzzles while, naturally, drinking a pint.

In terms of difficulty, I’d say it’s on the easier end of the puzzling spectrum, much easier than the MIT mystery hunt or other puzzle hunts I’ve seen, instead more akin to the difficulty of a typical escape room, or perhaps a bit easier. But there’s no need to take my word for it, the archive of past puzzles is available online for you to peruse.

I am fortunate that two lovely ladies have taken it upon themselves to host an edition in Melbourne over the past year.

Happy puzzling,

endpress
signoff

Filed under puzzling

## We’re hiring

The University of Melbourne maths department is hiring. All our ads can be found on mathjobs.

In pure maths, we have a continuing position in analysis. Applications should be submitted by the earlier deadline of 25 October to ensure full consideration.

There are also other positions available in applied and statistics, as well as a temporary position open to all areas.

Filed under maths

## Sydney Mathematical Research Institute International Visitor Program

There is a new (established in the last couple of years) mathematical institute based at the University of Sydney. I want to call attention to a visitor program they run, for mathematical visits to Australia.

They fund research visits of at least one month’s duration. At least two weeks must be spent at the University of Sydney, but the rest can be taken anywhere in Australia.

Funding rounds for these research visits happen periodically. Currently there is one open for visits within the period April-December 2020, with applications closing on 28 July.

Anyone interested should check out the research intstitute’s webpage.

Filed under maths

## Megaminx IV

Long term readers of this blog will know of my frustration with low-quality megaminxes in years gone by, and even that I chose not to purchase one at the HKnow store in Causeway Bay in Hong Kong when it still existed. But I can now say that I am a proud owner of a QiHeng S Megaminx (stickerless, non-magnetic).

At some point in the past year, I discovered that the physical incarnation of speedcube.com.au was in a Melbourne suburb, in Blackburn North to be precise. So naturally I had to pay it a visit. Fortunately it is located very near to the Koonung Creek Trail, which makes for a pleasant ride to the shop.

As to be expected from the name, this shop specialises in all things speedcubing, at the expense of stocking more exotic puzzles for the serious collector. I finally decided I wanted a working megaminx, and with the rise of speedcubing, surmised (correctly as it turns out), that I would be able to get a reliable one at a speedcube shop. I chose a non-magnetised one since I won’t be trying to speedsolve it, but also walked away with a 3x3x3.

I was by far the oldest customer. How come so many kids are into cubing these days?

In the past, I have claimed that the megaminx is easy. Here is my simple solution.

1. Solve all but one layer and an adjacent corner-edge pair. This is intuitive and much more efficient if when solving a corner piece, you first pair it with an adjacent edge piece and insert them together.

2. Solve the remaining 6 edges. Intuitive. Easier than on the 3x3x3 since turning one face is a 5-cycle of edges, which is an even permutation.

3. Solve the remaining 6 corners using corner 3-cycles.

Filed under cubing

## An efficient 4x4x4 parity algorithm, intuitively.

The 4x4x4 cube is more complicated to solve than the 3x3x3 due to having a parity problem. If you have never solved a 4x4x4 before, I encourage you to go away and try solving it yourself, then come back to this article later.

The parity I refer to is as follows (speedcubers call this OLL parity): After solving the centres of the cube, look at the 24 edge pieces. If they form an odd permutation, then I say we have a parity problem we need to fix. The reason this is non-trivial is that most/all of the easy to create algorithms that preserve the centres of the cube perform an even permutation of these 24 edges. Odd permutations are possible (in conjunction with performing simultaneously an odd permutation of the indistinguishable centre squares).

I will aim for the following: An odd permutation of the 24 edge pieces, with three of the four layers solved, and all the edge pairs on the last layer preserved. This is for compatibility with common approaches to solving the 4x4x4 – usually only after solving three layers and pairing the edges is it fast to recognise the existence of a parity problem.

Since we have to perform an odd permutation, let’s do that first and perform the move l. (I won’t define the notation but will link to alg.cubing.net so you can see the moves visually).

Our goal now is to solve as much of the cube from this state as possible using even permutations. Instead of thinking of needing to perform a quarter turn of half a cube, it will be more productive to think of us as needing to perform a 4-cycle of 1x2x3 blocks to completely solve the cube.

Now a 4-cycle of these blocks is not happening, but a 3-cycle of these blocks is easy to construct. It is well-known and easy to construct 3-cycles as simple commutators (here’s an example). We can also create block 3-cycles from similar simple processes. For example, here is a 3-cycle of 1x2x3 blocks:

This doesn’t quite permute the three 1x2x3 blocks we’d want (we want to permute three all on the left side of the cube). We can get around that by conjugating by F r. So now we’re at

Let’s look at where we are. Our biggest problems are that we have to solve the two centres on the F and D faces, and re-pair the UF and DF edges.

We will look at the centres first. The usual way to solve centres in this type of position is the simple 4-mover r U2 r’ U2. But look, that move also swaps the edge pairing of exactly two edges! So we look to see if some version of this algorithm in the right direction and right orientation can solve our two problems, and it turns our that we can with [D2, l]. So altogether we now have

l [F2 r: [r’ 3Dw2 r, U2]] [D2, l]

which solves our problem, giving us a parity fix algorithm.

When the cancelling moves are cancelled, it is 15 moves long.

I will not discuss questions of optimising this algorithm for speed.

If one does look online for speed algorithms, then one will quickly come across something like the following (also 15 moves long)

Now that we’ve done our analysis, we can see the same structure in that algorithm, just in a different order. We see setup moves, the block 3-cycle, the 4-move centres solving and a single turn inserted to ensure odd parity.

1 Comment

Filed under cubing