• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:15
CEST 00:15
KST 07:15
  • 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
TL.net Map Contest #21: Voting7[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)79Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
Revisiting the game after10 years and wow it's bad 5.0.15 Patch Balance Hotfix (2025-10-8) TL.net Map Contest #21: Voting How to Block Australia, Brazil, Singapore Servers The New Patch Killed Mech!
Tourneys
SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams LiuLi Cup - September 2025 Tournaments Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BW General Discussion [Interview] Grrrr... 2024 Question regarding recent ASL Bisu vs Larva game BW caster Sayle Map with fog of war removed for one player?
Tourneys
[ASL20] Semifinal B [ASL20] Semifinal A SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues
Strategy
Relatively freeroll strategies Current Meta BW - ajfirecracker Strategy & Training Siegecraft - a new perspective
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Series you have seen recently... Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1221 users

Color/Race Distribution of Random in Brood War

Forum Index > BW General
Post a Reply
rossmerickson
Profile Joined February 2018
6 Posts
November 06 2020 11:20 GMT
#1
So I heard Tasteless and Artosis agree that different colors seemed to get certain races a different amount of the time. The obvious initial reaction to that is to say that it's some kind of cognitive bias, but I wanted to check anyways.

The first thing I did was boot up Brood War and start a game on an 8 player map. I set all 8 players to random, revealed the map, and wrote down what race corresponded to each color (Red, Blue, Cyan, Purple, Orange, Brown, White, and Yellow). I did this 96 times. Around 25 times in, I started to notice that every single game, the race distributions would be 3, 3, and 2; so there was allowed to be a maximum of 3 of any race and a minimum of 2. Naturally, this will make the results significantly less random (I assume). However, here are my results:

[image loading]


I had to learn a lot about statistics to figure this out. Anyways, the chi-squared for Blue (the color Flash consistently picked in the Ro4) gave a 96% chance that it is not a 1/3-each distribution of races, and that Protoss is significantly more likely than the other two races. White, Orange, and Red were also possible hits, but it's unsure, and the others seem to be pretty straightforward.

If I was to re-do the experiment, I would first try to find out the rules for the cap of how many races there have to be in any given scenario, find out the maximum number of players I can have to ensure randomness, and do it again. The way I did this, it's possible that some other factors were playing into certain colors being skewed, like the order that the colors pick their race or something.

What do you guys think? Is this something, or nothing?
lurkgoon
Profile Joined November 2020
11 Posts
Last Edited: 2020-11-06 12:59:05
November 06 2020 12:51 GMT
#2
It's interesting that blue shows a very high likelihood of bias. Nice find.

In 8 player games where all players go random, the race distribution will indeed always be 3-3-2.

Also, when both players go random in 1v1, it's very unlikely to be a mirror match. I'm a bit hazy on the details but I think it's a 1/24 chance, and the actual formula to get to that is obscure and bizarre. It was posted on here sometime back with various scenarios and I believe the specific race a player is also affects the distribution of the 'other two' (non-mirror) races of the random player as well.

For improvements on your testing, I'd recommend trying to reproduce what happens in Flash random games as closely as possible - meaning 1v1 game, with the exact game mode, number, race etc. of players and observers. It's possible/likely that some of these variables are intertwined, so higher likelihood of protoss in an 8 player game may not necessarily hold for games with less players.

I personally think Flash is onto something here and he's not just picking blue because he likes the color.
lurkgoon
Profile Joined November 2020
11 Posts
November 06 2020 13:12 GMT
#3
tec27 posted an awesome explanation of how random works in this game depending on selections, though no mention of color in there. I'm not even sure if it was something he was looking for (?) or it is part of a different section of code. Who knows.

Post #18 in this thread: https://tl.net/forum/brood-war/413197-few-mirrors-when-both-players-random
rossmerickson
Profile Joined February 2018
6 Posts
November 06 2020 14:17 GMT
#4
On November 06 2020 21:51 lurkgoon wrote:
It's interesting that blue shows a very high likelihood of bias. Nice find.

In 8 player games where all players go random, the race distribution will indeed always be 3-3-2.

Also, when both players go random in 1v1, it's very unlikely to be a mirror match. I'm a bit hazy on the details but I think it's a 1/24 chance, and the actual formula to get to that is obscure and bizarre. It was posted on here sometime back with various scenarios and I believe the specific race a player is also affects the distribution of the 'other two' (non-mirror) races of the random player as well.

For improvements on your testing, I'd recommend trying to reproduce what happens in Flash random games as closely as possible - meaning 1v1 game, with the exact game mode, number, race etc. of players and observers. It's possible/likely that some of these variables are intertwined, so higher likelihood of protoss in an 8 player game may not necessarily hold for games with less players.

I personally think Flash is onto something here and he's not just picking blue because he likes the color.


Eesh, I hope observers wouldn't be involved. That would be a huge pain lol.

On November 06 2020 22:12 lurkgoon wrote:
tec27 posted an awesome explanation of how random works in this game depending on selections, though no mention of color in there. I'm not even sure if it was something he was looking for (?) or it is part of a different section of code. Who knows.

Post #18 in this thread: https://tl.net/forum/brood-war/413197-few-mirrors-when-both-players-random


Thanks, that's really helpful actually.
LML
Profile Blog Joined March 2007
Germany1771 Posts
November 06 2020 14:20 GMT
#5
On November 06 2020 22:12 lurkgoon wrote:
tec27 posted an awesome explanation of how random works in this game depending on selections, though no mention of color in there. I'm not even sure if it was something he was looking for (?) or it is part of a different section of code. Who knows.

Post #18 in this thread: https://tl.net/forum/brood-war/413197-few-mirrors-when-both-players-random


You can directly link to posts, btw:
https://tl.net/forum/brood-war/413197-few-mirrors-when-both-players-random#18
Just click on the date/time in the header of the post and it will adjust the URL in your browser with a link to the post.
LML
rossmerickson
Profile Joined February 2018
6 Posts
November 06 2020 14:30 GMT
#6
So I'm gonna retry this, 1v1, gonna try out some random colors. Obviously I'll start with Blue and we'll go from there.

Looking back, I'm not even sure the first experiment was even any good at all. It just auto-loaded the 8 colors I listed, but that's clearly different from the 20 choices that you get if you start up a LAN game. I wonder if they're not even related, like in the same section of the programming.

I guess we'll see what happens. I'll try to update in the next day or two.
Optimate
Profile Joined August 2020
249 Posts
November 06 2020 14:36 GMT
#7
Ross something to take into consideration is certain colors not being selectable on certain types of maps. Like orange on a desert or white on a snow map or green on a grass map. I don’t know how that works but I think you aren’t supposed to be allowed to pick the color?
rossmerickson
Profile Joined February 2018
6 Posts
November 06 2020 15:24 GMT
#8
Alright, so I tried exactly as they did it:

RvZ
Random chooses the color Blue, Zerg chooses the color Random
Top vs Bottom, which is the game mode they chose
50 games on Fighting Spirit
I got:

13 games of Terran
22 games of Zerg
15 games of Protoss

According to a Chi-squared distribution with 2 degrees of freedom, that has a 60% likelihood of happening with random chance.

My brain is absolutely shot. I have not much to think about this anymore, because quite frankly I can't think anymore.

I'm glad I did this, and I had fun doing it, but I would not recommend anybody else do it, unless you are as autistic as I am.
pebble444
Profile Blog Joined March 2011
Italy2497 Posts
November 06 2020 15:43 GMT
#9
such a random thread
"Awaken my Child, and embrace the Glory that is your Birthright"
M3t4PhYzX
Profile Joined March 2019
Poland4220 Posts
November 06 2020 16:21 GMT
#10
On November 07 2020 00:43 pebble444 wrote:
such a random thread

*ZING*
odi profanum vulgus et arceo
Abjurer
Profile Blog Joined April 2009
Sweden208 Posts
November 06 2020 17:25 GMT
#11
I would suspect that one's color does not impact the randomization of race. If it did then Tec_27 would find mentions of some "selected color" variable when looking through the code in RandomizeRaces() and
GetRandomRace(...).

Unless this was added later in remastered, the plot thickens..
bw<3 cj<3
JieXian
Profile Blog Joined August 2008
Malaysia4677 Posts
Last Edited: 2020-11-06 18:23:32
November 06 2020 18:23 GMT
#12
great work from a crazy guy. I respect your commitment
Please send me a PM of any song you like that I most probably never heard of! I am looking for people to chat about writing and producing music | https://www.youtube.com/watch?v=noD-bsOcxuU |
Brainojack
Profile Joined March 2018
Canada195 Posts
November 07 2020 13:50 GMT
#13
He was sitting in the blue chair for the match I think he was picking blue to match for the broadcast
Please log in or register to reply.
Live Events Refresh
Next event in 12h 45m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 171
StarCraft: Brood War
Britney 13841
Calm 2540
Larva 440
EffOrt 405
Artosis 206
UpATreeSC 119
Counter-Strike
Foxcn263
PGG 58
Other Games
Grubby3095
ScreaM1416
shahzam621
C9.Mang0162
ViBE77
PPMD32
Liquid`Ken21
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• musti20045 50
• intothetv
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• blackmanpl 19
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Doublelift5093
Other Games
• imaqtpie2049
• Scarra462
• WagamamaTV315
• Shiphtur304
Upcoming Events
Wardi Open
12h 45m
CranKy Ducklings
1d 11h
Safe House 2
1d 18h
Sparkling Tuna Cup
2 days
Safe House 2
2 days
Tenacious Turtle Tussle
6 days
The PondCast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.