codebackup / bwapi

Automatically exported from code.google.com/p/bwapi
0 stars 0 forks source link

Adjust StarCraft random seed #423

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I am running evolutionary computing simulations using StarCraft and would 
like to influence or set the "random seed" in StarCraft. As you know, StarCraft 
adds a certain randomness into several aspects such as weapon cooldown so that 
the same scenario may play differently. It is probable that this randomness is 
also applied to behaviour such as pathing and AI decisions.

It is desirable for us to set this random seed so that we may reproduce our 
simulations precisely.

Is there any way to do this? Or is this inherently impossible due to some 
threading/synchronisation issue? Shouldn't be right?

Original issue reported on code.google.com by nasr...@gmail.com on 6 Dec 2011 at 11:49

GoogleCodeExporter commented 9 years ago
It's possible.

Original comment by AHeinerm on 8 Dec 2011 at 9:58

GoogleCodeExporter commented 9 years ago
Will add it as
void Game::setRandomSeed(int seed);

The function will only be available in Single Player.

Original comment by AHeinerm on 20 Feb 2012 at 1:32

GoogleCodeExporter commented 9 years ago

Original comment by AHeinerm on 23 Jul 2012 at 3:59

GoogleCodeExporter commented 9 years ago
The BWAPI project is slowly undergoing the migration to GitHub. All issues have 
been migrated to the GitHub issue tracker located here: 
https://github.com/bwapi/bwapi/issues

In order to receive updates on your issue, please head over to the GitHub issue 
tracker and subscribe to your issue.

Original comment by AHeinerm on 15 Apr 2014 at 7:46