Starcraft Hacking Related Discuss anything related to hacks for SC/BW here.

Reply
 
LinkBack Thread Tools
Old 01-26-2008, 04:54 AM
Confused
Senior Member
Retired Staff Member

Blessed
 
Titan's Avatar
 
Join Date: May 2004
Posts: 2,162
Titan is a jewel in the rough
Default Random Race Test

So I've been running the Starcraft random algorithm for choosing a race (when a user selects "Random" in the game lobby). After about 1 1/2 hours I have some interesting results.

Code:
Race            Times Picked        Probability
--------        ------------        -----------
Zerg:           10,941,256          0.333217035
Terran:         10,941,658          0.333229278
Protoss:        10,952,310          0.333553686
--------        ------------        -----------
Total:          32,835,224
It looks like Protoss is in the lead right now. I'm going to run the test all night and see what happens. No, there is no grand purpose to this. I was just looking for something interesting to do. It will probably just continue to converge to 1/3 each, but we'll see.

After 331,975,848 tests, Protoss lost a lot of ground, but the probabilities are still converging to 1/3.
Code:
Race            Times Picked        Probability
--------        ------------        -----------
Zerg:           110,668,607         0.333363429
Terran:         110,669,002         0.333364619
Protoss:        110,638,239         0.333271952
--------        ------------        -----------
Total:          331,975,848

Last edited by Titan : 01-26-2008 at 04:53 PM.
Titan 15 0FF11|\|3   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 01-26-2008, 10:53 AM

Deviant
 
Join Date: Jul 2007
Posts: 159
hure will become famous soon enough
Default

its more interessting if you have more randoms.

if you play racewar with 6 players, it will never have more than 3 players of the same type.


did you also analyze streak lengths?
hure 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 04:55 PM
Confused
Senior Member
Retired Staff Member

Blessed
 
Titan's Avatar
 
Join Date: May 2004
Posts: 2,162
Titan is a jewel in the rough
Default

Quote:
Originally Posted by hure View Post
its more interessting if you have more randoms.

if you play racewar with 6 players, it will never have more than 3 players of the same type.


did you also analyze streak lengths?
This is just testing a scenario where one player goes random. I haven't done any deep analysis... I was just bored last night.
Titan 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 05:38 PM

Disciple
 
John's Avatar
 
Join Date: Mar 2006
Location: USA
Posts: 535
John is an unknown quantity at this point
Default

I would be bored to doing that. What's the point?

Quote:
Being gay is your own choice. Just don't bother me with your gay sh*t and I won't punch you in the face.
John 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 05:47 PM

I'm in ur user profile changing ur name back
Senior Member
Gold Member

Messiah
 
Otaku's Avatar
 
Join Date: Mar 2005
Location: Austin, TX
Posts: 9,165
Otaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond reputeOtaku has a reputation beyond repute
Default

Curiosity?
Otaku 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 05:53 PM

Disciple
 
John's Avatar
 
Join Date: Mar 2006
Location: USA
Posts: 535
John is an unknown quantity at this point
Default

Hell yes!

Quote:
Being gay is your own choice. Just don't bother me with your gay sh*t and I won't punch you in the face.
John 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 06:02 PM
The Future
Senior Member

High Priest
 
Polie13's Avatar
 
Join Date: Jan 2005
Posts: 1,819
Polie13 is just really nicePolie13 is just really nice
Default

That's pretty neat, any chance of running it against multiple race selections?

Quote:
Originally Posted by DSG on AIM
dsg (12:34:34 AM): i gave my ups driver
dsg (12:34:37 AM): a popsicle
dsg (12:34:39 AM): when it was hot out
dsg (12:34:43 AM): and i had pissed in it
dsg (12:34:47 AM): the popsicle fluid
dsg (12:34:50 AM): that i used to make
dsg (12:34:51 AM): em
dsg (12:34:53 AM): i planned it out
dsg (12:34:54 AM): LOL
dsg (12:34:59 AM): ordered a package
dsg (12:35:01 AM): stayed home all day
dsg (12:35:09 AM): and gave him a popsicle i had prepared
polie13 (12:35:15 AM): ..thats pretty ****ed up
Polie13 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 06:13 PM
Confused
Senior Member
Retired Staff Member

Blessed
 
Titan's Avatar
 
Join Date: May 2004
Posts: 2,162
Titan is a jewel in the rough
Default

Here is something interesting if you weren't amazed by those results. It seems that...

If you play a game with 8 people, 7 of them choose Protoss as their race, and you go random... you will still have a 1/3 chance of getting Protoss.

Multiple randoms is a different story though.
Titan 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 06:17 PM

Disciple
 
John's Avatar
 
Join Date: Mar 2006
Location: USA
Posts: 535
John is an unknown quantity at this point
Default

Dude that owns!

Quote:
Being gay is your own choice. Just don't bother me with your gay sh*t and I won't punch you in the face.
John 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 06:34 PM

Blessed
 
BD-ICY's Avatar
 
Join Date: Dec 2005
Location: Detroit, Michigan USA
Posts: 1,977
BD-ICY is just really niceBD-ICY is just really nice
Send a message via MSN to BD-ICY
Default

I've played a game where all 8 of us went random, and 4 of us were terran, 3 were toss and only 1 zerg(he got pwned by the toss lol)

BD-ICY
Seems that way.
> Successfully injected Heroin.dll <
Found my old account.

ston3rpimp69: my mother told me id have my own personal ball-washer some day. im glad all that hard work paid off.
BD-ICY 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 10:15 PM
Senior Member

Enlightened
 
MiCrOz's Avatar
 
Join Date: Aug 2005
Location: Cherry Hill, NJ
Posts: 3,156
MiCrOz is a glorious beacon of lightMiCrOz is a glorious beacon of lightMiCrOz is a glorious beacon of light
Send a message via AIM to MiCrOz
Default

Quote:
Originally Posted by John View Post
I would be bored to doing that. What's the point?
He's not doing it physically.

The results are interesting, but expected.

Quote:
Originally Posted by DarthSlyGuy View Post
Your opinion DOES NOT count for anything on these forums. This isn't a democracy on these forums its a 'dt'ocracy/dictatorship and us staff are his officers.


MiCrOz 15 0FF11|\|3   Reply With Quote
Old 01-26-2008, 10:29 PM
dt
Administrator

Inquisitor
 
dt's Avatar
 
Join Date: Jul 2004
Location: Germany
Posts: 4,768
dt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond reputedt has a reputation beyond repute
Default

This gets interesting in case of multiple random players. It's not entirely random any more, the following rules apply:

2 players: the probability of a mirror matchup (same race twice) is only 1/8, as opposed to 1/3 as you would expect from a random distribution. All other matchups are equally likely.

More players: All matchups are equally likely, however only the following ratios are possible:
3: 1-1-1 or 2-1-0
4: 2-1-1
5: 2-2-1
6: 2-2-2 or 3-2-1
7: 3-2-2
8: 3-3-2
dt 15 0FF11|\|3   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
1.15.1 Offsets / Functions / Notes LCSBSSRHXXX Starcraft Hacking Related 55 01-30-2008 02:23 AM
the big poll. Raistlin Starcraft II 91 01-05-2008 05:30 AM
The Power-On Self-Test (POST) Dark_Mage- Hardware and Software 3 08-10-2007 09:42 AM
Random sig test MiCrOz Graphics and Arts 4 08-24-2005 05:24 PM


All times are GMT. The time now is 12:51 AM.