Games-and-Simulations / sc-docker

Multi-platform Version of StarCraft: Brood War in a Docker Container, ready to use for bot play simulations.
MIT License
230 stars 41 forks source link

Feature Request - Allow Repeat Flag #73

Closed RothNath closed 6 years ago

RothNath commented 6 years ago

For running large amounts of games it would be helpful to have a repeat flag.

For example: --repeat 100 or --r 50 etc.

Currently using bash scripts to automate on Windows, for example:

While($true) { $i++ scbw.play --bots "Iron" "Steamhammer" --auto_launch --game_speed 0 Write-Host "Action has run $i times" }.

I think it would be a helpful feature.

MicroDK commented 6 years ago

A shorter script you can use on the Windows command prompt: 😃

for /L %i in (1,1,40) do scbw.play --bots "Microwave" "Andrew Smith" 
--headless --read_overwrite --game_speed 0 --map "sscai/(4)Empire of the Sun.scm"
michalsustr commented 6 years ago

This sort of functionality can be done by external scripts, I want to keep sc-docker as simple as possible.