• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:33
CET 14:33
KST 22:33
  • 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
WTL 2023 Summer - Qualifiers Preview + Power Rank5[Interview] Dewalt18Tournament Spotlight: Crowdfunded Pre-Season Events15[ASL15] Ro24 Preview: Welcome Back!24A Tidal Wave in Still Water - Oliveira at IEM Katowice22
Community News
Liquibet SC2 Season 27 Recap11SCboy: 2023 Tournament Plans8ESL Open Cup #166: Dark, MaxPax, ByuN win4Classic, DRG, Nice, and Strange join Mystery Gaming13Team DPG and KZ Merge, rebranded as DKZ.23
StarCraft 2
General
WTL 2023 Summer - Qualifiers Preview + Power Rank Tournament Spotlight: Crowdfunded Pre-Season Events The Death of Korean SC2, and Where We Go From Here Liquibet SC2 Season 27 Recap SCboy: 2023 Tournament Plans
Tourneys
[WTL 2023] Summer Qualifier and Code A $10,000 PIG STY FESTIVAL 3.0! (March 15-19) Ukrainian Cup Powered By Hot Headed Gaming Playoff Kung Fu Cup and Master's Coliseum Return for 2023 Afreeca World 101!
Strategy
[H] (PvP) WTF Nexus rush into recall probe/zealot Neural parasite on disruptors?
Custom Maps
[A] Proxy Rush [A] SC Real Scale [A] (Minigames) Raynor Party [D] Planning to host a small map tournament
External Content
Mutation # 361 And Drops and Rifts Mutation # 360 Double Trouble Mutation # 359 Enhanced Defenses Mutation # 358 The Ascended
Brood War
General
[Update] ShieldBattery: League Support! BGH auto balance -> http://bghmmr.com/ Jumper vs Julia aka BlackmanPL showmatch March 26 The uncertainty behind FlaSh's Return; In-depth [Interview] Dewalt
Tourneys
[Megathread] Daily Proleagues [BSL16] RO3 - SemiFinals - Sunday 18:00 CET Copa Latinoamericana StarCraft by OliPatrick Small VOD Thread 2.0
Strategy
Carriers or arbiters Starcraft Remastered Build Orders February 2023 Marine rate of fire
Other Games
General Games
Diablo IV Nintendo Switch Thread Frost Giant announce Stormgate Destiny 2 - PC/Xbox/PS4 Path of Exile
Dota 2
Official Dota and Chess General Discussion Lima Major 2023
League of Legends
LiquidLegends to reintegrate into TL.net [Patch Notes] Release General Discussion
Heroes of the Storm
HotS: WP and Funny Moments
Hearthstone
TL Mafia
TL Mafia Community Thread Liquid Arcanon News [0]Paper Team Liquid Maria L TL Mafia Idea Factory Chezinu streak(s) Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Russo-Ukrainian War Thread The Chess Thread YouTube Thread
Fan Clubs
The Phredxor Fan Club The Scarlett Fan Club The Clem Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Korean Music Discussion [\m/] Heavy Metal Thread [TV] HBO The Last Of Us series
Sports
2022 - 2023 Football Thread Formula 1 Discussion 2021 NFL/CFB Season UFC/MMA Discussion Thread NBA General Discussion
World Cup 2022
FIFA World Cup Qatar 2022 Thread
Tech Support
how to play music while streaming with xsplit Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts Happy Birthday R1CH! Ask TL Staff Anything
Blogs
Return of CranKy Du…
CranKy Ducklings
TL Currency Converter Mafia…
Minely
An ex-schizoid's u…
ApatheticSchizoid
20 years plus!
FuDDx
ASL 15 English Commentary…
namkraft
Teaching StarCraft Blog …
Lovethelord
Why Liquipedia needs Notabi…
FO-nTTaX
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1162 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
Germany1610 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
220 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
Italy2419 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
Poland3196 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
Sweden200 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
Malaysia4653 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
Canada194 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
World Team League
12:00
Qualifier Day 1
RotterdaM968
CranKy Ducklings209
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 968
OGKoka 394
IndyStarCraft 164
Ragnarok 115
Ryung 105
SC2Nice 86
BRAT_OK 76
Forgg! 60
StarCraft: Brood War
Sea 7590
Calm 5652
Horang2 1375
Mini 1166
ZerO 1075
Shuttle 1073
Light 869
Stork 559
Soma 555
Hyuk 366
[ Show more ]
ToSsGirL 204
Leta 180
hero 162
Sea.KH 151
Mind 146
Rush 144
ggaemo 142
ZerO(Twitch) 126
Shinee 113
Hyun 105
Mong 78
Zeus 51
Sharp 43
Barracks 42
zelot 21
Noble 13
ajuk12(nOOB) 8
Hm[arnc] 4
scan(afreeca) 1
Dota 2
qojqva3000
XcaliburYe544
Attackerdota273
Fuzer 186
febbydoto70
Counter-Strike: Global Offensive
olofmeister2487
Other Games
Stewie2K5966
singsing3235
Liquid`RaSZi1409
Pyrionflax790
Beastyqt758
crisheroes584
Crank 323
Lowko316
Livibee313
MaximusBlack220
XaKoH 195
ToD169
QueenE64
nookyyy 61
Organizations
Dota 2
PGL Dota 2 - Main Stream27658
Other Games
B2W.Neo2164
Counter-Strike: Global Offensive
ESL CS:GO2129
StarCraft 2
Esl_sc2123
ESL.tv123
StarCraft: Brood War
StarcraftVOD3
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• LUISG 3
• Kozan
• Migwel
• Alpha X_
• aXEnki
• intothetv
• Gussbus
• Poblha
• IndyKCrew
• LaughNgamez Trovo
• Laughngamez YouTube
StarCraft: Brood War
• HerbMon 39
• sscaitournament2
• STPLYoutube
• AfreecaTV YouTube
• BSLYoutube
League of Legends
• Lourlo962
Upcoming Events
ESL Pro Tour
3h 27m
ESL Pro Tour
9h 27m
Afreeca Starleague
1d 20h
Royal vs Shine
Jaedong vs Action
Afreeca Starleague
2 days
Rush vs Barracks
Queen vs JyJ
WardiTV Winter Champion…
2 days
RagnaroK vs HonMonO
NightMare vs Kelazhur
PassionCraft
3 days
Korean StarCraft League
3 days
WardiTV Winter Champion…
3 days
HeRoMaRinE vs Gerald
Elazer vs INnoVation
Sniper's StarCraft League
5 days
ESL Pro Tour
5 days
[ Show More ]
BSL: ProLeague
6 days
Bonyth vs TBD
Amantes de StarCraft 2
6 days
Liquipedia Results

Completed

Ultimate Battle: Snow vs BarrackS
PiG Sty Festival 3.0
Tournament by teenyeu #2
CCT Central EU Malta Finals

Ongoing

FS Mania
CWCL Season 6
BWCL Season 58
Copa Latinoamericana
ASL Season 15
Individual Silver League
Spring Cup Season 4: China
KCM Ladies Race Survival 2023 Season 1
KCM Race Survival 2023 Season 1
BSL Season 16
Spring Cup Season 4
WardiTV Winter 2023
NGS Storm Division S6
Calamity Cup Division A - Season 5
META Madness #7
ESL Pro League Season 17
ESL Challenger League S44 NA
ESL Challenger League S44 EU
ESL Challenger League S44 AP

Upcoming

CHN vs KOR Week35
KOR-CHN Invitational League 10: Organ vs Kid
WTL 2023 Summer
WardiTV Korean Royale
LTK Thunderball
BLAST.tv Paris Major 2023
ESL Challenger Melbourne 2023
IEM Rio 2023
BLAST.tv Paris 2023: EU RMR B
BLAST.tv Paris 2023: EU RMR A
BLAST.tv Paris 2023: APAC RMR
BLAST.tv Paris 2023: AME RMR
BLAST Premier Spring AME Showdown
BLAST Premier Spring EU Showdown
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 © 2023 TLnet. All Rights Reserved.