r/twilightstruggle • • Oct 21 '26

Opening Setups: DeepStruggle Analysis

DeepStruggle is a Twilight Struggle AI trained by reinforcement learning. I think it has gotten pretty good at the game. I wanted to know how much opening setups mattered, and if DeepStruggle's opening setups were any good at all, so I took two different versions of the bot and made it play against itself 200,000 times for each set of fixed openings to see whether these tournament results disagreed with the bot's actual openings. The opening doesn't actually matter that much, which is surprising to me, but I did find that it generally likes certain openings for a reason.

The below tables should be treated as like tournament statistics, not the bot’s opinion.

Setups are written as final influence (EG4 = East Germany's starting 3 + 1). Win % counts a draw as half a win and averages the two bots. "Human mix" means the other side's setups in the proportions they appear in 254 human games.

USSR setups (USSR win % vs the human US mix)

Tier USSR setup Human share USSR win %
S Pol3/Yug3 0% 51.2
S EG4/Pol4/Yug1 30% 51.0
B EG4/Pol4/Aus1 45% 50.5
B EG4/Pol5 24% 50.4

Thoughts: The bot loves couping Italy, it thinks Italy is the best country in the game (2 stab in Europe). With 3 Yugoslavia, you immediately get Europe Domination when you take Italy (~40% of the time). I think actually saving those two ops is actually good. That said, 1 Yugoslavia is also perfectly good (and can't really be differentiated at all). I think Yugoslavia is better than Austria because it's 3 Stab vs 4 Stab and so it saves an OP and can give you control if US plays Warsaw Pact. Bot absolutely hates spending 2 Ops to get control of non-BGs.

US setups (US win % vs the human USSR mix)

Tier US setup Human share US win %
S WG4/It3/Fr1/Ir2 3% 50.0
S WG3/Fr3/It2/Ir2 31% 50.0
A WG4/Fr2/It2/Ir2 <1% 49.8
A WG4/It3/Ir3 5% 49.7
A WG3/It3/Fr2/Ir2 7% 49.6
B WG4/Fr3/It2 3% 49.5
C WG4/It4/Ir2 48% 48.8

Thoughts: The bot is not afraid of Suez or De Gaulle. The playouts think 4 Italy is a complete waste (though they do not mind 3 Italy at all).

Cards in hand (on deals where the card is in that hand: the holder's win % vs the other side's human mix, with the standard setup and with the best setup for that hand)

Card In whose hand Reference setup Win % Improved setup Win % Gain
De Gaulle Leads France US WG3/Fr3/It2/Ir2 48.7 WG4/It3/Ir3 50.0 +1.3
Middle East Scoring US WG3/Fr3/It2/Ir2 48.6 WG4/It3/Fr1/Ir2 48.9 +0.3
Marshall Plan US WG3/It3/Fr2/Ir2 53.6 WG3/Fr3/It2/Ir2 54.5 +0.9
Europe Scoring USSR EG4/Pol4/Yug1 46.0 Pol3/Yug3 47.6 +1.6
Socialist Governments USSR EG4/Pol4/Yug1 52.2 Pol3/Yug3 53.4 +1.2
De Gaulle Leads France USSR EG4/Pol4/Yug1 51.5 Pol3/Yug3 51.7 +0.2
Middle East Scoring USSR Pol3/Yug3 46.5 EG4/Pol4/Yug1 46.8 +0.3
Independent Reds USSR Pol3/Yug3 48.9 EG4/Pol4/Yug1 49.4 +0.5

And here are cards which change your setup from the standards (3/3/2/2 and 4/4/1). With De Gaulle and Soc Gov, the USSR really, really wants to dominate Europe on Turn 1 (and Independent Reds/ME Scoring means it prefers 1 Yugo over 3 Yugo).

With the US having De Gaulle, empty France is fine. And if you have Marshall Plan in hand, set up with at least 2 France so you immediately dominate Europe.

10 Upvotes

24 comments sorted by

7

u/ccam0821 Oct 21 '26

Does the AI consider Independent Reds in their opening hand for 3 Yugo? Or EEU?
These are the 2 biggest issues for the 3/3/3 opening. Independent Reds makes a usually harmless opponent event very annoying, and EEU can leave the USSR presence-less in Europe after headline. Does the US opponent ever do EEU headline with Europe scoring in their hand? What is the win percentage in that case, and what does the AI think is the best AR1 response?

3

u/lastchancexi Oct 21 '26

Independent Reds in USSR’s opening hand means that it prefers the 4/4/1 Yugoslavia opening. As for EEU counter, I will investigate.

1

u/lastchancexi Oct 22 '26

Yes. US opponent does headline EEU with Europe scoring in hand, and USSR generally coups Italy/Iran anyway, and USSR gets owned, generally. Costs the USSR around 8 percentage points in those worlds.

2

u/ccam0821 Oct 22 '26

Thanks for clarifying. Is couping still better than placing ops AR1? My intuition is to not coup. And if you have data for EEU headline without Europe scoring in US hand that would be nice too. Appreciate your analysis :)

2

u/lastchancexi Oct 22 '26 edited Oct 22 '26

EEU without Europe Scoring against 3 Yugo is like 2-3%. 3 Yugo is not a safe opening against EEU, it's basically a high risk/high reward opening (at least compared to 1 Yugo).

And yes, USSR basically either coups Italy or Iran (unless it HLs Soc Gov and put inf into Italy or HLs De Gaulle to take France). I would do the same (though I might still inf place after Vietnam Revolts).

Bot also does lot of T1AR1 Red Scare/Purge (plays around defectors, etc). I like that a lot too.

6

u/Baluba95 Oct 21 '26

Amazing work! Altough until I'm covinced that the BOT is at least as strong as the top 50 human players, where I ballpark estimate to be the point where the huge self-play data is compensating for the overall weaker play compared to top human in terms of opening analysis, I won't really implement it in my play.

However, I'd be really interested in the win% wort of certain card in early war, i.e. how does the win prob chages based on who gets CIA, Destal, Decol, Purge, etc.

2

u/lastchancexi Oct 22 '26

USSR hand

CardOpsUSSR win %
Red Scare/Purge4+6.7
Decolonization2+5.2
NATO4+4.2
Nuclear Test Ban4+3.9
Five Year Plan3+2.2
Romanian Abdication1-2.0
CIA Created1-2.0
Truman Doctrine1-2.6
Asia Scoring0-3.0
Europe Scoring0-4.7
Middle East Scoring0-4.9

US hand

CardOpsUS win %
Red Scare/Purge4+9.2
Nuclear Test Ban4+7.2
NATO4+6.8
Containment3+5.9
US/Japan Mutual Defense Pact4+4.7
Marshall Plan4+4.0
Five Year Plan3+3.3
UN Intervention1+2.4
Warsaw Pact Formed3+2.0
Fidel2-2.5
Arab-Israeli War2-2.7
Vietnam Revolts2-2.9
Blockade1-3.6
Truman Doctrine1-3.8
Romanian Abdication1-4.7
Asia Scoring0-5.4
Nasser1-5.4
Europe Scoring0-5.5
CIA Created1-5.7

Cards that affect win rate the most in your hand on T1 for US and USSR above (everything 2% or greater). US values ops much more than USSR, US hand is affected the most by getting free ops (US is ops constrained, no china card, tons of bad USSR events). Middle East Scoring is fine for US because of the headline, not great. Every other scoring card sucks to draw on T1. Five Year Plan being the fifth best USSR card to draw is funny (but also obvious due to the discard bad scoring trick).

Tl;Dr, on turn 1, you want ops. As US, you really want ops.

1

u/lastchancexi Oct 21 '26

Make a note, this analysis isn’t me asking the bot, it’s me running hundreds of thousands of game sims. This is more like tournament stats than anything, and based on my analysis of the average tournament game, the bot is better than the average tournament player.

4

u/Baluba95 Oct 21 '26

I understand that, and ask for the same statistic for some cards mentioned, or maybe even T1AR1 rolls.

But it’s only meaningful if the bot is indeed strong enough. If the statistics would be from my 10y old playing 10000000 games against my 8y old, it would be meaningless.

So back to bot strength: how did you measure it, and how did it score?

2

u/lastchancexi Oct 21 '26 edited Oct 21 '26

There's a few things. First, I did play the bot a couple of times, and it beat me both times. In both games, I felt like I was lost, and it was putting me under a lot of "pressure." It got away with playing cards at good times, and it never wasted ops. I used to play a LOT of twilight struggle, and both the games I played against the latest "rollout root" version of the bot (the search version) were just harder than in the tournaments back when I played. It felt one step ahead, and I only felt like that playing against 10 or so players a few years back (might be different now).

A lot of the suggestions it gives are also intriguing. Most of the time at weaker bots, you look at the suggestion, and you're like, that's dumb. With this bot, you see the suggestion, and you really have to think about it.

The 3 Yugoslavia thing seems risky, but there's a real benefit to it 40% of the time. It makes sense that you save 2 turn 1 ops the times you actually get 3 European BGs (for domination). I don't even think the bot takes Europe Domination on T1 if it doesn't go 3 Yugoslavia right away (it doesn't like Spain/Greece/Turkey, which makes a ton of sense actually).

0

u/Baluba95 Oct 21 '26

Maybe roll out the bot into the playdeck lobby? I know it can't play on its own like Go and Chess engines, but I'd love to see how it fares, even in the limited scope of you as the executor.

1

u/lastchancexi Oct 21 '26

It can play on its own in its (not very good) web UI, it's just about hooking it up to Playdek (and whether or not I should do that).

3

u/misomiso82 Oct 21 '26

So this is very interesting. Ty for all your work!

Some of it is quite hard to understand though.

What have you done in general - have you FORCED set ups then made the bot play against each other? Is that what the difference in win % is when you have certain cards in hand?

I don't understand what 'human share' means in the tables - is there a wide variety of human set ups in the 254 human games you are using? What ARE the set ups in the pool - is Italy 4 common for example? This is quite important I feel.

What are the human share percentages in the top 2 tables?

What other interesting things have you found? Do you have a depository site that has a compendium of all the info?

Ty

1

u/lastchancexi Oct 21 '26

> What have you done in general - have you FORCED set ups then made the bot play against each other? Is that what the difference in win % is when you have certain cards in hand?

Yes, this is exactly what I did.

Human share = % of times humans played it in tournament logs.

I can put together a depository of all findings. There's a lot of stuff that was counter intuitive to me, when the bot just couldn't find a difference between making one move and making the other one.

1

u/misomiso82 Oct 21 '26

Ok so the bots set up wasn't at determined by what cards it had in hand?

2

u/lastchancexi Oct 21 '26

No, it's not, and that is a weakness. I guess what ends up happening is that with all of these deals, you can pick out what cards matter based on the end results (which I can provide more of).

1

u/TCF518 Oct 21 '26

So does the bot have it's own preference for openings?

3

u/mihaild Oct 21 '26

Distribution of bot openings (model slightly older than the current one).

1

u/VytautasTheGreat Oct 23 '26

Nice job, this is interesting and thought provoking.

However after playing against the bot this week I'm not sure if it's skilled enough yet to make such fine distinctions.  

I don't consider myself a champion-level player, but over the last few days I've been on an 8-game winning streak against the AI.  It's good and definitely gave me a shock initially, but it still seems to favor risky short-term moves that can be defeated with sound "normal" play.

Moreover there seem to be some side-tracks into genuinely questionable play that the AI heavily favors.  It seems to get maniacally focused on a specific region (not necessarily one where the scorecard is in hand) and ignore severe challenges elsewhere.  This can sometimes be quite hard to counter but more often than not seems to give openings to an enemy with a more global focus.

Therefore I'm skeptical that the single-digit results of your analysis are solid data and not the results of "noise" in the AI's individual playstyle.  In the other thread the creator of the AI mentioned that openings are one of the biggest challenges to optimize because they are the farthest away from the end of the game.  

That said, the step is so big that I'm left with a feeling of not yet, but it's only a matter of time...

2

u/mihaild Oct 23 '26

I agree that it is unlikely these numbers are relevant for games between reasonably competent humans. They could highlight some obvious blindspots (early versions of the model sometimes took Greece at setup; one of today main lines puts 1 point in Panama), but currently I am not sure if real TSFish would put 3 in Yugoslavia or not.

It should certainly be possible to create much stronger model. Whether it requires a better researcher than me (and more compute than I have - current model takes about 30h to train on single GPU) - we will know later.

1

u/VytautasTheGreat Oct 24 '26

Either way it's certainly an impressive effort.

I guess this kind of approach will completely change computer opponents in strategy games, which have always been notoriously bad

1

u/remetagross 16d ago

This is very, very interesting. I must say I'm puzzled by one thing. If the US starts with Marshal Plan, how come it's better to start off 2 Italy/3 France rather than 3 Italy/2 France?

0

u/No_Entrepreneur_9134 Oct 22 '26

Is the DeepStruggle bot publicly available? I love Twilight Struggle but I suck pretty bad at playing it. Would I be able to use the bot as a kind of coach?

2

u/lastchancexi Oct 22 '26

https://www.reddit.com/r/twilightstruggle/comments/1x8ztex/i_trained_a_twilight_struggle_ai_you_can_play/

Link here. Yes, it’s publicly available. And I think it’s a fairly good analysis tool.