• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:10
CEST 21:10
KST 04:10
  • 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
HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6Code S RO8 Preview: herO, Zoun, Bunny, Classic7
Community News
Weekly Cups (June 23-29): Reynor in world title form?6FEL Cracov 2025 (July 27) - $8000 live event13Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1Weekly Cups (June 9-15): herO doubles on GSL week4
StarCraft 2
General
Weekly Cups (June 23-29): Reynor in world title form? The SCII GOAT: A statistical Evaluation How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster HomeStory Cup 27 - Info & Preview
Tourneys
WardiTV Mondays HomeStory Cup 27 (June 27-29) SOOPer7s Showmatches 2025 FEL Cracov 2025 (July 27) - $8000 live event $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
StarCraft & BroodWar Campaign Speedrun Quest ASL20 Preliminary Maps BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Unit and Spell Similarities
Tourneys
[BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET [Megathread] Daily Proleagues [BSL20] ProLeague LB Final - Saturday 20:00 CET Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 645 users

Math in Starcraft pt.1 - Page 2

Blogs > ShinyGerbil
Post a Reply
Prev 1 2 All
OpticalShot
Profile Blog Joined October 2009
Canada6330 Posts
Last Edited: 2010-01-10 21:42:13
January 10 2010 21:41 GMT
#21
Wow I love this blog. 5/5

I like the experimentation by d3_crescentia, suits perfectly to my engineering mind, haha.
Maybe someone should try the thing with zealots, yes, more protoss love please~
[TLMS] REBOOT
ShinyGerbil
Profile Blog Joined June 2008
Canada519 Posts
January 10 2010 22:38 GMT
#22
Thanks for the feedback, everyone! I really appreciate all the comments and suggestions. Specifically StRyKeR, it makes perfect sense to use a floor or ceiling function to make steps. However, as said before, making differential relationships between functions like that is terribly difficult (and at the very least super messy).

@ d3_crescentia, wow it's awesome that you went though all the trouble to get those results. I think it's really cool to have an experimental aspect to these ideas, to compliment the theory. Many thanks!
[s]savior[/s] jaedong fighting! // member of LighT eSports
d3_crescentia
Profile Blog Joined May 2009
United States4054 Posts
Last Edited: 2010-01-11 07:53:53
January 11 2010 07:42 GMT
#23
FINAL UPDATE:

I ended up taking data for 13v12 and some other instances. Have some graphs:

[image loading]


A short explanation: since it's difficult to evenly spawn the two symmetric parallel lines of zerglings since one is odd and the other is even, the 13th zergling was added to either the top or the bottom of the line. I tried these instances with both Linear2 and 3 line separation distances (refer to my earlier attempts for a better idea). Looking at the graph of Linear3.1 specifically it's here where we start to realize that 100 trials is definitely not enough to give us accurate data. Still, it seems to suggest a peak at either 4 or 5, which is close, given the imperfect nature of the experiment.

[image loading]


To see if anything interesting would happen, I added the results from Linear2.1 and 2.2, and 3.1 and 3.2 together and plotted them, though this would compound the experimental error significantly if I was doing this seriously (for that matter, if I was doing this seriously, I wouldn't be using Excel). Again, suggestion of a peak at 4-5, but we need more trials to be accurate.

[image loading]


Lastly, some other trials for people that are interested. These are runs of 101 trials of Linear2 setup (with the exception of 18v15) - enough to suggest peaks, but we're starting to get to the point where 100 trials is not enough. We have a predicted peak for 17v15 at 8 and an actual at 9-10. For 20v16, this is simply a multiple of 10v8, which should give a peak at 12, but more trials are necessary to see if it does indeed occur there. It could also be that the mathematical model fails at larger numbers of zerglings for whatever reason.

*The run of 18v15 was entirely a mistake - I set my triggers to spawn an extra zergling in the 17v15 run. By the time I had noticed, it was already >70% completed. Truth be told, this data doesn't look too bad, as the peak should be at about 10 (root(99) to be exact), but again - more trials to be sure.

+ Show Spoiler [Speculation] +
Discounting the points at zero, it seems that the distribution climbs more gradually before the peak and falls more steeply after the peak. Having been trained as a physicist, I've only encountered such a graph once before. If we reverse the x-axis and define it in terms of zerglings lost for player 1 (with the surviving zerglings simply being added to the 'lost' count), then we can get something that looks like:

[image loading]

The Maxwell-Boltzmann distribution for particle speeds in gases. Of course, more trials may end up telling us that this is not entirely the case, and I can't discount the fact that I'm just pulling things out of my ass right now. But, if there's a connection between the two (as unlikely as it is), I'll see if I can't find it.


I also tried experimenting with different concave formations in the 10v8 scenario to see if the 8 could win, but none of them turned out very well.

Some conclusions/possible improvements:
- Probably a good mathematical model for 1-2 control groups of lings under ideal circumstances.
- The next possible avenues of inquiry involve different zergling formations (clumps, perpendicular lines, concave) or with larger groups of lings and more trials.
- Zergling AI, while not as bad as Dragoon AI, can still be pretty bad.
- Possible UMS improvement - having an internal counter of each trial, as I double-checked the leaderboard after every engagement (not difficult, just tedious). This is rather difficult/boring with StarEdit alone, but I don't think it will be too much better with SCMDraft.

This was a lot of fun - I miss doing scientific-ish things, so it was refreshing and entertaining to do it for SC. It was also nice to work on a UMS map again, especially since I have a tendency to set projects too big for me to finish quickly. If you come up with other things to experiment, let me know and I'll see if I can give it a shot testing it.
once, not long ago, there was a moon here
figq
Profile Blog Joined May 2010
12519 Posts
May 31 2010 21:34 GMT
#24
Thank you for this thread, and I hope you continue with deeper math analysis of Starcraft. For example, it's interesting to investigate how acceleration affects gameplay with various speed caps.
On January 10 2010 20:22 ShinyGerbil wrote:So as we can see, if an army of ‘a’ Zerglings engages an army of ‘b’ Zerglings with a>b, the remaining number is speculated at sqrt(a^2-b^2), which I found very interesting because it maps out the sides of a right angled triangle (Pythagorean Triples). Some interesting applications include:
5 vs 4, 3 survive
13 vs 12, 5 survive
17 vs 15, 8 survive
Indeed, due to fragmentation of armies most calculations are based on L2-normed space (or Pythagorean metric), adjusted to include standard deviation, due to non-deterministic randomness. The volatility factor is quite high, so this makes the outcomes of most evenly matched battles fairly unpredictable. Therefore, people shouldn't be too quick to conclude anything from the outcome of a Starcraft battle.
If you stand next to my head, you can hear the ocean. - Day[9]
G3CKO
Profile Blog Joined March 2009
Canada1430 Posts
May 31 2010 21:38 GMT
#25
You probably have to get into difeq
┌⋉⊳∀⊲) ☆ If your soul has not truly given up, then you can hear the sound that races through the end of the world.
Garrl
Profile Blog Joined February 2010
Scotland1972 Posts
Last Edited: 2010-05-31 22:14:03
May 31 2010 22:12 GMT
#26
Hmm, it'd be interesting to put together a BWAPI "perfect micro" bot to see exactly what the results are, although it'd be pretty difficult - what do we consider "perfect" to be

If anyone can give me a clear rules of what perfect micro is, I could try it (and probably fail, but that's besides the point).
Impervious
Profile Blog Joined March 2009
Canada4198 Posts
June 01 2010 01:09 GMT
#27
My thoughts on perfect micro.
+ Show Spoiler +
For individual controls, I'd guess that they should retreat before dying (with 1 hit left on them, waiting for their health to return), as well as retreat from 1v1 battles where they will lose (ie, they have less health than the enemy unit). They should run from 2(+)v1 battles (unless they will win them), and attempt to engage in 2(+)v1 battles (unless they will take any casualties). Target priority should go to the enemy units with the least health left. Attempt to prevent overkill somehow as well.....

After that, you'll have to incorporate multi-unit positioning into it, to form concaves, and trap running enemies. That will be much, much trickier.....

And then, there are times where taking some damage gets multiple units into better positions, allowing the combined group to do much more damage than if the individual followed the set rules..... There will also be times where one needs to retreat, to give another room to retreat to prevent it from dying..... this part will be next to impossible to code, if not impossible.....

Of course, if you were to do this with the group with less lings, and have normal micro on the group with more, I would fully expect them to win without taking any casualties (assuming a large space to work with, and more than 1 ling is involved for them).....

If it was done right, I doubt Jaedong could win with 2X the lings..... It might be powerful enough that it could eventually defeat hundreds of lings under his control with only 2 under perfect micro.
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
illu
Profile Blog Joined December 2008
Canada2531 Posts
June 01 2010 01:26 GMT
#28
let this guy go to berkeley...
:]
Megaman703
Profile Blog Joined September 2009
Canada688 Posts
June 01 2010 01:59 GMT
#29
the US has stolen enough of our doctors, scientists and engineers, they don't need to steal our SC players, thank you very much.
Exteray
Profile Blog Joined June 2007
United States1094 Posts
June 01 2010 02:38 GMT
#30
x_0
nosliw
Profile Blog Joined December 2008
United States2716 Posts
June 01 2010 03:57 GMT
#31
looking forward to part 2
Ivs
Profile Joined January 2008
Australia139 Posts
June 01 2010 04:36 GMT
#32
It is possible to derive the same thing without actually solving the differential equations. Basically you want to show F^2-G^2 is invariant. Differentiating
2F.F' - 2G.G'=2F.(-kG) - 2G.(-kF) = 0
gives you that F^2-G^2 is constant and the rest follows.
illu
Profile Blog Joined December 2008
Canada2531 Posts
June 01 2010 04:53 GMT
#33
On June 01 2010 10:59 Megaman703 wrote:
the US has stolen enough of our doctors, scientists and engineers, they don't need to steal our SC players, thank you very much.


We steal those from Third World countries...
:]
]343[
Profile Blog Joined May 2008
United States10328 Posts
June 01 2010 11:52 GMT
#34
oh rofl my roommate and I did a math modeling project on this like last november, and then a bunch of people modeled these small unit battles for our modeling with differential equations class just yesterday... let's see if we can obtain copies of those to put up here ;o
Writer
meeple
Profile Blog Joined April 2009
Canada10211 Posts
Last Edited: 2010-07-09 13:07:22
June 01 2010 17:21 GMT
#35
On June 01 2010 10:26 illu wrote:
let this guy go to berkeley...


Edit: I was mistaken...

Also... I love this theoretical gaming stuff. I was working with my game theory prof to do some simplistic starcraft analogies a little while ago.
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
Monday Night Weeklies
16:00
#20
SteadfastSC730
FunKaTv 428
ZombieGrub281
BRAT_OK 225
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 815
FunKaTv 428
ZombieGrub281
BRAT_OK 225
MaxPax 204
MindelVK 19
StarCraft: Brood War
Calm 2630
Rain 2174
Horang2 796
EffOrt 566
Mini 407
Stork 255
firebathero 198
Soulkey 120
sas.Sziky 66
Rush 63
[ Show more ]
soO 24
Free 23
Shinee 4
Bale 2
Dota 2
qojqva3290
League of Legends
Grubby2468
JimRising 66
Counter-Strike
Stewie2K267
sgares264
Super Smash Bros
Mew2King141
Heroes of the Storm
Liquid`Hasu435
Other Games
fl0m2074
FrodaN2033
ceh9683
mouzStarbuck522
KnowMe281
Pyrionflax59
Trikslyr58
RushiSC25
ToD20
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• kabyraGe 240
• LUISG 23
• Kozan
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• 80smullet 13
• Azhi_Dahaki7
• Pr0nogo 4
• FirePhoenix4
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• TFBlade1503
• masondota2636
Other Games
• imaqtpie1249
• Shiphtur341
Upcoming Events
Replay Cast
4h 50m
Wardi Open
15h 50m
PiGosaur Monday
1d 4h
The PondCast
1d 14h
Replay Cast
2 days
RSL Revival
2 days
WardiTV European League
2 days
Replay Cast
3 days
RSL Revival
3 days
WardiTV European League
3 days
[ Show More ]
FEL
3 days
Korean StarCraft League
4 days
CranKy Ducklings
4 days
RSL Revival
4 days
FEL
4 days
Sparkling Tuna Cup
5 days
RSL Revival
5 days
FEL
5 days
BSL: ProLeague
5 days
Dewalt vs Bonyth
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.