• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 00:20
CEST 06:20
KST 13:20
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
herO wins GSL Code S Season 1 (2025)15Code S RO4 & Finals Preview: herO, GuMiho, Classic, Cure6Code S RO8 Preview: Classic, Reynor, Maru, GuMiho4Code S RO8 Preview: ByuN, Rogue, herO, Cure5[ASL19] Ro4 Preview: Storied Rivals7
Community News
Weekly Cups (May 12-18): Clem sweeps WardiTV May3Code S Season 2 (2025) - Qualifier Results212025 GSL Season 2 (Qualifiers)14Code S Season 1 - Classic & GuMiho advance to RO4 (2025)4[BSL 2v2] ProLeague Season 3 - Friday 21:00 CET7
StarCraft 2
General
herO wins GSL Code S Season 1 (2025) Any reason why RuFF's stream is still on sidebar? METATECH RECOVERY PRO should be consulted for hire Power Rank: October 2018 Code S Season 2 (2025) - Qualifier Results
Tourneys
DreamHack Dallas 2025 announced (May 23-25) EWC 2025 Regional Qualifiers SOOPer7s Showmatches 2025 RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S Season 1 - RO4 and Grand Finals
Strategy
Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void Mutation # 472 Dead Heat Mutation # 471 Delivery Guaranteed
Brood War
General
Artosis baned on twitch ? who is JiriKara /Cipisek/ from CZ BGH auto balance -> http://bghmmr.eu/ Pros React To: Emotional Finalist in Best vs Light Where is effort ?
Tourneys
[Megathread] Daily Proleagues [ASL19] Semifinal B Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player Creating a full chart of Zerg builds
Other Games
General Games
What do you want from future RTS games? Stormgate/Frost Giant Megathread Beyond All Reason Grand Theft Auto VI Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread TL Mafia Plays: Diplomacy TL Mafia: Generative Agents Showdown Survivor II: The Amazon
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread UK Politics Mega-thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [Books] Wool by Hugh Howey
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard How to clean a TTe Thermaltake keyboard?
TL Community
The Automated Ban List TL.net Ten Commandments
Blogs
Narcissists In Gaming: Why T…
TrAiDoS
Poker
Nebuchad
Info SLEgma_12
SLEgma_12
SECOND COMMING
XenOsky
WombaT’s Old BW Terran Theme …
WombaT
Heero Yuy & the Tax…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 14312 users

[G] [UMS] Squadron TD - Optimal Worker Build

Forum Index > SC2 Maps & Custom Games
Post a Reply
deo1
Profile Joined April 2010
United States199 Posts
Last Edited: 2011-08-23 02:14:40
August 23 2011 02:09 GMT
#1
Intro
Squadron Tower Defense is an interesting twist on the TD format that pits two teams of 4 players against each other. Each player must attempt to balance their own economy and defense such that they receive the maximum income without leaking (other builds employ teamwork to favor econ or defense, but that is irrelevant for this topic).

To improve one's economy, the player can either build additional SCVs or upgrade the movement speed of the SCVs.

In this guide, I demonstrate the optimal strategy for scheduling the addition and upgrade of SCVs.

Fundamentals
A player starts with 1 SCV and can add an additional 30 SCVs, at a cost of 50 minerals per SCV.

A player can also upgrade the speed of all mining SCVs by 40% up to 5 times. The cost of this upgrade increases by 60 minerals each time, starting at 60 minerals for the first upgrade. Hence:

- Upgrade 1: 60 minerals
- Upgrade 2: 120 minerals
- Upgrade 3: 180 minerals
- Upgrade 4: 240 minerals
- Upgrade 5: 300 minerals

The primary question raised: in what order should one choose to upgrade or build additional SCVs in order to optimize income?

Analysis
+ Show Spoiler +
For my analysis, I rate the value of adding and upgrading as the ratio of that action's benefit to cost, where the benefit is defined as the rate of increase in mining, and the cost is defined as the amount of minerals required for the action.

benefit
benefit of upgrading speed = 0.4
- The speed increase is always 40%, regardless of the number of SCVs currently mining.
benefit of adding SCV = 1/(number of total SCVs)
- For example, adding an SCV when only one is mining improves mining rate by 100%. Adding an SCV when two are already mining improves mining rate by 50%, and so on.

cost
cost of upgrading speed = [60,120,180,240,300]
- Depends on the upgrade step.
cost of additional SCV = 50
- An additional SCV is always 50 minerals.

value = benefit/cost
value of upgrading speed = 0.4/[60,120,180,240,300]
value of additional SCV = ((number of total SCVs)^-1)/50

I evaluated the value of each action in a series of decision steps, choosing the action with the highest value at each step. I performed this evaluation until all SCVs were mining at the maximum speed.


Results
+ Show Spoiler +

Optimal order of adding/upgrading:
Step: 0 - Add SCV
Step: 1 - Add SCV
Step: 2 - Add SCV
Step: 3 - Upgrade SCV
Step: 4 - Add SCV
Step: 5 - Add SCV
Step: 6 - Add SCV
Step: 7 - Upgrade SCV
Step: 8 - Add SCV
Step: 9 - Add SCV
Step: 10 - Add SCV
Step: 11 - Upgrade SCV
Step: 12 - Add SCV
Step: 13 - Add SCV
Step: 14 - Add SCV
Step: 15 - Upgrade SCV
Step: 16 - Add SCV
Step: 17 - Add SCV
Step: 18 - Add SCV
Step: 19 - Add SCV
Step: 20 - Add SCV
Step: 21 - Add SCV
Step: 22 - Add SCV
Step: 23 - Add SCV
Step: 24 - Add SCV
Step: 25 - Add SCV
Step: 26 - Add SCV
Step: 27 - Add SCV
Step: 28 - Add SCV
Step: 29 - Add SCV
Step: 30 - Add SCV
Step: 31 - Add SCV
Step: 32 - Add SCV
Step: 33 - Add SCV

More detailed output:
+ Show Spoiler +
Step: 0 - Add SCV
Total SCVs: 2
Speed: 1.00
Speed Cost: 0

Step: 1 - Add SCV
Total SCVs: 3
Speed: 1.00
Speed Cost: 0

Step: 2 - Add SCV
Total SCVs: 4
Speed: 1.00
Speed Cost: 0

Step: 3 - Upgrade SCV
Total SCVs: 4
Speed: 1.40
Speed Cost: 0

Step: 4 - Add SCV
Total SCVs: 5
Speed: 1.40
Speed Cost: 60

Step: 5 - Add SCV
Total SCVs: 6
Speed: 1.40
Speed Cost: 60

Step: 6 - Add SCV
Total SCVs: 7
Speed: 1.40
Speed Cost: 60

Step: 7 - Upgrade SCV
Total SCVs: 7
Speed: 1.96
Speed Cost: 60

Step: 8 - Add SCV
Total SCVs: 8
Speed: 1.96
Speed Cost: 120

Step: 9 - Add SCV
Total SCVs: 9
Speed: 1.96
Speed Cost: 120

Step: 10 - Add SCV
Total SCVs: 10
Speed: 1.96
Speed Cost: 120

Step: 11 - Upgrade SCV
Total SCVs: 10
Speed: 2.74
Speed Cost: 120

Step: 12 - Add SCV
Total SCVs: 11
Speed: 2.74
Speed Cost: 180

Step: 13 - Add SCV
Total SCVs: 12
Speed: 2.74
Speed Cost: 180

Step: 14 - Add SCV
Total SCVs: 13
Speed: 2.74
Speed Cost: 180

Step: 15 - Upgrade SCV
Total SCVs: 13
Speed: 3.84
Speed Cost: 180

Step: 16 - Add SCV
Total SCVs: 14
Speed: 3.84
Speed Cost: 240

Step: 17 - Add SCV
Total SCVs: 15
Speed: 3.84
Speed Cost: 240

Step: 18 - Add SCV
Total SCVs: 16
Speed: 3.84
Speed Cost: 240

Step: 19 - Add SCV
Total SCVs: 17
Speed: 3.84
Speed Cost: 240

Step: 20 - Add SCV
Total SCVs: 18
Speed: 3.84
Speed Cost: 240

Step: 21 - Add SCV
Total SCVs: 19
Speed: 3.84
Speed Cost: 240

Step: 22 - Add SCV
Total SCVs: 20
Speed: 3.84
Speed Cost: 240

Step: 23 - Add SCV
Total SCVs: 21
Speed: 3.84
Speed Cost: 240

Step: 24 - Add SCV
Total SCVs: 22
Speed: 3.84
Speed Cost: 240

Step: 25 - Add SCV
Total SCVs: 23
Speed: 3.84
Speed Cost: 240

Step: 26 - Add SCV
Total SCVs: 24
Speed: 3.84
Speed Cost: 240

Step: 27 - Add SCV
Total SCVs: 25
Speed: 3.84
Speed Cost: 240

Step: 28 - Add SCV
Total SCVs: 26
Speed: 3.84
Speed Cost: 240

Step: 29 - Add SCV
Total SCVs: 27
Speed: 3.84
Speed Cost: 240

Step: 30 - Add SCV
Total SCVs: 28
Speed: 3.84
Speed Cost: 240

Step: 31 - Add SCV
Total SCVs: 29
Speed: 3.84
Speed Cost: 240

Step: 32 - Add SCV
Total SCVs: 30
Speed: 3.84
Speed Cost: 240

Step: 33 - Add SCV
Total SCVs: 31
Speed: 3.84
Speed Cost: 240


Graph of values for adding SCV vs upgrading speed at each step
[image loading]


Assumptions/Considerations
+ Show Spoiler +
- If the value of adding an SCV equals the value of upgrading SCVs, then I gave preference to adding an SCV. This is because the cost of adding an SCV is always less than upgrading, therefore there is a greater chance that the player will have enough money for the upgrade at a given wave in the game.

- This build order assumes that the player will always have enough money for the optimal upgrade when it comes time. This may not always be true, so the player must evaluate, for example, if it would be better to skip a 240 mineral upgrade in favor of adding 1 or 2 SCVs and waiting till the next round to upgrade. The additional income may be better than following the order precisely, but these variables are too difficult to model, e.g. round times completely vary depending on how quickly both teams kill waves.


Matlab Code
+ Show Spoiler +
[image loading]


How to find this map (tested on NA)
- Starcraft 2 -> Multiplayer -> Join A Game -> By Category -> Tower Defense (usually top hit)
- Or search for "Squadron Tower Defense"
http://www.squadtd.com/ by tsjnsn
Poooooor Protoss.
ssartor
Profile Joined February 2011
United States129 Posts
August 23 2011 05:02 GMT
#2
I have always been curious what the most efficient build was, now if only you could have program running along side of sc that would take into account the part you said was to complicated to model.
"If you don't know, the thing to do is not to get scared, but to learn." — Ayn Rand (Atlas Shrugged)
T.O.P. *
Profile Blog Joined January 2009
Hong Kong4685 Posts
August 25 2011 00:52 GMT
#3
Fancy. Although I was able to come to the exact conclusions by doing a few calculations using the calculator.
Oracle comes in, Scvs go down, never a miscommunication.
DARKHYDRA
Profile Joined September 2006
United States303 Posts
August 25 2011 02:03 GMT
#4
I believe it was posted in squadtd's website.
A good guide line is scv upgrade at 3, 9, 17, 27 and 31 scv's.
T.O.P. *
Profile Blog Joined January 2009
Hong Kong4685 Posts
August 25 2011 11:27 GMT
#5
On August 25 2011 11:03 DARKHYDRA wrote:
I believe it was posted in squadtd's website.
A good guide line is scv upgrade at 3, 9, 17, 27 and 31 scv's.

Did you even read the op?
Oracle comes in, Scvs go down, never a miscommunication.
phaib
Profile Joined September 2007
Germany156 Posts
August 25 2011 12:29 GMT
#6
On August 25 2011 20:27 T.O.P. wrote:
Show nested quote +
On August 25 2011 11:03 DARKHYDRA wrote:
I believe it was posted in squadtd's website.
A good guide line is scv upgrade at 3, 9, 17, 27 and 31 scv's.

Did you even read the op?


I think the op is wrong. When you upgrade two times your SCVs you will get 80% faster mining, but the op calculated that it really gets 40% faster at the second time. That would be 96% at the second upgrade. I haven't checked this by myself, but that is what the guide on the squadtd's website says. With this in mind you get the 3,9,17,27,31 values.
DARKHYDRA
Profile Joined September 2006
United States303 Posts
August 25 2011 19:29 GMT
#7
On August 25 2011 20:27 T.O.P. wrote:
Show nested quote +
On August 25 2011 11:03 DARKHYDRA wrote:
I believe it was posted in squadtd's website.
A good guide line is scv upgrade at 3, 9, 17, 27 and 31 scv's.

Did you even read the op?


Lil bit, why? What's up?
T.O.P. *
Profile Blog Joined January 2009
Hong Kong4685 Posts
August 25 2011 20:28 GMT
#8
On August 25 2011 21:29 phaib wrote:
Show nested quote +
On August 25 2011 20:27 T.O.P. wrote:
On August 25 2011 11:03 DARKHYDRA wrote:
I believe it was posted in squadtd's website.
A good guide line is scv upgrade at 3, 9, 17, 27 and 31 scv's.

Did you even read the op?


I think the op is wrong. When you upgrade two times your SCVs you will get 80% faster mining, but the op calculated that it really gets 40% faster at the second time. That would be 96% at the second upgrade. I haven't checked this by myself, but that is what the guide on the squadtd's website says. With this in mind you get the 3,9,17,27,31 values.

That's funny. They shouldn't have wrote that the upgrade increases scv speed by 40% then. Cause that's deceiving.
Oracle comes in, Scvs go down, never a miscommunication.
phaib
Profile Joined September 2007
Germany156 Posts
August 25 2011 21:34 GMT
#9
There is still the possibility that the guide is wrong, but I guess no one will waste his time to find out what's really correct :-)
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
2025 GSL S1 - Ro8 Group B
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 186
ProTech80
Ketroc 40
StarCraft: Brood War
Britney 3757
Sharp 253
Icarus 6
Dota 2
monkeys_forever577
NeuroSwarm97
League of Legends
JimRising 812
Counter-Strike
Fnx 3566
Super Smash Bros
C9.Mang0776
Mew2King71
Heroes of the Storm
Khaldor134
Other Games
summit1g11254
tarik_tv9735
hungrybox398
PartinGtheBigBoy337
Maynarde226
ViBE149
Trikslyr43
Organizations
Other Games
gamesdonequick1454
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH266
• practicex 28
• Kozan
• Migwel
• sooper7s
• AfreecaTV YouTube
• Sammyuel 0
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift3850
• Lourlo923
• Rush475
• Stunt202
Upcoming Events
Replay Cast
5h 40m
Replay Cast
19h 40m
Replay Cast
1d 5h
Road to EWC
1d 10h
Replay Cast
2 days
SC Evo League
2 days
Road to EWC
2 days
Afreeca Starleague
3 days
BeSt vs Soulkey
Road to EWC
3 days
Wardi Open
4 days
[ Show More ]
SOOP
5 days
NightMare vs Wayne
Replay Cast
5 days
Replay Cast
5 days
GSL Code S
6 days
Cure vs Zoun
Solar vs Creator
The PondCast
6 days
Online Event
6 days
Clem vs ShoWTimE
herO vs MaxPax
Liquipedia Results

Completed

Proleague 2025-05-16
2025 GSL S1
Calamity Stars S2

Ongoing

JPL Season 2
ASL Season 19
YSL S1
BSL 2v2 Season 3
BSL Season 20
China & Korea Top Challenge
KCM Race Survival 2025 Season 2
NPSL S3
Heroes 10 EU
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025
ESL Pro League S21

Upcoming

Rose Open S1
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLAN 2025
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Bellum Gens Elite Stara Zagora 2025
2025 GSL S2
DreamHack Dallas 2025
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.