• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:30
CEST 02:30
KST 09:30
  • 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
[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244
Community News
StarCraft open world shooter announced at BlizzCon47Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10Official StarCraft website teases new content ahead of BlizzCon?158Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3
StarCraft 2
General
StarCraft open world shooter announced at BlizzCon Balance hotfix patch 5.0.16b (July 16) Team Liquid Map Contest #22: Results and Winners Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism SC4ALL: II Winner will earn a spot at HSC 30!
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 KSL Week #92 IntoTheTV X SOOP SC2 League : Weekly & Monthly 2026 GSTL Announcement Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 542 The Ascended Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Official StarCraft website teases new content ahead of BlizzCon? Broodwar Prediction Market Practice Partners (Official) [D] Brainstorming a balance patch for Brood war
Tourneys
[ASL22] Ro16 Group A [ASL22] Ro16 Group B Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Game Theory for Starcraft
Other Games
General Games
EVE Corporation Diablo IV Nintendo Switch Thread [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread UK Politics Mega-thread Things Aren’t Peaceful in Palestine Trading/Investing Thread Russo-Ukrainian War Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Diablo Animated Series on Netflix Movie Discussion!
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Virtual Romance, Real-Life C…
TrAiDoS
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10195 users

Need ideas: calculating a Starcraft match

Blogs > r3dox
Post a Reply
r3dox
Profile Blog Joined May 2003
Germany261 Posts
Last Edited: 2009-03-26 12:26:48
March 26 2009 12:22 GMT
#1
This is for programmers/logic people, but ideas of others are welcome too.

Short Version:
Suppose u have a model of a starcraft player with skills like micro/macro/etc. (whatever u can think of) with values ranging from 0 to 99.

Im looking for a way to compute the winner of a starcraft match based on those values. (not the same player winning all the time, but that the better players wins a higher percentage)


Long Version:
The idea is to make a StarcraftManager browser game where u manage your team, train your players, make the lineups and have your teams compete in leagues.

matches between players will have to be calculated based on the various factors involved i.e. player skills, race matchup, map, used strategy (allin cheese, fastexpo etc), match situation (being down 2-0 in a BO5, ace match etc).

bonus:
it would be nice to have the generation of certain events that can be used to have a description of a played match.

example:
for the football browser game at www.hattrick.org the match engine roughly goes like this:
the playmaking and stamina skill of your midfield players make up your midfield value. compared to your opponents midfield value this determines ball posession. based on ballposession there will be "scoring attempt"-events for each team. based on the forwards scoring ability and the defender+keepers defending ability the success of a scoring attempt is computed (semi-randomly).

this will generate a series of reportable attempts and goals and finally a result of the match

things you could consider:

player:
micro, macro, multitasking, timing, pressure handling, buildorders, experience, map knowledge, fatigue from playing/training

map:
number of starting locations, rushing distance, number of gas expoes

match:
pressure situation, previous games of these players

desired properties:
- a high skilled player always crushes a newbie
- a PvZ expert crushes a ZvT expert
- 2 equally skilled players, player1 goes FE, player2 goes allin rush, early in the match player2 has an advantage to end the game, players1 needs micro/pressure handling to defend. if he defends player2 is at a huge disadvantage

basic idea:
modelling the economy and the army (size, position, special units like DTs) and having them influence one another on regular events

or do you think this would be way too complex to implement?

fanatacist
Profile Blog Joined August 2007
10319 Posts
Last Edited: 2009-03-26 12:43:59
March 26 2009 12:43 GMT
#2
I think there are way too many external factors to be considered that would make any system of this sort not as accurate as you may hope. Progamers get injured, get sick, etc., how do you account for that? How much of a handicap do you give to an amateur in a pressure situation? There is no way to give a concrete value to these things, and thus impossible to measure from 0 to 99. Your ratings will most likely be subjective in EVERY category, and you have to have data from ALL games played by that player for it to be accurate. I don't think you have the time or objectivity to collect data with that in mind. Also, the best player does NOT always win, you will never be able to make a model that will make that happen or predict the result. Sorry.

One solution I can come up with is something like this, although the entire concept of a model of this sort is weak in general.

You go back to the beginning of every progamer's (or at least the two you are focusing on in a match) career, and start them both at 0 points in all categories.

Every televised win is +5 points to player rating, +1 to pressure game clutch
Every televised loss is -5 points to PR, -1 to clutch
Every win vs. a person with a higher ELO is +7 points, +2 clutch
Every loss vs, a person with a lower ELO is -7 points, -2 clutch
Every game in a Ro8 has the points multiplied by 1.5
Ro4 multiplied by 2
Finals multiplied by 3
Every win/loss vs. race X is +/-5 points to vX
Each consecutive loss vs. player X costs more clutch (-1.5 for the second loss, -2 for the third loss, -3 for fourth, etc.)
Breaking a streak of losses vs. player X gives the amount of clutch you would have lost (+3 for a win after 3 losses)
Breaking a streak of wins vs. player X by losing to him takes away from you the amount of clutch he would have lost (-3 for a loss after 3 wins)
Consecutive wins would work under a similar principle


Etc. etc.

There are tons of conditions you can come up with, and I'm sure there is a way to do this in spreadsheet if you have little programming experience. However, this will still not be perfect and will not be able to predict the winner with anywhere near 100% certainty. If there was a unifying hierarchy like this (ELO doesn't really predict anything, Bisu vs. by.hero, etc.) then devoted people would be getting 99% on Liquibet because any chump could find this magical rock-paper-scissors model.

Also note how the system I mentioned would be taking every game, past and future, into account. Any model that does not do the same will fail. The other problem is how would it account for rises and falls of player skills? Kespa rating is nefarious for this.

Basically, this is very difficult and the results will not be what you want, but if you want something fun and not entirely concrete, go ahead and make it [:
Peace~
Scaramanga
Profile Blog Joined March 2008
Australia8093 Posts
March 26 2009 12:43 GMT
#3
http://www.teamliquid.net/forum/viewmessage.php?topic_id=82691
Loda talked about the fun counter, it's AdmiralBulldog on his natures prophet
fanatacist
Profile Blog Joined August 2007
10319 Posts
March 26 2009 12:46 GMT
#4
Oh that is the kind of thing he was talking about?

-_-

FML
Peace~
miseiler
Profile Blog Joined October 2008
United States1389 Posts
Last Edited: 2009-03-26 12:50:12
March 26 2009 12:48 GMT
#5
I think you're overthinking this, depending on what you're actually trying to do.

For instance, 1 and 2 of your "desired properties" can modeled simply by comparing ELO and competence in the matchup (i.e., 80% ZvZ in jaedong's case, etc). There is always a small chance a newbie will win, so this should be a linear scale normalised to 1 to determine the probability of victory. In my opinion, you should also consider map strength for a particular matchup. That should cover 90% of games, and all the data is available in the TLPD.

I suspect you're trying to win the fantasy proleague. In which case, I'll tell you how that's done.

What you're after is called a Monte Carlo (MC) simulation. It's based on a Markov model (or Markov Chains, or whatever you want to call it), which is just a fancy word for random process. Basically, you make a table of every possible matchup (every player vs every player, on each map), and record the probability of victory for each player based on that matchup. That gives you the Markov model. Obviously, the more complex you make the model (adding factors as you mention them above), the more accurate it will likely become. But what I mentioned is probably enough.

**You should be wary of people in TLPD with 100% matchup percentages because they haven't played many games.**

Dealing with small sample sizes is left as an exercise to the reader.

At this point, you can run a simulation. Assuming random matchups from each team in proleague (not true, obviously, I'll get to that in a sec), pick four players from each team and simulate the outcome of each game by randomly selecting the winner weighted on the probability of victory in that matchup (which you've already calculated). Run the match as usual; if the match ends up 2-2 have an ace match, etc.

From there, simulate the entire season, and you should have your team winner, as well as statistics collected on each player.

Do this several million times (shouldn't take more than a minute or two, unless you've done something wrong in your algorithm), and average the outcomes. Over time, you should have a very accurate idea of how each player will perform. Simply pick the "perfect team" from these data.

This is *exactly* how betting parlours calculate bets. There are incredibly complex models which are simulated many millions of times. It works, otherwise they wouldn't make money

So, back to the matches. Obviously coaches aren't stupid; you'll have to assign probabilities that different players will be sent out on different maps. Another exercise for the reader.

And no, this isn't that complex to implement. I use monte carlo simulations for tons of things. The hardest thing by far is to generate the model. Once that's done, the actual simulation part is just a long for-loop with some decisions and logging functions.

EDIT: fanatacist brings up a great point: past match history between two players. Just add it to my small list of factors above
"Jinro soo manly wearing only a T-Shirt while the Koreans freeze in their jackets" -- Double_O
"He's from Sweden, man. We have to fight polar bears on our way to school." -- Yusername
3 Lions
Profile Blog Joined October 2007
United States3705 Posts
Last Edited: 2009-03-26 12:51:00
March 26 2009 12:50 GMT
#6
You should look at the browsergame wc3manger.com...which has closed down and still hasn't returned my money >.<

Anyways, here's what I think the different stats should be.

Game Sense
Speed
Micro
Macro

Morale
Stamina

Experience


edit: are you a programmer? If so PM me and maybe we could try to make SCManager, as I have a bunch od ideas but don't know shit about programming
r3dox
Profile Blog Joined May 2003
Germany261 Posts
Last Edited: 2009-03-26 13:13:39
March 26 2009 13:08 GMT
#7
thanks for your replies

On March 26 2009 21:48 miseiler wrote:
I suspect you're trying to win the fantasy proleague. In which case, I'll tell you how that's done.

no im not doing this for fantasy proleague and also i dont want to win liquibet
also i dont want to calculate the winner of 2 actual progamers based on their historical stats.

the idea is to create a fictional browser game.... this is not based on actual progamers!

im just looking for a way to simulate a starcraft match based on skills of the players, the map, the match etc.
you can decide which skills players have and how much they influence the match engine!!

also it would be great to generate some sort of report for a match, so users of the browsergame can kinda review what was going on in the match.

On March 26 2009 21:50 3 Lions wrote:
edit: are you a programmer? If so PM me and maybe we could try to make SCManager, as I have a bunch od ideas but don't know shit about programming

yes im a programmer but this blog post is supposed to be the discussion platform
HamerD
Profile Blog Joined January 2008
United Kingdom1922 Posts
March 26 2009 13:45 GMT
#8
i wonder if anyone commenting here has ever played a football manager game. They have like 20 stats for each player. That's the feeling the OP wants to get I guess, a real comprehensive, possibly overly comprehensive rinse down of all possible attributes. PS there is nothing more complicated about Starcraft players' skillsets than football players, and they have made several successful football manager games ¬¬. It's probably quite doable even without a big programming team.
"Oh no, we've drawn Judge Schneider" "Is that bad?" "Well, he's had it in for me ever since I kinda ran over his dog" "You did?" "Yeah...if you replace the word *kinda* with *repeatedly*...and the word *dog* with son"
stet_tcl
Profile Blog Joined May 2008
Greece319 Posts
Last Edited: 2009-03-26 15:25:11
March 26 2009 14:59 GMT
#9
This is very interesting! I've been thinking about something like this but I lack the dedication and time required..

I think the model you describe is a very good start, yes it will be difficult to implement but no I dont think it will be too complex.

Some quick ideas/suggestions:
On March 26 2009 21:22 r3dox wrote:
player:
micro, macro, multitasking, timing, pressure handling, buildorders, experience, map knowledge, fatigue from playing/training

You should perhaps include scouting in there. Maybe something like:
In case of a rush:

If a scouting (should factor experience as well?) check fails, apply a certain multiplier (<1) to the players micro skills when defining if he will survive the attack.
Use the result to continue the simulation with the players' economies modified accordingly.


map:
number of starting locations, rushing distance, number of gas expoes

Rush distance should have various values ie for cross or close positions in 4 player maps etc
Also, it may get dangerously alike to MyStarcraft but race balance stats for each map may be difficult to avoid.

Honestly, the way a mach should be simulated depends on the level of realism and complexity you want the match engine to have.

You could go for anything ranging from:
Mix all the stats in a big calculation with the appropriate factors and randomness and display the result.
to
-Determine the initial bo of each player,
-include harassment events and battles using the micro, macro and multitasking stats,
-have the players expand depending on their advantage, risk taking etc
-do 2 again
etc

The danger is that the closer you get to the last method the more difficult it will be to get realistic results.

I also agree with fanatacist on the fact that it may get very subjective rating each players skills, especially for less known ones. The only way around this i can think of is to have a relatively large number of people who follow the scene (should be too hard lol) rate each player as objectively as possible and get the stats from that.

I hope this helps, I'm sorry for the text wall

EDIT: lol i just noticed. Hi r3dox this is soup :D
axion
Profile Blog Joined October 2008
Norway110 Posts
Last Edited: 2009-03-26 17:09:07
March 26 2009 16:39 GMT
#10
edit:
KaasZerg
Profile Joined November 2005
Netherlands927 Posts
March 26 2009 16:47 GMT
#11
Way too complex to model. It wouldn't be a very good predictor.

For the hack of it.

In this model with multipliers a glaring weakness is a heavy punishment. Every variable get a different weight for each stage of the game.
micro x (early game)weight x macro x (early game) weight x multitasking (early game) weight x timing x (early game) weight x pressure handling x (early game) weight x buildorders x (early game) weight x experience x (early game) weight x map knowledge x (early game) weight x fatigue from playing/training x (early game) weight etc. etc. etc.=Value

Devide Value player A with Value player B. Use a probabiltyformula to for a spread like a bell curve. Games won/lost by A in early game. Probabilty game hasn't won by either players.

A percentage of the games hasn't been won in this stage.
Repeat the proces with different weights for mid game.

You get something like
Early game:
Chance player A wins %+Chance player B wins%+neither%=100%
Mid game
Chance player A wins% x (% neither won early game)

I m not going to finish this because THIS IS MADNESS
But you can see where this is going at.

This is all I could come up with on the fly and I haven't done this for a decade or so.

SaRangHaE
Profile Blog Joined July 2005
United States182 Posts
March 26 2009 16:59 GMT
#12
Don't really get it, is it suppose to be be like fantasy football? fantasy proleague ROFL
don't taze me bro
Please log in or register to reply.
Live Events Refresh
OSC
20:30
Masters Cup #151
davetesta34
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 431
ViBE145
NeuroSwarm 111
StarCraft: Brood War
Britney 12327
Artosis 489
NaDa 69
Dota 2
monkeys_forever413
canceldota103
League of Legends
Doublelift6957
JimRising 577
Counter-Strike
fl0m5130
Coldzera 1448
minikerr47
Super Smash Bros
C9.Mang0397
Heroes of the Storm
Liquid`Hasu493
Other Games
summit1g10348
B2W.Neo1024
RotterdaM282
XaKoH 162
Sick111
Trikslyr55
Organizations
Heroes of the Storm
Heroes of the Storm1554
StarCraft 2
StarCraft794
StarCraft: Brood War
Afreeca ASL 586
Other Games
BasetradeTV195
[ Show 12 non-featured ]
StarCraft 2
• Hupsaiya 114
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Azhi_Dahaki13
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21945
Other Games
• imaqtpie793
Upcoming Events
Sparkling Tuna Cup
9h 30m
WardiTV Invitational
10h 30m
ByuN vs Percival
Cure vs Classic
Shopify Rebellion Sundays
14h 30m
Spirit vs Mixu
Clem vs TBD
RSL Revival
15h 30m
Serral vs Rogue
BlizzCon
18h
IdrA vs MC
Replay Cast
23h 30m
Afreeca Starleague
1d 9h
Light vs JyJ
Soulkey vs hero
WardiTV Weekly
1d 10h
Monday Night Weeklies
1d 15h
Afreeca Starleague
2 days
Snow vs Shinee
Shine vs EffOrt
[ Show More ]
GSL
2 days
PiGosaur Cup
2 days
The PondCast
3 days
Kung Fu Cup
3 days
Replay Cast
3 days
KCM Race Survival
4 days
IntoTheTV X SOOP
4 days
Replay Cast
4 days
IntoTheTV X SOOP
5 days
Replay Cast
5 days
GSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #5 - TRS
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
Blizzard Classic Cup 2026
Blizzard Classic Cup 2026
RSL Revival: Season 6
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
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 © 2026 TLnet. All Rights Reserved.